Skip to content

Commit d3bd864

Browse files
committed
✅ Fix tests
1 parent ffc6857 commit d3bd864

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

static/app/components/searchQueryBuilder/askSeer.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('AskSeer', () => {
5858
organization: {features: ['gen-ai-features', 'gen-ai-explore-traces']},
5959
});
6060

61-
const askSeer = await screen.findByRole('option', {name: 'Ask Seer'});
61+
const askSeer = await screen.findByRole('option', {name: /Ask Seer/});
6262
expect(askSeer).toBeInTheDocument();
6363
});
6464

@@ -77,7 +77,7 @@ describe('AskSeer', () => {
7777
organization: {features: ['gen-ai-features', 'gen-ai-explore-traces']},
7878
});
7979

80-
const enableAi = await screen.findByText('Enable Gen AI');
80+
const enableAi = await screen.findByText(/Enable Gen AI/);
8181
expect(enableAi).toBeInTheDocument();
8282
});
8383

@@ -103,7 +103,7 @@ describe('AskSeer', () => {
103103
organization: {features: ['gen-ai-features', 'gen-ai-explore-traces']},
104104
});
105105

106-
const enableAi = await screen.findByText('Enable Gen AI');
106+
const enableAi = await screen.findByText(/Enable Gen AI/);
107107
expect(enableAi).toBeInTheDocument();
108108

109109
await userEvent.click(enableAi);

static/app/components/searchQueryBuilder/index.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ describe('SearchQueryBuilder', function () {
991991
await userEvent.click(getLastInput());
992992
await userEvent.type(screen.getByRole('combobox'), 'some free text');
993993

994-
expect(screen.getByRole('option', {name: 'Enable Gen AI'})).toBeInTheDocument();
994+
expect(screen.getByRole('option', {name: /Enable Gen AI/})).toBeInTheDocument();
995995
});
996996

997997
it('can add parens by typing', async function () {

0 commit comments

Comments
 (0)