
* 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
26 lines
759 B
JavaScript
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]");
|
|
});
|
|
});
|