import {OrganizationFixture} from 'sentry-fixture/organization'; import {render, screen} from 'sentry-test/reactTestingLibrary'; import {DisplayType} from 'sentry/views/dashboards/types'; import {DataSetStep} from 'sentry/views/dashboards/widgetBuilder/buildSteps/dataSetStep'; import {DataSet} from 'sentry/views/dashboards/widgetBuilder/utils'; describe('DataSetStep', () => { it('renders the spans dataset with the EAP feature flag', () => { render( , { organization: OrganizationFixture({ features: ['dashboards-eap'], }), } ); expect(screen.getByText('Spans')).toBeInTheDocument(); }); });