Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Viewport reset when I click on element. Part 2. #12151

Closed
andreirogal opened this issue Feb 16, 2022 · 5 comments
Closed

[BUG] Viewport reset when I click on element. Part 2. #12151

andreirogal opened this issue Feb 16, 2022 · 5 comments

Comments

@andreirogal
Copy link

Context:

  • Playwright Version: 1.19.1
  • Operating System: Linux darkflame 5.13.0-28-generic chore: remove page.queryObjects API #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Node.js version: 16.13.0
  • Browser: Chromium

System:

  • OS: Linux 5.13 Ubuntu 20.04.3 LTS (Focal Fossa)
  • Memory: 911.43 MB / 14.98 GB
  • Container: Yes

Binaries:

  • Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
  • npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm

Languages:

  • Bash: 5.0.17 - /usr/bin/bash

Describe the bug
This bug is similar to #10579 But a different device is being used.

import {devices, PlaywrightTestConfig} from '@playwright/test';

const config: PlaywrightTestConfig = {
    use: {
        ...devices['Galaxy S8']
    }
};
export default config;

See more https://github.com/andreirogal/playwright-viewport-bug/tree/bug-viewport-2

OK
image

FAIL
image

@2gury
Copy link

2gury commented Feb 16, 2022

is it possible to fix it somehow?

@dgozman
Copy link
Contributor

dgozman commented Feb 16, 2022

I can repro with a simpler script. Depending on the timeout in the middle, it either prints "360, 360" or "360, 1030".

    await page.goto('https://www.banki.ru/products/hypothec/catalogue/ipoteka_mnogodetnyim_semyam/');
    console.log(await page.evaluate(() => window.innerWidth));
    await page.waitForTimeout(5000);
    await page.goto('https://www.banki.ru/products/hypothec/catalogue/refinansirovanie_ipoteki/city/moskva/');
    console.log(await page.evaluate(() => window.innerWidth));

This reproduces to me as far back as [email protected].

@andreirogal
Copy link
Author

@mxschmitt Please tell me when it is planned to fix this bug? Thanks!

@andreirogal
Copy link
Author

Retest on version 1.20.0 The result is the same. This bug is reproducible.

@pavelfeldman
Copy link
Member

Why was this issue closed?

We are prioritizing the bugs based on the upvotes, recency and our ability to act. It looks like this issue only has a handful of upvotes, has not been touched recently and/or we lack sufficient feedback to act on it. We are closing issues like this one to keep our bug database maintainable. Please feel free to open a new issue and link this one to it if you think this is a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants