BS-007 Implement accepted Contact page and independent enquiry service
This commit is contained in:
@@ -20,7 +20,7 @@ test('stored light initializes before React is allowed to load', async ({ page }
|
||||
await page.addInitScript(() => localStorage.setItem('bortstack-theme', 'light'))
|
||||
let release
|
||||
const gate = new Promise(resolve => { release = resolve })
|
||||
await page.route('**/src/main.jsx', async route => { await gate; await route.continue() })
|
||||
await page.route('**/src/main.jsx*', async route => { await gate; await route.continue() })
|
||||
const navigation = page.goto('/')
|
||||
await page.waitForFunction(() => globalThis.document.documentElement.dataset.bsTheme === 'light')
|
||||
expect(await page.locator('#root').innerHTML()).toBe('')
|
||||
|
||||
Reference in New Issue
Block a user