Skip to content

Conversation

@duraisankar-k-19814
Copy link

In this change, i have removed a step I click link {string} from the existing step definition, moved that step into the testing library as a separate spec file and pointed the newly created spec file in defineBddConfig.

@vitalets
Copy link
Owner

Hey @duraisankar-k-19814

I've checked the branch, for me it works. The I click link {string} step is picked from the node_modules.

Could you please run the bddgen command in a vebose mode:

npx bddgen --verbose

For the output is following - 3 steps found:

Loading features: features/*.feature
Found feature files: 1
  - features/homepage.feature
Loading steps: features/steps/*.ts, /Users/vitalets/projects/playwright-bdd-example/node_modules/@zohodesk/testinglibrary/build/common/uat/steps/common.spec.js
Found step files: 3
  - node_modules/@zohodesk/testinglibrary/build/common/uat/steps/common.spec.js (1 step)
  - features/steps/fixtures.ts (0 steps)
  - features/steps/index.ts (2 steps)
Clearing output dir: .features-gen/**/*.spec.js
Generating Playwright test files: 1
  - .features-gen/features/homepage.feature.spec.js
Done (0.6s).

@duraisankar-k-19814
Copy link
Author

Found step files: 68

  • node_modules/@zohodesk/testinglibrary/build/core/playwright/fixtures.js (1 steps)
  • .
  • .
  • .
  • .
  • node_modules/@zohodesk/testinglibrary/build/common/uat/steps/common.spec.js (2 steps)
    Missing step definitions: 1

common.spec.js file is show while getting the spec file, But the step definition Is missing, I have check the step definition also there is no problem in the step definition.

@vitalets
Copy link
Owner

Pls, try to replicate the bug on this branch, I've already committed node_modules/@zohodesk/testinglibrary:
https://github.com/vitalets/playwright-bdd-example/tree/duraisankar-k-19814-main

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

Successfully merging this pull request may close these issues.

2 participants