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

Support UI Mode #24

Closed
LarsFischer97 opened this issue Jun 13, 2023 · 10 comments
Closed

Support UI Mode #24

LarsFischer97 opened this issue Jun 13, 2023 · 10 comments

Comments

@LarsFischer97
Copy link

Maybe I am wrong, but for me Playwright UI Mode is not finding my tests when using playwright-bdd.
https://playwright.dev/docs/test-ui-mode

I try to run it by using: npx bddgen && npx playwright test --ui

Supporting UI Mode would bring a lot of functions and productivity in my opinion.

Let me know what you think or if i initialize it wrong.

@vitalets
Copy link
Owner

vitalets commented Jun 13, 2023

It should work, I will re-check. Are you getting this error?
When using several calls of defineBddConfig() please manually provide different "outputDir" option

@LarsFischer97
Copy link
Author

Yes, i get that error.

@LarsFischer97
Copy link
Author

LarsFischer97 commented Jun 14, 2023

But i do not know what to do with this option. I filled it with an empty folder, but the error stays the same.

Where exactly should i provide outputDir? In playwright.config.ts in "defineBddConfig" or "defineConfig"? I tried in either one and both at the same time, but all didnt work.

@NikkTod
Copy link

NikkTod commented Jun 14, 2023

@vitalets , @LarsFischer97

Yep I can also reproduce, same error on my side

@vitalets
Copy link
Owner

Releasing today 3.0.2 with fixed --ui mode.
Thanks for the feedback, will also improve docs.

@vitalets
Copy link
Owner

@LarsFischer97 @NikkTod Could you pls re-check on just released v3.0.2?

@LarsFischer97
Copy link
Author

For me at least, i run into the same issues.

I just need to run "watch:pw": "playwright test --ui" from package.json right?

@NikkTod
Copy link

NikkTod commented Jun 14, 2023

I am just running playwright test --ui and Ui mode is showning without errors

@NikkTod
Copy link

NikkTod commented Jun 14, 2023

@LarsFischer97 are you on the v3.0.2 in the package.json file for the 'playwright-bdd'

@LarsFischer97
Copy link
Author

LarsFischer97 commented Jun 14, 2023

Yes i was on v3.0.2. but i messed around with the generator as i had some trouble on windows with the parsing. Maybe i knocked over some things there. I just did a clean install and everything worked fine.

Thanks for the fast help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants