bahmutov / bahmutov/cy-api

Potential stack trace improvement

Open
#140 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
210
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Hi! First of all, thank you for the plugin! It works really well.

I have a question/suggestion.

If I use default `cy.request()`, on failure I get this behaviour:
![image](https://user-images.githubusercontent.com/81577230/139905580-a15141ca-f0e2-44df-9082-62781aa154f5.png)
So I could explore stack trace and click on link to go to test scenario.

Using `cy.api()`, seems I miss this opportunity:
![image](https://user-images.githubusercontent.com/81577230/139906259-b033a105-b88e-4c1f-a27a-2fe5cd5e4497.png)

Could it be improved somehow?

Best,
Vitali

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported failure with both Cypress `cy.request()` and this plugin's `cy.api()` command, using the linked screenshots as the expected comparison. Trace how each command reports failures and determine whether the `cy.api()` stack can expose a clickable link back to the test scenario; done means its failure output provides comparable navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, typescript
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.