Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
within,
} from 'sentry-test/reactTestingLibrary';

import {TagStore} from 'sentry/stores/tagStore';
import {SavedSearchType} from 'sentry/types/group';
import type {Organization} from 'sentry/types/organization';
import {FieldKind} from 'sentry/utils/fields';
Expand All @@ -31,9 +32,15 @@ describe('ResultsSearchQueryBuilder', () => {
url: '/organizations/org-slug/tags/',
body: [{key: 'transaction', name: 'transaction', kind: FieldKind.FIELD}],
});
// Pre-populate TagStore to eliminate race between async API response and user interaction
TagStore.loadTagsSuccess([
{key: 'transaction', name: 'transaction'},
{key: 'environment', name: 'environment'},
{key: 'user', name: 'user'},
]);
});

it.isKnownFlake('does not show function tags in has: dropdown', async () => {
it('does not show function tags in has: dropdown', async () => {
Comment thread
ryan953 marked this conversation as resolved.
Outdated
render(
<ResultsSearchQueryBuilder
query=""
Expand Down Expand Up @@ -70,7 +77,7 @@ describe('ResultsSearchQueryBuilder', () => {
});
});

it.isKnownFlake('shows normal tags, e.g. transaction, in the dropdown', async () => {
it('shows normal tags, e.g. transaction, in the dropdown', async () => {
Comment thread
ryan953 marked this conversation as resolved.
Outdated
render(
<ResultsSearchQueryBuilder
query=""
Expand Down
Loading