Skip to content

Commit

Permalink
feat(actions): add "When I reload the page"
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Dec 5, 2022
1 parent 050b5a0 commit 21a3ca9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/actions/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './click';
export * from './reload';
export * from './visit';
20 changes: 20 additions & 0 deletions src/actions/reload.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { When } from '@badeball/cypress-cucumber-preprocessor';

/**
* When I reload the page:
*
* ```gherkin
* When I reload the page
* ```
*
* @example
*
* ```gherkin
* When I reload the page
* ```
*/
export function When_I_reload_the_page() {
cy.reload();
}

When('I reload the page', When_I_reload_the_page);

0 comments on commit 21a3ca9

Please sign in to comment.