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

Bug: For multiple projects the step definition snippets is not display #59

Closed
jzaratei opened this issue Sep 29, 2023 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@jzaratei
Copy link

jzaratei commented Sep 29, 2023

Given

export default defineConfig({
  ...
  project : {
      name: "login-chrome",
      testDir: defineBddConfig({
        outputDir: ".features-gen/login",
        importTestFrom: "page-objects/basePage.ts",
        paths: ["./features/login.feature"],
        require: ["page-objects/*.ts"],
        featuresRoot: "./features",
        verbose: true,
      }),
    },
    {
      name: "Regresion - Chrome",
      testDir: defineBddConfig({
        outputDir: ".features-gen/regression",
        importTestFrom: "page-objects/basePage.ts",
        paths: ["./features/todo.feature"],
        require: ["page-objects/*.ts"],
        featuresRoot: "./features",
        verbose: true,
      }),
      dependencies: ["login-chrome"],
   }

And I have a step missing in the second project

When
I execute npx bddgen

Then
[2023-09-29T08:24:38.029Z] Missing steps found. Use snippets below:
import { Fixture, Given, When, Then } from 'playwright-bdd/decorators';

Expected behavior
[2023-09-29T08:24:38.029Z] Missing steps found. Use snippets below:
import { Fixture, Given, When, Then } from 'playwright-bdd/decorators';
[2023-09-29T08:24:38.030Z] // 1. Missing step definition for "features**.feature:49:9"
@when('I do login')

Isolated demo
vitalets/playwright-bdd-example#3

Environment

@jzaratei jzaratei added the bug Something isn't working label Sep 29, 2023
@jzaratei jzaratei changed the title Bug: For multiple projects the step definition snipped is not display Bug: For multiple projects the step definition snippets is not display Sep 29, 2023
@vitalets
Copy link
Owner

vitalets commented Oct 8, 2023

Reproduced the bug, will investigate.
Thanks!

@vitalets
Copy link
Owner

Fixed in v5.4.0.
@jzaratei could you re-check on your side?

@jzaratei
Copy link
Author

Now, the steps snippets are working fine!
I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants