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

Feature: Highlight feature line where error has occured #157

Open
NikkTod opened this issue May 23, 2024 · 3 comments
Open

Feature: Highlight feature line where error has occured #157

NikkTod opened this issue May 23, 2024 · 3 comments
Labels
enhancement New feature or request waiting playwright

Comments

@NikkTod
Copy link

NikkTod commented May 23, 2024

The problem
I have multiple tests with many feature steps and when a test is failing it is difficult for me to see on which feature step the error occured.

A solution
Is there a way to highlight the step in which an error occured?

ps: I am using Vs Code

@NikkTod NikkTod added the enhancement New feature or request label May 23, 2024
@vitalets
Copy link
Owner

Could you provide a screenshot and expected output?

@NikkTod
Copy link
Author

NikkTod commented May 26, 2024

@vitalets , so currently when you start a test from the playwright plugin test explorer and my view is on a feature file no indication is shown on which scenario line the test has stoped with an error. I was wondering is something like this is possible:

Highliting the line where an error occured and if possible next to it the actual error message (see below image)

image

Another approach maybe is enhancing the playwright plugin test explorer to actually show also the scenario steps under a scenario (when we use bdd).

This is a screenshot from intellij (Playwirght + Cucumber):

image

@vitalets
Copy link
Owner

I've also re-checked Playwright vscode plugin, it does not display steps neither for success tests nor for failed.
Created an issue in Playwright repo: microsoft/playwright#31079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waiting playwright
Projects
None yet
Development

No branches or pull requests

2 participants