nguyenngoclongdev / step-definition-generator

Generate step definition for multiple frameworks, such as Cypress, Playwright, and Cucumberjs.
https://marketplace.visualstudio.com/items?itemName=nguyenngoclong.cypress-cucumber-step-definition-generator
MIT License
6 stars 1 forks source link

Add "async function" to function #24

Open Charchika23 opened 2 days ago

Charchika23 commented 2 days ago

Thanks for this plugin. it is helpful to create unique step defs. I am using playwright + typescript + cucumber framework and wanted to request if ""async function" can be added to function definition when above framework combination is used.

Currently step def generated is: Then(I should see text {string}, (arg0: string) => { // [Then] Describes the expected outcome or result of the scenario. });

Requested step def generation: Then(I should see text {string}, async function (arg0: string) => { // [Then] Describes the expected outcome or result of the scenario. });

Thanks!

nguyenngoclongdev commented 2 days ago

@Charchika23 You can enable the setting below to generate an async function. image