Context:
- Playwright Version: [1.30]
- Operating System: [Mac]
- Node.js version: [v18.12.1]
- Browser: [All / Chromium]
- Extra: [any specific details about your environment]
Describe the bug
Incorrect behaviour for visible element:
In devtools
window.getComputedStyle($('[data-tid="refresh-modal"]')).visibility -> 'visible'
but in test it is contatly failing
const modal = page.locator('[data-tid="refresh-modal"]');
await expect(modal).toBeVisible();
- locator resolved to <div effect="fade/zoom" data-tid="refresh-modal" id="…>…</div>
- unexpected value "hidden"
Of course adding assertion for toBeHidden() + .not.toBeVisible are passing for that element.
I saw that Max mentioned in closed issues #19910 that something changed in version 1.30.
In DOM tree there is no display: none in the code.
Any ideas?
Context:
Describe the bug
Incorrect behaviour for visible element:
In devtools
window.getComputedStyle($('[data-tid="refresh-modal"]')).visibility-> 'visible'but in test it is contatly failing
Of course adding assertion for toBeHidden() + .not.toBeVisible are passing for that element.
I saw that Max mentioned in closed issues #19910 that something changed in version 1.30.
In DOM tree there is no
display: nonein the code.Any ideas?