diff --git a/e2e/cypress/integration/dozze_settings.spec.js b/e2e/cypress/integration/dozze_settings.spec.js new file mode 100644 index 00000000..5093e751 --- /dev/null +++ b/e2e/cypress/integration/dozze_settings.spec.js @@ -0,0 +1,20 @@ +/// + +context("Dozzle settings mode", { baseUrl: Cypress.env("DOZZLE_DEFAULT") }, () => { + beforeEach(() => { + cy.visit("/version").clearLocalStorage().visit("/settings"); + }); + + it("scrollbars", () => { + cy.contains("Use smaller scrollbars").click(); + cy.get("html").should("have.class", "has-custom-scrollbars"); + }); + + it("stopped containers", () => { + cy.contains("Show stopped containers") + .click() + .then(() => { + expect(JSON.parse(localStorage.getItem("DOZZLE_SETTINGS")).showAllContainers).to.be.true; + }); + }); +}); diff --git a/e2e/cypress/snapshots/dozze_settings.spec.js/Dozzle settings mode -- home screen.snap.png b/e2e/cypress/snapshots/dozze_settings.spec.js/Dozzle settings mode -- home screen.snap.png new file mode 100644 index 00000000..ded2c8fb Binary files /dev/null and b/e2e/cypress/snapshots/dozze_settings.spec.js/Dozzle settings mode -- home screen.snap.png differ