From 70ed6de516abf4879e879f219348d4e8466883e2 Mon Sep 17 00:00:00 2001 From: Staschalapko Date: Mon, 10 Jun 2024 18:41:11 +0300 Subject: [PATCH] test fix --- pages/register-page.js | 4 ++++ tests/signup.spec.js | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/register-page.js b/pages/register-page.js index 37bd4c3a..b1eaa4ad 100644 --- a/pages/register-page.js +++ b/pages/register-page.js @@ -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(); } diff --git a/tests/signup.spec.js b/tests/signup.spec.js index 7ebbe34a..c2a41ee3 100644 --- a/tests/signup.spec.js +++ b/tests/signup.spec.js @@ -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) => {