mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
test: test gardening (#28001)
This commit is contained in:
parent
19b0f5ccb3
commit
07d5093583
@ -37,9 +37,10 @@ it('should upload the file', async ({ page, server, asset }) => {
|
||||
}, input)).toBe('contents of the file');
|
||||
});
|
||||
|
||||
it('should upload large file', async ({ page, server, browserName, isMac, isAndroid, mode }, testInfo) => {
|
||||
it('should upload large file', async ({ page, server, browserName, isMac, isAndroid, isWebView2, mode }, testInfo) => {
|
||||
it.skip(browserName === 'webkit' && isMac && parseInt(os.release(), 10) < 20, 'WebKit for macOS 10.15 is frozen and does not have corresponding protocol features.');
|
||||
it.skip(isAndroid);
|
||||
it.skip(isWebView2);
|
||||
it.skip(mode.startsWith('service'));
|
||||
it.slow();
|
||||
|
||||
@ -87,9 +88,10 @@ it('should upload large file', async ({ page, server, browserName, isMac, isAndr
|
||||
await Promise.all([uploadFile, file1.filepath].map(fs.promises.unlink));
|
||||
});
|
||||
|
||||
it('should upload multiple large files', async ({ page, server, browserName, isMac, isAndroid, mode }, testInfo) => {
|
||||
it('should upload multiple large files', async ({ page, server, browserName, isMac, isAndroid, isWebView2, mode }, testInfo) => {
|
||||
it.skip(browserName === 'webkit' && isMac && parseInt(os.release(), 10) < 20, 'WebKit for macOS 10.15 is frozen and does not have corresponding protocol features.');
|
||||
it.skip(isAndroid);
|
||||
it.skip(isWebView2);
|
||||
it.skip(mode.startsWith('service'));
|
||||
it.slow();
|
||||
|
||||
@ -127,9 +129,10 @@ it('should upload multiple large files', async ({ page, server, browserName, isM
|
||||
await Promise.all(uploadFiles.map(path => fs.promises.unlink(path)));
|
||||
});
|
||||
|
||||
it('should upload large file with relative path', async ({ page, server, browserName, isMac, isAndroid, mode }, testInfo) => {
|
||||
it('should upload large file with relative path', async ({ page, server, browserName, isMac, isAndroid, isWebView2, mode }, testInfo) => {
|
||||
it.skip(browserName === 'webkit' && isMac && parseInt(os.release(), 10) < 20, 'WebKit for macOS 10.15 is frozen and does not have corresponding protocol features.');
|
||||
it.skip(isAndroid);
|
||||
it.skip(isWebView2);
|
||||
it.skip(mode.startsWith('service'));
|
||||
it.slow();
|
||||
|
||||
|
@ -274,8 +274,9 @@ it('should work with :nth-child', async ({ page, server }) => {
|
||||
expect(await page.$$eval(`css=span:nth-child(23n+2)`, els => els.length)).toBe(1);
|
||||
});
|
||||
|
||||
it('should work with :nth-child(of) notation with nested functions', async ({ page, browserName }) => {
|
||||
it('should work with :nth-child(of) notation with nested functions', async ({ page, browserName, browserMajorVersion }) => {
|
||||
it.fixme(browserName === 'firefox', 'Should enable once Firefox supports this syntax');
|
||||
it.skip(browserName === 'chromium' && browserMajorVersion < 111, 'https://caniuse.com/css-nth-child-of');
|
||||
|
||||
await page.setContent(`
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user