vitalets / playwright-bdd

BDD testing with Playwright runner
https://vitalets.github.io/playwright-bdd/
MIT License
287 stars 33 forks source link

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

Closed zmimi-lael closed 4 months ago

zmimi-lael commented 5 months ago

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?

vitalets commented 5 months ago

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 commented 5 months ago

image

vitalets commented 5 months ago

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() ?

vitalets commented 4 months ago

Closing as inactive. Feel free to re-open if needed.