diff --git a/cypress/integration/03.TagsAndCategories.feature b/cypress/integration/03.TagsAndCategories.feature index 8f27a36cf..f8bce831b 100644 --- a/cypress/integration/03.TagsAndCategories.feature +++ b/cypress/integration/03.TagsAndCategories.feature @@ -20,7 +20,7 @@ Feature: Tags and Categories Scenario: See an overview of categories When I navigate to the administration dashboard - And I click on "Categories" + And I click on the menu item "Categories" Then I can see a list of categories ordered by post count: | Icon | Name | Posts | | | Just For Fun | 2 | @@ -29,7 +29,7 @@ Feature: Tags and Categories Scenario: See an overview of tags When I navigate to the administration dashboard - And I click on "Tags" + And I click on the menu item "Tags" Then I can see a list of tags ordered by user count: | # | Name | Users | Posts | | 1 | Democracy | 2 | 3 | diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index c17c2729b..72a7225ff 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -146,6 +146,10 @@ When(`I click on {string}`, linkOrButton => { cy.contains(linkOrButton).click() }) +When(`I click on the menu item {string}`, linkOrButton => { + cy.contains('.ds-menu-item', linkOrButton).click() +}) + When('I press {string}', label => { cy.contains(label).click() })