Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Feb 6, 2024
1 parent 9928af6 commit 668f377
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions packages/cli-e2e/__tests__/atomic.specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,19 @@ describe('ui:create:atomic', () => {
expect(await page.$(searchInterfaceSelector)).not.toBeNull();
}, 60e3);

it('should send a search query when the page is loaded', async () => {
await page.goto(searchPageEndpoint, {waitUntil: 'networkidle2'});
await page.waitForResponse(isSearchRequestOrResponse);
expect(
interceptedResponse.some(isSuccessfulSearchResponse)
).toBeTruthy();
}, 60e3);
it(
'should send a search query when the page is loaded',
async () => {
await page.goto(searchPageEndpoint);
await page.waitForResponse(isSearchRequestOrResponse, {
timeout: 3 * 60e3 - 10e3,
});
expect(
interceptedResponse.some(isSuccessfulSearchResponse)
).toBeTruthy();
},
3 * 60e3
);
});
}
}
Expand Down

0 comments on commit 668f377

Please sign in to comment.