Skip to content

Commit

Permalink
wait for network idle
Browse files Browse the repository at this point in the history
  • Loading branch information
olamothe committed Jul 9, 2024
1 parent 88f6ed5 commit d44caa9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,14 @@ test.describe('with instant results & query suggestions', () => {
});

test.describe('with recent queries', () => {
test.beforeEach(async ({searchBox}) => {
test.beforeEach(async ({searchBox, page}) => {
await searchBox.searchInput.waitFor({state: 'visible'});
await searchBox.searchInput.click();
await searchBox.searchInput.fill('kayak');
await searchBox.searchInput.press('Enter');
await searchBox.clearButton.waitFor({state: 'visible'});
await searchBox.searchInput.fill('');
await page.waitForLoadState('networkidle');
});

test('should display recent queries', async ({searchBox}) => {
Expand Down

0 comments on commit d44caa9

Please sign in to comment.