saleor-dashboard/cypress/integration/warehouse.js
Krzysztof Wolski c778c200ed
Move from test cafe to Cypress (#584)
* Typo

* Add cypress config

* Login and logout tests

* Typo

* Add basic test for warehouse

* Wrong password test

* Fixes and docs

* Remove testcafe

* Add gh action

* Update changelog

* Fix typo

* Update msgs

* Work on GH action

* Record artifacts

* Fix warehouse test
2020-07-20 11:42:44 +02:00

26 lines
759 B
JavaScript

// <reference types="cypress" />
describe("Warehouse settings", () => {
beforeEach(() => {
cy.clearSessionData();
cy.loginUser("admin@example.com", "admin");
// Wait for log in
cy.get("[data-test=welcomeHeader]").contains("Hello there");
});
it("Warehouse section visible in the configuration", () => {
cy.visit("/configuration/")
.get("[data-testid=warehouses][data-test=settingsSubsection]")
.click();
cy.location("pathname").should("eq", "/warehouses/");
});
it("Editing warehouse is available", () => {
cy.visit(`/warehouses`)
.get("[data-testid=defaultwarehouse]")
.get("[data-test=editButton]")
.first()
.click()
.get("[data-test=generalInformationSection]");
});
});