Playwright start

This commit is contained in:
2026-05-30 10:04:12 -04:00
parent 73f29cea08
commit 1f7a0819fc
108 changed files with 37445 additions and 62 deletions
+28
View File
@@ -0,0 +1,28 @@
const { test } = require('@playwright/test');
const { Website } = require('../helpers/website');
const TestReport = require('../utils/testReport');
test.describe('Link Verification', () => {
let website;
let testReport;
test.beforeEach(() => {
testReport = new TestReport();
});
test('VerifyPageLinks', async ({ page }) => {
website = new Website(page);
testReport.createTest(test.info().title);
await website.harassCalculatorPage.goto();
await testReport.verifyLinks(website.harassCalculatorPage);
await website.databasePage.goto();
await testReport.verifyLinks(website.databasePage);
await website.databaseSinglePage.goto('throne');
await testReport.verifyLinks(website.databaseSinglePage);
testReport.throwErrors();
});
});