Skip to content

Commit 92915b1

Browse files
committed
visual comparision
1 parent 11a6531 commit 92915b1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { LoginPage } from "../../pageFactory/pageRepository/LoginPage";
2+
import { MyAccountPage } from "../../pageFactory/pageRepository/MyAccountPage";
3+
import { expect, test } from '@playwright/test';
4+
5+
test(`Verify User Login.`, async ({ page }) => {
6+
const loginPage = new LoginPage(page);
7+
const myAccountPage = new MyAccountPage(page);
8+
9+
await loginPage.navigateToURL();
10+
await loginPage.loginToApplication();
11+
await myAccountPage.verifyMyAccountHeader();
12+
13+
expect(await page.screenshot()).toMatchSnapshot('MyAccountView.png');
14+
});
109 KB
Loading

0 commit comments

Comments
 (0)