Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chalapkoStanislav committed Jun 10, 2024
1 parent 1bfbc24 commit 70ed6de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pages/register-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ exports.RegisterPage = class RegisterPage extends BasePage {
await this.fullnameInput.fill(name);
}

async isFullNameFieldDisplayed() {
await expect(this.fullnameInput).toBeVisible();
}

async clickOnAcceptTermsCheckbox() {
await this.acceptTermsCheckbox.click();
}
Expand Down
4 changes: 1 addition & 3 deletions tests/signup.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ test(qase(54,'ON-27 Sign up with email of existing user'), async ({ page }) => {
await registerPage.enterEmail(process.env.LOGIN_EMAIL);
await registerPage.enterPassword(process.env.LOGIN_PWD);
await registerPage.clickOnCreateAccountBtn();
await registerPage.isEmailInputErrorDisplayed('Email already used');
await registerPage.isCreateAccountBtnDisplayed();
await registerPage.isCreateAccountBtnDisabled();
await registerPage.isFullNameFieldDisplayed();
});

test.afterEach(async ({ page }, testInfo) => {
Expand Down

0 comments on commit 70ed6de

Please sign in to comment.