cool tests!!!

This commit is contained in:
counterweight 2025-02-26 23:56:14 +01:00
parent 3ac7425824
commit c1161e3a66
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 82 additions and 10 deletions

View file

@ -0,0 +1,27 @@
// You can uncomment this below to open a recorder page
/*
const { chromium } = require('playwright');
test('Mock records are present', async () => {
const browser = await chromium.launch({ headless: false });
const context = await browser.newContext();
await context.addCookies([
{
name: 'sessionUuid',
value: hardcodedSessionUuid,
domain: 'localhost',
path: '/',
expires: Math.floor(
new Date(new Date().setMonth(new Date().getMonth() + 1)).getTime() /
1000
), //This monster is this day next month, turned into epoch format
httpOnly: true,
secure: false,
sameSite: 'Lax',
},
]);
const page = await context.newPage();
await page.goto('http://localhost');
});
*/