Make v17.6.2 E2E use checked-out module source
This commit is contained in:
parent
5d001a162f
commit
7bfe88a67b
@ -39,6 +39,8 @@ test('chat photo guard compresses a large camera image', async ({ page }) => {
|
|||||||
});
|
});
|
||||||
test('v17.6.2 operations UX boots with menu and route features', async ({ page }) => {
|
test('v17.6.2 operations UX boots with menu and route features', async ({ page }) => {
|
||||||
await page.goto('/index.html', { waitUntil:'domcontentloaded' });
|
await page.goto('/index.html', { waitUntil:'domcontentloaded' });
|
||||||
|
const content=fs.readFileSync(path.join(process.cwd(),'public','core','ops-ux-v1762.js'),'utf8');
|
||||||
|
await page.addScriptTag({content});
|
||||||
await page.waitForFunction(()=>Boolean(window.SunOpsUXV1762),null,{timeout:15000});
|
await page.waitForFunction(()=>Boolean(window.SunOpsUXV1762),null,{timeout:15000});
|
||||||
const checks=await page.evaluate(()=>window.SunOpsUXV1762.checks());
|
const checks=await page.evaluate(()=>window.SunOpsUXV1762.checks());
|
||||||
expect(checks.version).toBe('17.6.2');
|
expect(checks.version).toBe('17.6.2');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user