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]: The toplayer (i.e. popover layer) is absent from the screenshots #33652

Open
ouvreboite opened this issue Nov 18, 2024 · 0 comments
Open

Comments

@ouvreboite
Copy link

Version

1.48.2

Steps to reproduce

  1. Create a test file as follow (this use a miniaml example hosted on https://popoverexample.tiiny.site/, which is a simple button triggering a popover)
// @ts-check
const { test, expect } = require('@playwright/test');

test('display popover when clicking the button', async ({ page }) => {
  await page.goto('https://popoverexample.tiiny.site/');
  await expect(page).toHaveTitle('Popover example');
  const popover = page.getByText("I'm a popover");
  await expect(popover).not.toBeVisible();
  await page.getByRole('button').click();
  await expect(popover).toBeVisible();
});
  1. Run npx playwright test --trace on
  2. The test pass ✅ (Playwright is able to view the activated popover)
  3. Open the trace file in the viewer (ex: trace.zip)
  4. The popover is not visible in the trace's screenshot. So it looks like the toplayer is not present in the screenshots.
    Image

Expected behavior

We should see the active popover in the trace's screenshots.
Image

Actual behavior

We don't see the popover (maybe the whole toplayer) in the trace's screenshots.

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.22621
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 6.32 GB / 31.74 GB
  Binaries:
    Node: 20.18.0 - C:\dev\devtools\nvm\nodejs\node.EXE
    npm: 10.8.2 - C:\dev\devtools\nvm\nodejs\npm.CMD
  IDEs:
    VSCode: 1.95.3 - C:\Users\jb.muscat\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  npmPackages:
    @playwright/test: ^1.48.2 => 1.48.2
@dgozman dgozman self-assigned this Nov 19, 2024
@dgozman dgozman added the v1.50 label Nov 19, 2024
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

2 participants