Skip to content

Commit 348d379

Browse files
committed
sleep between reloads
1 parent e53c3fb commit 348d379

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/e2e/stepDefinitions/presentationViewerContext.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ Given('user {string} has logged in', async function (user) {
2222
await ocis.login(username, password)
2323
await expect(page.locator(ocis.filesContainerSelector)).toBeVisible()
2424
console.log(await page.locator(ocis.filesContainerSelector).innerHTML())
25-
while (!(await page.locator(ocis.contextMenuBtnSelector).isVisible())) {
25+
count = 0
26+
while (!(await page.locator(ocis.contextMenuBtnSelector).isVisible()) && count < 10) {
27+
await page.waitForTimeout(2000)
2628
await page.reload()
2729
console.log('===============================RELOAD=================================')
2830
console.log(await page.locator(ocis.filesContainerSelector).innerHTML())
31+
count++
2932
}
3033
})
3134

0 commit comments

Comments
 (0)