Skip to content

Commit

Permalink
Fix warehouse test
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofwolski committed Jul 15, 2020
1 parent cef6590 commit 7fd28ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/images/login-background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion cypress/integration/warehouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("Warehouse settings", () => {

it("Editing warehouse is available", () => {
cy.visit("/dashboard/warehouses")
.get("[data-testid=africa]")
.get("[data-testid=defaultwarehouse]")
.get("[data-test=editButton]")
.first()
.click()
Expand Down
2 changes: 1 addition & 1 deletion src/warehouses/components/WarehouseList/WarehouseList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const WarehouseList: React.FC<WarehouseListProps> = props => {
onClick={warehouse ? onRowClick(warehouse.id) : undefined}
key={warehouse ? warehouse.id : "skeleton"}
data-test="warehouseEntry"
data-testid={warehouse?.name.toLowerCase()}
data-testid={warehouse?.name.toLowerCase().replace(" ", "")}
>
<TableCell className={classes.colName} data-test="name">
{maybe<React.ReactNode>(() => warehouse.name, <Skeleton />)}
Expand Down

0 comments on commit 7fd28ca

Please sign in to comment.