You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hovering over a element should trigger hover state. In the case from repository, the share button should be displayed on the right side of card. (see screenshots below)
Actual behavior
Hovering over a card (in my case) applies a blue outline as if the card is focused. Compared to states in Chrome dev tool.
The element's blue border on the snapshot is Playwright Trace Viewer's highlight of the element on which the action was performed, there is also a red dot showing position of the cursor. The style of the highlight that Playwright uses (style.outline = '2px solid #006ab1';) in this particular cases is very similar to what you page has when the element is clicked. We can probably do something smart to avoid such style clashes or allow to hide highlight of the active element in the trace viewer, so far this is the first case where we see such problem though.
@yury-s thank you for the answer 👍🏼 Different highlight style would be helpful. However, it also gives me a different result in the test (using hover) than in real interaction (or using :hover in dev tool). I don't get this share button circle (see screenshot) in PW. So I'm curious if the performed action in PW is somehow different compared to eg. :hover in chrome dev tool.
So I'm curious if the performed action in PW is somehow different compared to eg. :hover in chrome dev tool.
Yes. Playwright moves mouse over the element which not only triggers :hover pseudo class but also triggers all DOM mouse events. The share image is added by javascript.
Version
1.41.2
Steps to reproduce
Expected behavior
Hovering over a element should trigger hover state. In the case from repository, the share button should be displayed on the right side of card. (see screenshots below)
Actual behavior
Hovering over a card (in my case) applies a blue outline as if the card is focused. Compared to states in Chrome dev tool.
Additional context
Screenshots:
This is how it looks in PW test.
Focus-visible state in Chrome dev tool.
Hover state in Chrome dev tool.
Environment
The text was updated successfully, but these errors were encountered: