diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index 5619174d9..c0510eff1 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -1,6 +1,5 @@ import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps' import find from 'lodash/find' -import { eq } from 'semver'; /* global cy */ @@ -74,7 +73,6 @@ Given('my user account has the role {string}', role => { // TODO: use db factories instead of seed data }) - When('I log out', logout) When('I visit the {string} page', page => { @@ -187,7 +185,8 @@ Then( .clear() .type(name) cy.contains('Save').click() -}) + } +) When('I press {string}', label => { cy.contains(label).click() })