Skip to content

Commit 11a6531

Browse files
committed
device emulation
1 parent ced482f commit 11a6531

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ module.exports = {
101101
{
102102
name: `Device`,
103103
use: {
104-
...devices[`iPhone 12 Pro Max`],
104+
...devices[`Pixel 4a (5G)`],
105105
browserName: `chromium`,
106106
headless: true,
107107
slowMo: 0,

tests/devices/Emulation.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { LoginPage } from "../../pageFactory/pageRepository/LoginPage";
2+
import { MyAccountPage } from "../../pageFactory/pageRepository/MyAccountPage";
3+
import { test } from '@playwright/test';
4+
5+
test(`Verify My Personal Information.`, 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+
});

0 commit comments

Comments
 (0)