mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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');
|
expect(await page.evaluate(() => typeof SharedArrayBuffer)).toBe('function');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Web Assembly should work @smoke', async function({ page, server, browserName, platform }) {
|
it('Web Assembly should work @smoke', async function({ page, server }) {
|
||||||
it.fail(browserName === 'webkit' && platform === 'win32');
|
|
||||||
|
|
||||||
await page.goto(server.PREFIX + '/wasm/table2.html');
|
await page.goto(server.PREFIX + '/wasm/table2.html');
|
||||||
expect(await page.evaluate('loadTable()')).toBe('42, 83');
|
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(({ mode }) => mode !== 'default');
|
||||||
|
it.skip(({ video }) => video === 'on', 'Extra video artifacts in the objects list');
|
||||||
|
|
||||||
it('should scope context handles', async ({ browserType, server, expectScopeState }) => {
|
it('should scope context handles', async ({ browserType, server, expectScopeState }) => {
|
||||||
const browser = await browserType.launch();
|
const browser = await browserType.launch();
|
||||||
@ -184,7 +185,7 @@ it('should scope browser handles', async ({ browserType, expectScopeState }) =>
|
|||||||
expectScopeState(browserType, GOLDEN_PRECONDITION);
|
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('/one-style.css', '/two-style.css');
|
||||||
server.setRedirect('/two-style.css', '/three-style.css');
|
server.setRedirect('/two-style.css', '/three-style.css');
|
||||||
server.setRedirect('/three-style.css', '/four-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-type', objects: [
|
||||||
{
|
{
|
||||||
_guid: 'browser', objects: [
|
_guid: 'browser', objects: [
|
||||||
...(video === 'on' ? [{ _guid: 'artifact', objects: [] }] : []),
|
|
||||||
{ _guid: 'browser-context', objects: [
|
{ _guid: 'browser-context', objects: [
|
||||||
{
|
{
|
||||||
_guid: 'page', objects: [
|
_guid: 'page', objects: [
|
||||||
@ -256,7 +256,7 @@ it('should work with the domain module', async ({ browserType, server, browserNa
|
|||||||
throw err;
|
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);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
let called = 0;
|
let called = 0;
|
||||||
await page.exposeFunction('myFunction', () => ++called);
|
await page.exposeFunction('myFunction', () => ++called);
|
||||||
@ -284,7 +284,6 @@ it('exposeFunction should not leak', async ({ page, expectScopeState, server, vi
|
|||||||
{
|
{
|
||||||
'_guid': 'browser',
|
'_guid': 'browser',
|
||||||
'objects': [
|
'objects': [
|
||||||
...(video === 'on' ? [{ _guid: 'artifact', objects: [] }] : []),
|
|
||||||
{
|
{
|
||||||
'_guid': 'browser-context',
|
'_guid': 'browser-context',
|
||||||
'objects': [
|
'objects': [
|
||||||
|
|||||||
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
import { contextTest as test } from '../config/browserTest';
|
import { contextTest as test } from '../config/browserTest';
|
||||||
|
|
||||||
|
test.slow();
|
||||||
|
|
||||||
test('cycle frames', async ({ page, server }) => {
|
test('cycle frames', async ({ page, server }) => {
|
||||||
const kFrameCount = 1200;
|
const kFrameCount = 1200;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user