change error message
This commit is contained in:
parent
6c887475f3
commit
b5e0b22fe6
|
@ -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)
|
||||
|
|
Reference in New Issue