mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-31 18:17:23 +01:00
Adds more tests
This commit is contained in:
20
e2e/cypress/integration/dozze_settings.spec.js
Normal file
20
e2e/cypress/integration/dozze_settings.spec.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/// <reference types="cypress" />
|
||||
|
||||
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;
|
||||
});
|
||||
});
|
||||
});
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 165 KiB |
Reference in New Issue
Block a user