This commit is contained in:
chalapkoStanislav 2024-06-25 12:21:13 +03:00
parent 468f5f3e85
commit fc29b2aba6
4 changed files with 22 additions and 1 deletions

View File

@ -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