Skip to content

Commit

Permalink
test: fix flaky key tests (deephaven#901)
Browse files Browse the repository at this point in the history
- Fixes deephaven#900 
  - Add missing `await`s
  • Loading branch information
stevenwu15 authored Sep 20, 2024
1 parent d76503b commit 011c03d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ test('Using keys for lists works', async ({ page }) => {
await page.getByRole('textbox', { name: 'Cell 2' }).fill('c');
await page.getByRole('button', { name: 'Delete cell' }).nth(1).click();

expect(page.getByRole('textbox', { name: 'Cell 0' })).toBeVisible();
expect(page.getByRole('textbox', { name: 'Cell 0' })).toHaveValue('a');
expect(page.getByRole('textbox', { name: 'Cell 1' })).not.toBeVisible();
expect(page.getByRole('textbox', { name: 'Cell 2' })).toBeVisible();
expect(page.getByRole('textbox', { name: 'Cell 2' })).toHaveValue('c');
await expect(page.getByRole('textbox', { name: 'Cell 0' })).toBeVisible();
await expect(page.getByRole('textbox', { name: 'Cell 0' })).toHaveValue('a');
await expect(page.getByRole('textbox', { name: 'Cell 1' })).not.toBeVisible();
await expect(page.getByRole('textbox', { name: 'Cell 2' })).toBeVisible();
await expect(page.getByRole('textbox', { name: 'Cell 2' })).toHaveValue('c');
});

test('UI all components render 1', async ({ page }) => {
Expand Down

0 comments on commit 011c03d

Please sign in to comment.