Skip to content

e2e Tests fail #9

Closed
Closed

Description

@jasonwilliams

Hey @mjbvz it looks like e2e tests now fail since either the TypeScript update or VSCode update.
https://github.com/styled-components/typescript-styled-plugin/actions/runs/4601280928/jobs/8128959986#step:7:12

I reverted both TypeScript and typescript-template-language-service-decorator and it still fails, so it maybe an update in vscode itself.

I don't think this test suite has changed since you last wrote it
Do you know what this could be?

Example of a real request/response using current version
The below is adding background-color: and hitting ctrl + enter with "typescript.tsserver.log": "verbose" enabled in the settings.

Info 362  [08:34:52.770] request:
    {
      "seq": 85,
      "type": "request",
      "command": "completionEntryDetails",
      "arguments": {
        "file": "/home/jase/workspace/vscode-styled-components/src/tests/suite/colorize-fixtures/attrs.js",
        "line": 5,
        "offset": 20,
        "entryNames": [
          "aliceblue"
        ]
      }
    }
Perf 363  [08:34:52.770] 85::completionEntryDetails: elapsed time (in milliseconds) 0.3259
Info 364  [08:34:52.771] response:
    {"seq":0,"type":"response","command":"completionEntryDetails","request_seq":85,"success":true,"body":[{"name":"aliceblue","kind":"const","kindModifiers":"color","displayParts":[],"documentation":[{"kind":"text","text":"#f0f8ff"}],"tags":[]}]}

We can see that its working fine, when ran for real.

However, looking at the e2e test, we see a different story.

failedCompletion

There's been no changes made to these tests since its been forked, so I guess something upstream has caused these to stop working.

Activity

  1. Codex- commented on Dec 13, 2023

    @Codex-

    I'm looking into a bug and found that the e2e tests work for me, perhaps worth trying again now?

  2. jasonwilliams commented on Dec 13, 2023

    @jasonwilliams
    CollaboratorAuthor

    Yes I fixed it the other day so it’s fine now, this can be closed. Out of interest what big are you looking into?

  3. Codex- commented on Dec 13, 2023

    @Codex-

    @jasonwilliams this bug here: styled-components/vscode-styled-components#440

    I'll raise an issue here with a failing test case

    edit: raised: #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions