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

Question: Trying to organize new folder using the playwright-bdd sample proj #131

Open
zmimi-lael opened this issue Apr 6, 2024 · 3 comments
Labels
question Further information is requested

Comments

@zmimi-lael
Copy link

zmimi-lael commented Apr 6, 2024

When I run the test, new feature is not added in the .features-gen

image

Also, my steps are written on another folder e.g. steps/customer/customer_steps

What will be the best practice, since I want to make the structure for each test steps on a page like organization?

@zmimi-lael zmimi-lael added the question Further information is requested label Apr 6, 2024
@vitalets
Copy link
Owner

vitalets commented Apr 7, 2024

Could you share the output of npx bddgen --verbose?

About steps - I've noticed that customer_steps are in TypeScript, but in config your target only .js steps: require: ['steps/**/*.js']. I think targeting both js/ts steps should help: require: ['steps/**/*.{js,ts}']

@zmimi-lael
Copy link
Author

image

@vitalets
Copy link
Owner

vitalets commented Apr 8, 2024

I see the error there:

Error: When using custom "test" function in createBdd() you should set "importTestFrom"...

Could you try to set "importTestFrom" in defineBddConfig() ?

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

No branches or pull requests

2 participants