super-rentals icon indicating copy to clipboard operation
super-rentals copied to clipboard

[Suggestion] Copy/Paste Issue

Open burhan opened this issue 1 year ago • 0 comments

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).

burhan avatar Jul 24 '22 20:07 burhan