Skip to content

Commit 93e2ff9

Browse files
Update Coding Standard
1 parent 66980ee commit 93e2ff9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Forms/RecoverPassword.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ test.describe('Recover Password with user data', () => {
1212
await recoverPassword.navigate();
1313
});
1414

15-
test('should require mandatory fields (empty form)', async () => {
15+
test('should require mandatory fields (empty form)', async ({ page }) => {
1616
// Submit the form without filling any fields
1717
await recoverPassword.submitdata();
1818

1919
// Validate error message for empty fields
2020
const validationMessage = await recoverPassword.emailInput.evaluate(input => input.validationMessage);
21-
const browserName = test.info().project.name;
21+
const browserName = page.context().browser().browserType().name();
2222

2323
// Browser-specific validation message check
2424
if (browserName === 'chromium' || browserName === 'firefox') {
@@ -29,7 +29,7 @@ test.describe('Recover Password with user data', () => {
2929
});
3030

3131
test('should successfully recover password with entered data', async () => {
32-
//user to enter email
32+
// User to enter email
3333
const email = 'test@gmail.com';
3434

3535
// Fill the email field with the entered data

0 commit comments

Comments
 (0)