there are a few automatic PlayWright tests for the project.
Live: https://www.revelcommunities.com/
Test: https://test-revelcomm.pantheonsite.io/
Dev: https://dev-revelcomm.pantheonsite.io/
Installation
npm i
Run Tests
You can manage pages to test in the multi-page-visual.test.js
file:
const PAGES_TO_TEST = [
'/', // Homepage
'/communities/',
'/communities/eagle/',
'/communities/eagle/site-map/'
];
You can manage viewports to test in the multi-page-visual.test.js
file:
const VIEWPORTS = {
desktop: { width: 1920, height: 1080 },
tablet: { width: 768, height: 1024 },
mobile: { width: 375, height: 667 }
};
# Run test
npx playwright test multi-page-visual.test.js
# Run test only for Chrome
npx playwright test multi-page-visual.test.js --project=chromium