Skip to content
Snippets Groups Projects
Commit c979ecbe authored by Xiao Gui's avatar Xiao Gui
Browse files

[skip ci] fix e2e history

parent e7a83e86
No related branches found
No related tags found
No related merge requests found
...@@ -36,10 +36,8 @@ describe('> navigating IAV via history', () => { ...@@ -36,10 +36,8 @@ describe('> navigating IAV via history', () => {
delta: [ Math.round(width / 8), Math.round(height / 8) ] delta: [ Math.round(width / 8), Math.round(height / 8) ]
}) })
await iavPage.wait(5000) await iavPage.wait(5000)
await iavPage.waitUntilAllChunksLoaded()
await iavPage.historyBack() await iavPage.historyBack()
await iavPage.wait(5000) await iavPage.wait(5000)
await iavPage.waitUntilAllChunksLoaded()
const nav2 = await iavPage.getNavigationState() const nav2 = await iavPage.getNavigationState()
// expect some positions to change after dragging // expect some positions to change after dragging
...@@ -51,10 +49,8 @@ describe('> navigating IAV via history', () => { ...@@ -51,10 +49,8 @@ describe('> navigating IAV via history', () => {
it('> history back, viewer should despawn ', async () => { it('> history back, viewer should despawn ', async () => {
await iavPage.wait(5000) await iavPage.wait(5000)
await iavPage.waitUntilAllChunksLoaded()
await iavPage.historyBack() await iavPage.historyBack()
await iavPage.wait(5000) await iavPage.wait(5000)
await iavPage.waitUntilAllChunksLoaded()
const flag = await iavPage.viewerIsPopulated() const flag = await iavPage.viewerIsPopulated()
expect(flag).toBeFalse() expect(flag).toBeFalse()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment