Skip to content

Commit

Permalink
fix: 🐛 fixed cypress issue in step files
Browse files Browse the repository at this point in the history
  • Loading branch information
WasiqB committed Aug 4, 2024
1 parent 056bf74 commit 263609f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion examples/cypress/cypress/e2e/gmail/gmail.step.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/// <reference types="cypress" />

import { Given } from "@badeball/cypress-cucumber-preprocessor";

Given("I open the gmail", function () {
Given("I open the gmail", () => {
cy.visit("https://mail.google.com");
});
4 changes: 1 addition & 3 deletions examples/cypress/cypress/e2e/google/google.step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
4 changes: 2 additions & 2 deletions examples/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 263609f

Please sign in to comment.