Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
Reflects new role for expanded codemirror editor
  • Loading branch information
johanbissemattsson committed Dec 21, 2024
1 parent fd85aa1 commit 91ad6cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/supersearch/e2e/supersearch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,20 @@ test('syncs collapsed and expanded editor views', async ({ page }) => {
await page
.locator('[data-test-id="test1"]')
.getByRole('dialog')
.getByRole('textbox')
.getByRole('combobox')
.locator('div')
.fill('Hello world');
await page
.locator('[data-test-id="test1"]')
.getByRole('dialog')
.getByRole('textbox')
.getByRole('combobox')
.locator('div')
.selectText();
await page
.locator('[data-test-id="test1"]')
.getByRole('dialog')
.getByRole('textbox')
.getByRole('combobox')
.locator('div')
.press('Escape');
await expect(
await page.locator('[data-test-id="test1"]').getByRole('textbox').locator('div'),
Expand All @@ -101,7 +103,7 @@ test('fetches and displays paginated results', async ({ page }) => {
await page
.locator('[data-test-id="test1"]')
.getByRole('dialog')
.getByRole('textbox')
.getByRole('combobox')
.locator('div')
.fill('Hello');
await expect(page.locator('[data-test-id="result-item"]').first()).toContainText('Heading 1');
Expand Down
1 change: 1 addition & 0 deletions packages/supersearch/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
<fieldset data-test-id="test2">
<legend>Supersearch using <code>form</code> attribute</legend>
<SuperSearch
id="supersearch-using-form-attribute"
name="q"
bind:value={value2}
{placeholder}
Expand Down

0 comments on commit 91ad6cd

Please sign in to comment.