mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
since the url changes are async, keep testing the url until it passes or fails enough times
This commit is contained in:
parent
708279b97f
commit
43dc53f17a
1 changed files with 4 additions and 2 deletions
|
@ -49,8 +49,10 @@ export default function canvasSmokeTest({ getService, getPageObjects }) {
|
|||
await retry.waitFor('workpad page', () => testSubjects.exists('canvasWorkpadPage'));
|
||||
|
||||
// check that workpad loaded in url
|
||||
const url = await browser.getCurrentUrl();
|
||||
expect(parse(url).hash).to.equal(`#/workpad/${testWorkpadId}/page/1`);
|
||||
await retry.try(async () => {
|
||||
const url = await browser.getCurrentUrl();
|
||||
expect(parse(url).hash).to.equal(`#/workpad/${testWorkpadId}/page/1`);
|
||||
});
|
||||
});
|
||||
|
||||
it('renders elements on workpad', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue