secajs/tests/recorderHelper.spec.js
2025-02-26 23:56:14 +01:00

27 lines
758 B
JavaScript

// 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');
});
*/