mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-29 11:43:49 +00:00
Fix failed tests
Some checks failed
CI / build (push) Has been cancelled
CI / uitest (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / uitest-workspaces (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / dist-build (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
CI / uitest (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / uitest-workspaces (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / dist-build (push) Has been cancelled
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
36e7c8ebbd
commit
a780fdb952
@ -37,9 +37,11 @@ export class LoginPage {
|
||||
await (await this.page.goto(`${PlatformURI}/login/admin`))?.finished()
|
||||
}
|
||||
|
||||
async clickSignUp (): Promise<void> {
|
||||
async clickSignUp (usePassword: boolean = true): Promise<void> {
|
||||
await this.linkSignUp().click()
|
||||
await this.signUpWithPassword().click()
|
||||
if (usePassword) {
|
||||
await this.signUpWithPassword().click()
|
||||
}
|
||||
}
|
||||
|
||||
async clickOnRecover (): Promise<void> {
|
||||
|
@ -89,7 +89,7 @@ test.describe('Workspace tests', () => {
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
|
||||
await loginPage.goto()
|
||||
await loginPage.clickSignUp()
|
||||
await loginPage.clickSignUp(false)
|
||||
|
||||
await signUpPage.signUpPasswordBtn().click()
|
||||
await signUpPage.checkInfo(page, 'Required field First name')
|
||||
|
@ -122,7 +122,7 @@ test.describe.skip('Workspace tests', () => {
|
||||
}
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await leftSideMenuPage.buttonTracker().click()
|
||||
@ -144,7 +144,7 @@ test.describe.skip('Workspace tests', () => {
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
const newWorkspaceName2 = `New Workspace Name - ${generateId(2)}`
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await api.createWorkspaceWithLogin(newWorkspaceName2, newUser.email, '1234')
|
||||
@ -166,7 +166,7 @@ test.describe.skip('Workspace tests', () => {
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
const newWorkspaceName2 = `New Workspace Name - ${generateId(2)}`
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
|
@ -39,7 +39,7 @@ test.describe('Workspace tests', () => {
|
||||
}
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
@ -57,7 +57,7 @@ test.describe('Workspace tests', () => {
|
||||
}
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
@ -75,7 +75,7 @@ test.describe('Workspace tests', () => {
|
||||
}
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
@ -97,7 +97,7 @@ test.describe('Workspace tests', () => {
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
const newTemplateName = faker.word.words(2)
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
@ -115,7 +115,7 @@ test.describe('Workspace tests', () => {
|
||||
}
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
@ -135,7 +135,7 @@ test.describe('Workspace tests', () => {
|
||||
const enumTitle = faker.word.words(2)
|
||||
const enumName = faker.word.words(2)
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
@ -156,7 +156,7 @@ test.describe('Workspace tests', () => {
|
||||
const enumTitle = faker.word.words(2)
|
||||
const enumName = faker.word.words(2)
|
||||
await loginPage.goto()
|
||||
await loginPage.linkSignUp().click()
|
||||
await loginPage.clickSignUp()
|
||||
await signUpPage.signUp(newUser)
|
||||
await selectWorkspacePage.createWorkspace(newWorkspaceName)
|
||||
await userProfilePage.openProfileMenu()
|
||||
|
@ -98,7 +98,7 @@ test.describe('Workspace Archive tests', () => {
|
||||
await test.step('Check workspace is active again', async () => {
|
||||
await page.reload()
|
||||
|
||||
await selectWorkspacePage.selectWorkspace(workspaceInfo.workspaceName)
|
||||
await selectWorkspacePage.selectWorkspace(workspaceName)
|
||||
|
||||
const issuesDetailsPage = new IssuesDetailsPage(page)
|
||||
await issuesDetailsPage.checkIssue(newIssue)
|
||||
|
@ -94,7 +94,7 @@ test.describe('Workspace tests', () => {
|
||||
const newWorkspaceName = `New Workspace Name - ${generateId(2)}`
|
||||
|
||||
await loginPage.goto()
|
||||
await loginPage.clickSignUp()
|
||||
await loginPage.clickSignUp(false)
|
||||
|
||||
await signUpPage.signUpPasswordBtn().click()
|
||||
await signUpPage.checkInfo(page, 'Required field First name')
|
||||
|
Loading…
Reference in New Issue
Block a user