change error message

This commit is contained in:
mildred 2024-03-07 11:52:37 +01:00
parent 6c887475f3
commit b5e0b22fe6
1 changed files with 2 additions and 2 deletions

View File

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