Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chalapkoStanislav committed Jun 25, 2024
1 parent 468f5f3 commit fc29b2a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion tests/dashboard/dashboard-teams.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fc29b2a

Please sign in to comment.