Add a baseline test for clicking links

This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
parent 1051a9b878
commit 488949a5e3
3 changed files with 286 additions and 0 deletions

View File

@@ -62,6 +62,17 @@ describe('record integration tests', function (this: ISuite) {
server.close();
});
it('can record clicks', async () => {
const page: puppeteer.Page = await browser.newPage();
await page.goto('about:blank');
await page.setContent(getHtml.call(this, 'link.html'));
await page.click('span');
await page.click('a');
const snapshots = await page.evaluate('window.snapshots');
assertSnapshot(snapshots);
});
it('can record form interactions', async () => {
const page: puppeteer.Page = await browser.newPage();
await page.goto('about:blank');