Skip to content

Commit 9595ef8

Browse files
authored
fix: wrap url check in retry.try (#29536)
since the url changes are async, keep testing the url until it passes or fails enough times
1 parent c66363a commit 9595ef8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

x-pack/test/functional/apps/canvas/smoke_test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ export default function canvasSmokeTest({ getService, getPageObjects }) {
4646
await retry.waitFor('workpad page', () => testSubjects.exists('canvasWorkpadPage'));
4747

4848
// check that workpad loaded in url
49-
const url = await browser.getCurrentUrl();
50-
expect(parse(url).hash).to.equal(`#/workpad/${testWorkpadId}/page/1`);
49+
await retry.try(async () => {
50+
const url = await browser.getCurrentUrl();
51+
expect(parse(url).hash).to.equal(`#/workpad/${testWorkpadId}/page/1`);
52+
});
5153
});
5254

5355
it('renders elements on workpad', async () => {

0 commit comments

Comments
 (0)