-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66980ee
commit 93e2ff9
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,13 @@ test.describe('Recover Password with user data', () => { | |
await recoverPassword.navigate(); | ||
}); | ||
|
||
test('should require mandatory fields (empty form)', async () => { | ||
test('should require mandatory fields (empty form)', async ({ page }) => { | ||
// Submit the form without filling any fields | ||
await recoverPassword.submitdata(); | ||
|
||
// Validate error message for empty fields | ||
const validationMessage = await recoverPassword.emailInput.evaluate(input => input.validationMessage); | ||
const browserName = test.info().project.name; | ||
const browserName = page.context().browser().browserType().name(); | ||
|
||
// Browser-specific validation message check | ||
if (browserName === 'chromium' || browserName === 'firefox') { | ||
|
@@ -29,7 +29,7 @@ test.describe('Recover Password with user data', () => { | |
}); | ||
|
||
test('should successfully recover password with entered data', async () => { | ||
//user to enter email | ||
// User to enter email | ||
const email = '[email protected]'; | ||
|
||
// Fill the email field with the entered data | ||
|