diff --git a/tests/00-COMM-loginFunctionality.spec.ts b/tests/00-COMM-loginFunctionality.spec.ts index d7e3bf0..7e080fc 100644 --- a/tests/00-COMM-loginFunctionality.spec.ts +++ b/tests/00-COMM-loginFunctionality.spec.ts @@ -1,7 +1,7 @@ import { test, expect, Page } from '@playwright/test' import { LogInPage } from '../src/page-objects/COMM_LoginPage.js' import { loginAsAdmin, loginAsUser } from '../src/steps'; -import { ADMIN_EMAIL, KO_ADMIN_K, KO_USER_K, URL_IDHUB, URL_PASS_RESET, USER1_EMAIL } from '../src/constants/env_constants.js'; +import { ADMIN_EMAIL, KO_ADMIN_K, KO_USER_K, URL_IDHUB, URL_PASS_RESET, USER1_EMAIL} from '../src/constants/env_constants.js'; test.describe('Admin login functionality', () => { test('Successful login as admin', async ({ page }) => { @@ -12,7 +12,7 @@ test.describe('Admin login functionality', () => { const loginPage = new LogInPage(page) await loginPage.visit(URL_IDHUB); await loginPage.login(ADMIN_EMAIL, KO_ADMIN_K) - await expect.soft(loginPage.errorMessageIsValid()).toBeTruthy(); + expect.soft(loginPage.errorMessageIsValid()).toBeTruthy(); }) test('Navigate to Forgot password page from login page', async ({ page }) => { const loginPage = new LogInPage(page)