test: unflake a few tests (#28205)
This commit is contained in:
parent
5488c03d7f
commit
11bf96fe98
|
@ -32,9 +32,7 @@ it('SharedArrayBuffer should work @smoke', async function({ contextFactory, http
|
|||
expect(await page.evaluate(() => typeof SharedArrayBuffer)).toBe('function');
|
||||
});
|
||||
|
||||
it('Web Assembly should work @smoke', async function({ page, server, browserName, platform }) {
|
||||
it.fail(browserName === 'webkit' && platform === 'win32');
|
||||
|
||||
it('Web Assembly should work @smoke', async function({ page, server }) {
|
||||
await page.goto(server.PREFIX + '/wasm/table2.html');
|
||||
expect(await page.evaluate('loadTable()')).toBe('42, 83');
|
||||
});
|
||||
|
|
|
@ -35,6 +35,7 @@ const it = playwrightTest.extend<{}, { expectScopeState: (object: any, golden: a
|
|||
});
|
||||
|
||||
it.skip(({ mode }) => mode !== 'default');
|
||||
it.skip(({ video }) => video === 'on', 'Extra video artifacts in the objects list');
|
||||
|
||||
it('should scope context handles', async ({ browserType, server, expectScopeState }) => {
|
||||
const browser = await browserType.launch();
|
||||
|
@ -184,7 +185,7 @@ it('should scope browser handles', async ({ browserType, expectScopeState }) =>
|
|||
expectScopeState(browserType, GOLDEN_PRECONDITION);
|
||||
});
|
||||
|
||||
it('should not generate dispatchers for subresources w/o listeners', async ({ page, server, browserType, expectScopeState, video }) => {
|
||||
it('should not generate dispatchers for subresources w/o listeners', async ({ page, server, browserType, expectScopeState }) => {
|
||||
server.setRedirect('/one-style.css', '/two-style.css');
|
||||
server.setRedirect('/two-style.css', '/three-style.css');
|
||||
server.setRedirect('/three-style.css', '/four-style.css');
|
||||
|
@ -201,7 +202,6 @@ it('should not generate dispatchers for subresources w/o listeners', async ({ pa
|
|||
{ _guid: 'browser-type', objects: [
|
||||
{
|
||||
_guid: 'browser', objects: [
|
||||
...(video === 'on' ? [{ _guid: 'artifact', objects: [] }] : []),
|
||||
{ _guid: 'browser-context', objects: [
|
||||
{
|
||||
_guid: 'page', objects: [
|
||||
|
@ -256,7 +256,7 @@ it('should work with the domain module', async ({ browserType, server, browserNa
|
|||
throw err;
|
||||
});
|
||||
|
||||
it('exposeFunction should not leak', async ({ page, expectScopeState, server, video }) => {
|
||||
it('exposeFunction should not leak', async ({ page, expectScopeState, server }) => {
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
let called = 0;
|
||||
await page.exposeFunction('myFunction', () => ++called);
|
||||
|
@ -284,7 +284,6 @@ it('exposeFunction should not leak', async ({ page, expectScopeState, server, vi
|
|||
{
|
||||
'_guid': 'browser',
|
||||
'objects': [
|
||||
...(video === 'on' ? [{ _guid: 'artifact', objects: [] }] : []),
|
||||
{
|
||||
'_guid': 'browser-context',
|
||||
'objects': [
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
import { contextTest as test } from '../config/browserTest';
|
||||
|
||||
test.slow();
|
||||
|
||||
test('cycle frames', async ({ page, server }) => {
|
||||
const kFrameCount = 1200;
|
||||
|
||||
|
|
Loading…
Reference in New Issue