You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Home PageScenario: Check titleGiven I am on home page
Then I see in title "Playwright"
steps.ts
import{expect}from'@playwright/test';import{createBdd}from'playwright-bdd';const{ Given, When, Then }=createBdd();Then('I see in title {string}',async({ page },keyword)=>{awaitexpect(page).toHaveTitle(newRegExp(keyword));});
When
npx bddgen
Then
ERR_UNSUPPORTED_ESM_URL_SCHEME related to loadSnippetBuilder
Expected behavior
When I do have an undefined step, like Given I am on home page in this example, there shouldn't be an error. Or, at least, the error should contain human-readable message.
Given
playwright.config.ts
sample.feature
steps.ts
When
Then
ERR_UNSUPPORTED_ESM_URL_SCHEME
related toloadSnippetBuilder
Expected behavior
When I do have an undefined step, like
Given I am on home page
in this example, there shouldn't be an error. Or, at least, the error should contain human-readable message.Environment
platform: win32
node: v18.16.0
playwright-bdd: v5.4.0
@playwright/test: v1.39.0
@cucumber/cucumber: v10.0.1
Playwright config file: playwright.config.ts
The text was updated successfully, but these errors were encountered: