Skip to content

Commit cca996e

Browse files
authored
test: fix click tests on android (#42726)
1 parent 500c9c8 commit cca996e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/page/page-click-scroll.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ it('should scroll instantly on retry when scroll-behavior is smooth', async ({ p
167167
html { scroll-behavior: smooth; }
168168
body { margin: 0; }
169169
.spacer { height: 2000px; }
170-
#header { position: fixed; top: 0; left: 0; right: 0; height: calc(100vh - 50px); background: rgba(0, 0, 0, 0.1); }
170+
#header { position: fixed; top: 0; left: 0; right: 0; bottom: 50px; background: rgba(0, 0, 0, 0.1); }
171171
button { height: 30px; }
172172
</style>
173173
<div id="header"></div>

‎tests/page/page-click.spec.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,9 @@ it('should click in an iframe with border 2', async ({ page }) => {
10271027
expect(await page.evaluate('window._clicked')).toBe(true);
10281028
});
10291029

1030-
it('should not retain removed iframe after clicking inside it', async ({ page }) => {
1030+
it('should not retain removed iframe after clicking inside it', async ({ page, isAndroid }) => {
1031+
it.skip(isAndroid, 'requesting gc is not enough');
1032+
10311033
await page.setContent('<iframe srcdoc="<button>Click</button>"></iframe>');
10321034
const button = page.frameLocator('iframe').getByRole('button');
10331035
await button.waitFor();

0 commit comments

Comments
 (0)