mirror of
https://github.com/penpot/penpotqa.git
synced 2024-07-06 04:51:46 +00:00
test fix
This commit is contained in:
parent
468f5f3e85
commit
fc29b2aba6
|
@ -73,9 +73,30 @@ test.describe(() => {
|
|||
test.describe(() => {
|
||||
const team = random().concat('autotest');
|
||||
|
||||
mainTest(
|
||||
test(
|
||||
qase(1165,'DA-79 Team Invitations - open the form via Team Hero'),
|
||||
async ({ page }) => {
|
||||
const randomName = random().concat('autotest');
|
||||
const email = `${process.env.GMAIL_NAME}+${randomName}@gmail.com`;
|
||||
const loginPage = new LoginPage(page);
|
||||
const registerPage = new RegisterPage(page);
|
||||
const dashboardPage = new DashboardPage(page);
|
||||
await loginPage.goto();
|
||||
await loginPage.acceptCookie();
|
||||
await loginPage.clickOnCreateAccount();
|
||||
await registerPage.isRegisterPageOpened();
|
||||
await registerPage.enterEmail(email);
|
||||
await registerPage.enterPassword(process.env.LOGIN_PWD);
|
||||
await registerPage.clickOnCreateAccountBtn();
|
||||
|
||||
await registerPage.enterFullName(randomName);
|
||||
await registerPage.clickOnAcceptTermsCheckbox();
|
||||
await registerPage.clickOnCreateAccountSecondBtn();
|
||||
await registerPage.isRegisterEmailCorrect(email);
|
||||
const invite = await waitMessage(page, email, 40);
|
||||
await page.goto(invite.inviteUrl);
|
||||
await dashboardPage.fillOnboardingQuestions();
|
||||
|
||||
const teamPage = new TeamPage(page);
|
||||
await teamPage.createTeam(team);
|
||||
await teamPage.isTeamSelected(team);
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 25 KiB |
Binary file not shown.
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 57 KiB |
Binary file not shown.
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 24 KiB |
Loading…
Reference in New Issue
Block a user