diff --git a/examples/cypress/cypress/e2e/gmail/gmail.step.ts b/examples/cypress/cypress/e2e/gmail/gmail.step.ts index fb39b34a..b6e7a594 100644 --- a/examples/cypress/cypress/e2e/gmail/gmail.step.ts +++ b/examples/cypress/cypress/e2e/gmail/gmail.step.ts @@ -1,5 +1,7 @@ +/// + import { Given } from "@badeball/cypress-cucumber-preprocessor"; -Given("I open the gmail", function () { +Given("I open the gmail", () => { cy.visit("https://mail.google.com"); }); diff --git a/examples/cypress/cypress/e2e/google/google.step.ts b/examples/cypress/cypress/e2e/google/google.step.ts index 8d1ce44b..0c06e1cc 100644 --- a/examples/cypress/cypress/e2e/google/google.step.ts +++ b/examples/cypress/cypress/e2e/google/google.step.ts @@ -2,8 +2,6 @@ import { Given } from "@badeball/cypress-cucumber-preprocessor"; -// Import the necessary modules - -Given("I open the google", function () { +Given("I open the google", () => { cy.visit("https://www.google.co.in"); }); diff --git a/examples/cypress/package.json b/examples/cypress/package.json index 3e5d7028..3271eabe 100644 --- a/examples/cypress/package.json +++ b/examples/cypress/package.json @@ -5,9 +5,9 @@ "main": "index.js", "type": "module", "scripts": { - "build": "tsc", "clean": "rm -rf dist .run", - "test": "pnpm clean && pnpm build && cypress run --browser chrome --headed", + "build": "pnpm clean && tsc", + "test": "pnpm build && cypress run --browser chrome --headed", "report": "node dist/cucumber-html-report.js", "cy:run": "cypress run" },