diff --git a/packages/zui-player/tests/packets.spec.ts b/packages/zui-player/tests/packets.spec.ts index 29d692cd61..54201df493 100644 --- a/packages/zui-player/tests/packets.spec.ts +++ b/packages/zui-player/tests/packets.spec.ts @@ -1,8 +1,15 @@ import { play } from 'zui-player'; import { getPath } from 'zui-test-data'; +import { isCI } from '../helpers/env'; +// Timeouts are increased due to observed long pcap load times in CI. +// See play('packets.spec', (app, test) => { test('dropping a pcap does not pop up preview and load', async () => { + if (isCI()) { + test.setTimeout(120000); + app.page.setDefaultTimeout(120000); + } await app.dropFile(getPath('sample.pcap')); await app.attached(/Successfully loaded into sample.pcap/); }); @@ -17,6 +24,10 @@ play('packets.spec', (app, test) => { }); test('loading a bad pcap displays an error message', async () => { + if (isCI()) { + test.setTimeout(120000); + app.page.setDefaultTimeout(120000); + } await app.dropFile(getPath('bad.pcapng')); await app.attached(/Unable to generate full summary logs from PCAP/); });