mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-12 02:11:57 +00:00
Improve WS tests stability (#8196)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
6a51d96abe
commit
d4a3575ea8
@ -66,6 +66,10 @@ test.describe('Workspace Archive tests', () => {
|
||||
await loginPage2.goto()
|
||||
await loginPage2.login('admin', '1234')
|
||||
|
||||
await loginPage2.page.waitForURL((url) => {
|
||||
return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/')
|
||||
})
|
||||
|
||||
const adminPage = new AdminPage(page2)
|
||||
await adminPage.gotoAdmin()
|
||||
|
||||
|
@ -189,6 +189,9 @@ test.describe('Workspace tests', () => {
|
||||
|
||||
const signUpPage2 = new SignUpPage(page2)
|
||||
await signUpPage2.signUp(newUser2)
|
||||
await page2.waitForURL((url) => {
|
||||
return url.pathname.startsWith('/login/createWorkspace')
|
||||
})
|
||||
|
||||
// Ok we signed in, and no workspace present.
|
||||
await page2.goto(linkText ?? '')
|
||||
|
@ -65,6 +65,10 @@ test.describe('Workspace Migration tests', () => {
|
||||
await loginPage2.goto()
|
||||
await loginPage2.login('admin', '1234')
|
||||
|
||||
await loginPage2.page.waitForURL((url) => {
|
||||
return url.pathname.startsWith('/login/selectWorkspace') || url.pathname.startsWith('/workbench/')
|
||||
})
|
||||
|
||||
const adminPage = new AdminPage(page2)
|
||||
await adminPage.gotoAdmin()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user