Paywright - 2
Paywright - 2
By David Udoh
Note: In subsequent folders for a new project on same system, start with (Test:
Install Playwright - Select JavaScript), other steps above it covered.
Assertions
1. Sign up and assert the title ‘Store’.
Note: Shorter codes is best and structure your test into a hierrachy.
In test pyramid, Unit test, Integration and End-to-end test.
Hooks
Note: All fields throw a dialog if you proceed to purchase without filling details
Page Object Model
LoginPage.js
pomLogin.spec.js
Note: Create page folder in project (not under test) for your LoginPage.js