48 lines
2.4 KiB
Plaintext
48 lines
2.4 KiB
Plaintext
TEST: app.spec.mjs > v17.6.5 stays free of timer page errors during idle
|
||
STATUS: failed
|
||
Error: [2mexpect([22m[31mreceived[39m[2m).[22mtoBe[2m([22m[32mexpected[39m[2m) // Object.is equality[22m
|
||
|
||
Expected: [32m"17.6.5"[39m
|
||
Received: [31mundefined[39m
|
||
|
||
171 | await page.waitForTimeout(5500);
|
||
172 | expect(errors).toEqual([]);
|
||
> 173 | expect(await page.evaluate(()=>window.SunStabilityV17?.VERSION)).toBe('17.6.5');
|
||
| ^
|
||
174 | });
|
||
175 |
|
||
176 | test('v17.6.5 support refresh uses lightweight cloud API', async ({ page }) => {
|
||
at /home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:173:68
|
||
---
|
||
TEST: app.spec.mjs > v17.6.5 support refresh uses lightweight cloud API
|
||
STATUS: failed
|
||
Error: [2mexpect([22m[31mreceived[39m[2m).[22mtoBeTruthy[2m()[22m
|
||
|
||
Received: [31mfalse[39m
|
||
|
||
11 | const content=fs.readFileSync(path.join(process.cwd(),'public','core',file),'utf8');
|
||
12 | await page.addScriptTag({content});
|
||
> 13 | if(globalName)expect(await page.evaluate(name=>Boolean(window[name]),globalName)).toBeTruthy();
|
||
| ^
|
||
14 | }
|
||
15 | test('legacy localStorage payload cannot execute XSS', async ({ page }) => {
|
||
16 | const pageErrors=[]; page.on('pageerror',e=>pageErrors.push(String(e)));
|
||
at injectCore (/home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:13:85)
|
||
at /home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:179:3
|
||
---
|
||
TEST: app.spec.mjs > v17.6.5 support refresh uses lightweight cloud API
|
||
STATUS: failed
|
||
Error: [2mexpect([22m[31mreceived[39m[2m).[22mtoBeTruthy[2m()[22m
|
||
|
||
Received: [31mfalse[39m
|
||
|
||
11 | const content=fs.readFileSync(path.join(process.cwd(),'public','core',file),'utf8');
|
||
12 | await page.addScriptTag({content});
|
||
> 13 | if(globalName)expect(await page.evaluate(name=>Boolean(window[name]),globalName)).toBeTruthy();
|
||
| ^
|
||
14 | }
|
||
15 | test('legacy localStorage payload cannot execute XSS', async ({ page }) => {
|
||
16 | const pageErrors=[]; page.on('pageerror',e=>pageErrors.push(String(e)));
|
||
at injectCore (/home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:13:85)
|
||
at /home/runner/work/caterium-app/caterium-app/tests/app.spec.mjs:179:3
|
||
--- |