We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fc71ea commit b10e092Copy full SHA for b10e092
code/e2e-tests/util.ts
@@ -37,8 +37,9 @@ export class SbPage {
37
// assert url changes
38
const viewMode = name === 'docs' ? 'docs' : 'story';
39
40
- const url = this.page.url();
41
- await expect(url).toContain(`path=/${viewMode}/${titleId}--${storyId}`);
+ await this.page.waitForURL((url) =>
+ url.search.includes(`path=/${viewMode}/${titleId}--${storyId}`)
42
+ );
43
44
const selected = await storyLink.getAttribute('data-selected');
45
await expect(selected).toBe('true');
0 commit comments