-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Question: Is it possible to get feature name and line number in console error and report? #181
Comments
Are there any workarounds available for this functionality? Additionally, are there any plans to implement this feature in the near future? If so, I would be happy to contribute and assist in its development if needed. |
Hi @viktor-silakov ! Currently, there is a workaround how to get original location of scenario. There are 2 undocumented fixtures: Given("I am on Playwright home page", async ({ page, $uri, $bddTestMeta }) => {
console.log($uri, $bddTestMeta);
}); Output:
|
Thanks for the workaround and the response. Currently, I am using a standard HTML reporter for now, but my issue is more related to console errors. By the way, have you ever considered creating a community chat, for example, on Gitter or Discord? There are some questions that might not be suitable for the GitHub issues format, and a chat could be really helpful. |
I'm investigating how to implement it natively. But looks like we need to patch Playwright on some level, to change test location in error output. I've noticed that for regular Playwright tests output paths are also
That's good idea! Done. You are welcome to join: https://github.com/vitalets/playwright-bdd?tab=readme-ov-file#community Note: and big thanks for your support ❤️ |
Opened as issue in Playwright: microsoft/playwright#34125 |
The text was updated successfully, but these errors were encountered: