cool tests!!!
This commit is contained in:
parent
3ac7425824
commit
c1161e3a66
3 changed files with 82 additions and 10 deletions
27
tests/recorderHelper.spec.js
Normal file
27
tests/recorderHelper.spec.js
Normal 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');
|
||||
});
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue