test: enable smooth scroll click after webkit roll (#13948)

This commit is contained in:
Yury Semikhatsky 2022-05-05 09:49:38 -07:00 committed by GitHub
parent 88fd4a79a8
commit 7e6439d19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,9 +251,8 @@ it('should scroll and click the button', async ({ page, server }) => {
expect(await page.evaluate(() => document.querySelector('#button-80').textContent)).toBe('clicked');
});
it('should scroll and click the button with smooth scroll behavior', async ({ page, server, browserName, headless, isLinux }) => {
it('should scroll and click the button with smooth scroll behavior', async ({ page, server }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/12370' });
it.skip(browserName === 'webkit' && !headless && isLinux);
await page.goto(server.PREFIX + '/input/scrollable.html');
await page.addStyleTag({ content: 'html { scroll-behavior: smooth; }' });
for (let i = 0; i < 10; i++) {