chore: run cypress migrator fix: specPattern should be an array test: correct intercept URL This is breaking change in cypress 7.0 test: make list view test rerunnable test: redo undo tests and add compare doc test: scroll to action button chore: drop flaky tests fix: remove scroll behaviour fix: clear filters before running count test test: input delay causes flake
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
context("List View Settings", () => {
|
|
beforeEach(() => {
|
|
cy.login();
|
|
cy.visit("/app/website");
|
|
});
|
|
it("Default settings", () => {
|
|
cy.visit("/app/List/DocType/List");
|
|
cy.clear_filters();
|
|
cy.get(".list-count").should("contain", "20 of");
|
|
cy.get(".list-stats").should("contain", "Tags");
|
|
});
|
|
it("disable count and sidebar stats then verify", () => {
|
|
cy.wait(300);
|
|
cy.visit("/app/List/DocType/List");
|
|
cy.clear_filters();
|
|
cy.wait(300);
|
|
cy.get(".list-count").should("contain", "20 of");
|
|
cy.get(".menu-btn-group button").click();
|
|
cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click();
|
|
cy.get(".modal-dialog").should("contain", "DocType Settings");
|
|
|
|
cy.findByLabelText("Disable Count").check({ force: true });
|
|
cy.findByLabelText("Disable Sidebar Stats").check({ force: true });
|
|
cy.findByRole("button", { name: "Save" }).click();
|
|
|
|
cy.reload({ force: true });
|
|
|
|
cy.get(".list-count").should("be.empty");
|
|
cy.get(".list-sidebar .list-tags").should("not.exist");
|
|
|
|
cy.get(".menu-btn-group button").click({ force: true });
|
|
cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click();
|
|
cy.get(".modal-dialog").should("contain", "DocType Settings");
|
|
cy.findByLabelText("Disable Count").uncheck({ force: true });
|
|
cy.findByLabelText("Disable Sidebar Stats").uncheck({ force: true });
|
|
cy.findByRole("button", { name: "Save" }).click();
|
|
});
|
|
});
|