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
Visual Studio Code version: Version: 1.74.3 (Universal), Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534
Playwright for VSCode extension version: 1.0.6
Browser: Chromium
Code Snippet
import{test}from"@playwright/test";test("What's Installed heading",async({ page })=>{awaitpage.goto("https://playwright.dev/docs/intro");awaitpage.getByRole("heading",{name: "What's Installed#",exact: true}).hover();// passes, VS Code extension doesn't workawaitpage.getByRole("heading",{name: "What\'s Installed#",exact: true}).hover();// passes, VS Code extension worksawaitpage.getByRole("heading",{name: "What\\'s Installed#",exact: true}).hover();// passes, VS Code extension doesn't workawaitpage.getByRole("heading",{name: "What\\\'s Installed#",exact: true}).hover();// passes, VS Code extension doesn't workawaitpage.getByRole("heading",{name: "What\\\\'s Installed#",exact: true}).hover();// fails, VS Code extension doesn't work});
Describe the bug
I believe that the same cause leads to at least 2 issues:
First, it is not accurate to allow to match locators by providing additional characters which do not exist on the browser (after all I'm passing a string not a regex). I believe that only the first getByRole here should pass and all the rest should fail:
playwright-escaped-match-name.mp4
Second, VS Code extension picks up only the line with "What\'s Installed#" name (which I believe is ins't fully accurate) and doesn't show Locator tooltip when any other line (including "What's Installed#") is selected/hovered:
playwright-vs-code-extension-locator.mp4
Notes:
I personally believe that this is a minor issue, I've noticed accidentally it only when I was recording a video for another issue. I don't have a real use case which would be blocked by this. Nonetheless, I still thought it is worthy to report this issue.
The text was updated successfully, but these errors were encountered:
Context:
1.30.0
Mac
v18.12.1
1.74.3
(Universal), Commit:97dec172d3256f8ca4bfb2143f3f76b503ca0534
1.0.6
Chromium
Code Snippet
Describe the bug
I believe that the same cause leads to at least 2 issues:
First, it is not accurate to allow to match locators by providing additional characters which do not exist on the browser (after all I'm passing a
string
not aregex
). I believe that only the firstgetByRole
here should pass and all the rest should fail:playwright-escaped-match-name.mp4
Second, VS Code extension picks up only the line with
"What\'s Installed#"
name (which I believe is ins't fully accurate) and doesn't show Locator tooltip when any other line (including"What's Installed#"
) is selected/hovered:playwright-vs-code-extension-locator.mp4
Notes:
I personally believe that this is a minor issue, I've noticed accidentally it only when I was recording a video for another issue. I don't have a real use case which would be blocked by this. Nonetheless, I still thought it is worthy to report this issue.
The text was updated successfully, but these errors were encountered: