Improve WS tests stability (#8196)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-03-11 18:04:32 +07:00 committed by Andrey Sobolev
parent 633e3d8fa1
commit f3beec9265
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2
3 changed files with 11 additions and 0 deletions

View File

@ -69,6 +69,10 @@ test.describe('Workspace Archive tests', () => {
return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/') return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/')
}) })
await loginPage2.page.waitForURL((url) => {
return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/')
})
const adminPage = new AdminPage(page2) const adminPage = new AdminPage(page2)
await adminPage.gotoAdmin() await adminPage.gotoAdmin()

View File

@ -190,6 +190,9 @@ test.describe('Workspace tests', () => {
const signUpPage2 = new SignUpPage(page2) const signUpPage2 = new SignUpPage(page2)
await signUpPage2.signUp(newUser2) await signUpPage2.signUp(newUser2)
await page2.waitForURL((url) => {
return url.pathname.startsWith('/login/createWorkspace')
})
await page2.waitForURL((url) => { await page2.waitForURL((url) => {
return url.pathname.startsWith('/login/createWorkspace') return url.pathname.startsWith('/login/createWorkspace')

View File

@ -71,6 +71,10 @@ test.describe('Workspace Migration tests', () => {
return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/') return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/')
}) })
await loginPage2.page.waitForURL((url) => {
return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/')
})
const adminPage = new AdminPage(page2) const adminPage = new AdminPage(page2)
await adminPage.gotoAdmin() await adminPage.gotoAdmin()