skip network tests mac
This commit is contained in:
@ -6722,6 +6722,11 @@ ${extraLine ? 'const myVar = segLen(seg01, part001)' : ''}`
|
||||
|
||||
test.describe('Test network and connection issues', () => {
|
||||
test('simulate network down and network little widget', async ({ page }) => {
|
||||
const browserType = page.context().browser()?.browserType().name()
|
||||
test.skip(
|
||||
browserType !== 'chromium',
|
||||
'emulateNetworkConditions only works in chromium'
|
||||
)
|
||||
const u = await getUtils(page)
|
||||
await page.setViewportSize({ width: 1200, height: 500 })
|
||||
|
||||
@ -6792,6 +6797,11 @@ test.describe('Test network and connection issues', () => {
|
||||
})
|
||||
|
||||
test('Engine disconnect & reconnect in sketch mode', async ({ page }) => {
|
||||
const browserType = page.context().browser()?.browserType().name()
|
||||
test.skip(
|
||||
browserType !== 'chromium',
|
||||
'emulateNetworkConditions only works in chromium'
|
||||
)
|
||||
const u = await getUtils(page)
|
||||
await page.setViewportSize({ width: 1200, height: 500 })
|
||||
const PUR = 400 / 37.5 //pixeltoUnitRatio
|
||||
|
||||
@ -377,6 +377,9 @@ export async function getUtils(page: Page) {
|
||||
emulateNetworkConditions: async (
|
||||
networkOptions: Protocol.Network.emulateNetworkConditionsParameters
|
||||
) => {
|
||||
if (browserType !== 'chromium') {
|
||||
console.warn('emulateNetworkConditions will not work on this browser')
|
||||
}
|
||||
if (cdpSession === null) {
|
||||
// Use a fail safe if we can't simulate disconnect (on Safari)
|
||||
return page.evaluate('window.tearDown()')
|
||||
|
||||
Reference in New Issue
Block a user