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

[Suggestion] Copy/Paste Issue #162

Open
burhan opened this issue Jul 24, 2022 · 0 comments
Open

[Suggestion] Copy/Paste Issue #162

burhan opened this issue Jul 24, 2022 · 0 comments

Comments

@burhan
Copy link

burhan commented Jul 24, 2022

There is an issue when copy-pasting code from the official website in VSCode, namely the - (dash) is being copied as \U+2013 which is the n-dash character (ref: https://www.compart.com/en/unicode/U+2013).

VSCode will highlight this:

image

If your editor doesn't warn about this, you'll notice the tests are failing, but without indication as to why its failing:

not ok 16 Chrome 103.0 - [39 ms] - Integration | Component | rental/detailed: it renders detailed information about a rental property
    ---
        actual: >
            Type: Standalone - Estate
        expected: >
            Standalone – Estate
        stack: >
                at DOMAssertions.includesText (http://localhost:7357/assets/test-support.js:9731:12)
                at DOMAssertions.containsText (http://localhost:7357/assets/test-support.js:9741:19)
                at Object.<anonymous> (http://localhost:7357/assets/tests.js:406:42)
        message: >
            Element article .detail.type has text containing "Standalone – Estate"
        negative: >
            false
        browser log: |
    ...

I think this should be added as a warning as it seems to be specific to VSCode (as WebStorm doesn't have this problem).

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

No branches or pull requests

1 participant