test: make Android/WebView2 bots green (#29477)
This commit is contained in:
Родитель
ff4191335d
Коммит
8fca4c86aa
|
@ -117,7 +117,8 @@ test('should not work with force:true', async ({ page, server }) => {
|
|||
expect(await page.evaluate('window.clicked')).toBe(undefined);
|
||||
});
|
||||
|
||||
test('should throw when page closes', async ({ page, server }) => {
|
||||
test('should throw when page closes', async ({ page, server, isAndroid }) => {
|
||||
test.fixme(isAndroid, 'GPU process crash: https://issues.chromium.org/issues/324909825');
|
||||
await page.goto(server.PREFIX + '/input/handle-locator.html');
|
||||
|
||||
await page.addLocatorHandler(page.getByText('This interstitial covers the button'), async () => {
|
||||
|
@ -176,7 +177,8 @@ test('should work with toBeVisible', async ({ page, server }) => {
|
|||
expect(called).toBe(1);
|
||||
});
|
||||
|
||||
test('should work with toHaveScreenshot', async ({ page, server }) => {
|
||||
test('should work with toHaveScreenshot', async ({ page, server, isAndroid }) => {
|
||||
test.fixme(isAndroid, 'Screenshots are cut off on Android');
|
||||
await page.setViewportSize({ width: 500, height: 500 });
|
||||
await page.goto(server.PREFIX + '/grid.html');
|
||||
|
||||
|
|
|
@ -78,8 +78,9 @@ it('should scroll into view display:contents with position', async ({ page, brow
|
|||
expect(await page.evaluate('window._clicked')).toBe(true);
|
||||
});
|
||||
|
||||
it('should not crash when force-clicking hidden input', async ({ page }) => {
|
||||
it('should not crash when force-clicking hidden input', async ({ page, isWebView2 }) => {
|
||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18183' });
|
||||
it.fixme(isWebView2);
|
||||
|
||||
await page.setContent(`<input type=hidden>`);
|
||||
const error = await page.locator('input').click({ force: true, timeout: 2000 }).catch(e => e);
|
||||
|
|
Загрузка…
Ссылка в новой задаче