From 14b32db8eced54726aa9d2e7d947b506b0af724e Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Wed, 9 Sep 2020 13:15:18 +0200 Subject: [PATCH] Fix test selectors --- cypress/elements/account/left-menu/left-menu-selectors.js | 2 +- cypress/integration/warehouse.js | 2 +- src/components/SideBar/MenuItem.tsx | 8 +++++--- src/configuration/ConfigurationPage.tsx | 2 +- src/warehouses/components/WarehouseList/WarehouseList.tsx | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cypress/elements/account/left-menu/left-menu-selectors.js b/cypress/elements/account/left-menu/left-menu-selectors.js index 453e686ca..fb525ee06 100644 --- a/cypress/elements/account/left-menu/left-menu-selectors.js +++ b/cypress/elements/account/left-menu/left-menu-selectors.js @@ -1,4 +1,4 @@ /* eslint-disable sort-keys */ export const LEFT_MENU_SELECTORS = { - catalog: "[data-testid='catalogue']" + catalog: "[data-test-id='catalogue']" }; diff --git a/cypress/integration/warehouse.js b/cypress/integration/warehouse.js index 7ed06c295..208321164 100644 --- a/cypress/integration/warehouse.js +++ b/cypress/integration/warehouse.js @@ -7,7 +7,7 @@ describe("Warehouse settings", () => { xit("Warehouse section visible in the configuration", () => { cy.visit("/configuration/") .loginUser() - .get("[data-testid=warehouses][data-test=settingsSubsection]") + .get("[data-test-id=warehouses][data-test=settingsSubsection]") .click(); cy.location("pathname").should("eq", "/warehouses/"); }); diff --git a/src/components/SideBar/MenuItem.tsx b/src/components/SideBar/MenuItem.tsx index 897a87faf..77462c507 100644 --- a/src/components/SideBar/MenuItem.tsx +++ b/src/components/SideBar/MenuItem.tsx @@ -146,7 +146,11 @@ const MenuItem: React.FC = ({ ref={anchor} onClick={event => handleClick(event, menuItem)} > -