This commit is contained in:
Staschalapko 2024-06-10 18:41:11 +03:00
parent 1bfbc24f8d
commit 70ed6de516
2 changed files with 5 additions and 3 deletions

View File

@ -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();
}

View File

@ -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) => {