Repository navigation
after:spec result does not match specification #23805
Copy link
Copy link
Closed
Labels
E2EIssue related to end-to-end testingIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.good first issueGood for newcomersGood for newcomerstype: typingsIssue related to Cypress types (for TypeScript)Issue related to Cypress types (for TypeScript)type: unexpected behaviorUser expected result, but got anotherUser expected result, but got another
Description
Activity
@alexplischke thanks for submitting this issue. I can confirm that these properties are not returning as expected:
Expected from
cypress-npm-api.d.ts:- addedtype: unexpected behaviorUser expected result, but got anotherUser expected result, but got another
on Nov 17, 2022 - addedgood first issueGood for newcomersGood for newcomerstype: typingsIssue related to Cypress types (for TypeScript)Issue related to Cypress types (for TypeScript)
on Apr 12, 2023 - addedE2EIssue related to end-to-end testingIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.and removed
on Apr 19, 2023 Hi, I see that another person is assigned to this issue, but their pull request doesn't pass the tests. Can I make another pull request too?
The code for this is done, but this has yet to be released. We'll update this issue and reference the changelog when it's released.
Released in Cypress 13.0.0.
- locked as resolved and limited conversation to collaborators
on Aug 29, 2023
Metadata
Metadata
Assignees
Labels
E2EIssue related to end-to-end testingIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.good first issueGood for newcomersGood for newcomerstype: typingsIssue related to Cypress types (for TypeScript)Issue related to Cypress types (for TypeScript)type: unexpected behaviorUser expected result, but got anotherUser expected result, but got another


Current behavior
My plugin listens to the
after:specevent and reports on the results it receives. Thestatsproperty ofresultshas the following properties:Desired behavior
According to
cypress/cli/types/cypress.d.ts
Line 5565 in 566a1a2
resultstype isCypressCommandLine.RunResult.The
RunResultinterface describesstatsas:This does not match the actual object's properties that I'm receiving.
In particular:
Test code to reproduce
Simply listen to the
after:specevent and inspect the results.Cypress Version
10.7.0
Node version
v16.13.0
Operating System
macOS 12.4
Debug Logs
No response
Other
No response