diff --git a/e2e/cypress/integration/dozze_dark.spec.js b/e2e/cypress/integration/dozze_dark.spec.js deleted file mode 100644 index 86b21b0c..00000000 --- a/e2e/cypress/integration/dozze_dark.spec.js +++ /dev/null @@ -1,25 +0,0 @@ -/// - -context("Dozzle default mode", { baseUrl: Cypress.env("DOZZLE_DEFAULT") }, () => { - beforeEach(() => { - cy.visit("/"); - }); - - it("home screen", () => { - cy.get("li.running", { timeout: 10000 }).removeDates().replaceSkippedElements().matchImageSnapshot(); - }); - - it("correct title", () => { - cy.title().should("eq", "1 containers - Dozzle"); - - cy.get("li.running:first a").click(); - - cy.title().should("include", "- Dozzle"); - }); - - it("settings page", () => { - cy.get("a[href='/settings']").click(); - - cy.contains("About"); - }); -}); diff --git a/e2e/cypress/integration/dozze_settings.spec.js b/e2e/cypress/integration/dozze_settings.spec.js deleted file mode 100644 index 5093e751..00000000 --- a/e2e/cypress/integration/dozze_settings.spec.js +++ /dev/null @@ -1,20 +0,0 @@ -/// - -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/integration/dozzle_light.spec.js b/e2e/cypress/integration/dozzle_light.spec.js deleted file mode 100644 index 069e8335..00000000 --- a/e2e/cypress/integration/dozzle_light.spec.js +++ /dev/null @@ -1,15 +0,0 @@ -/// - -context.skip("Dozzle light mode", { baseUrl: Cypress.env("DOZZLE_DEFAULT") }, () => { - before(() => { - cy.visit("/settings"); - cy.contains("Use light theme").click(); - }); - beforeEach(() => { - cy.visit("/"); - }); - - it("home screen", () => { - cy.get("li.running", { timeout: 10000 }).removeDates().matchImageSnapshot(); - }); -}); diff --git a/e2e/cypress/integration/dozzle_routes.spec.js b/e2e/cypress/integration/dozzle_routes.spec.js deleted file mode 100644 index 0817d395..00000000 --- a/e2e/cypress/integration/dozzle_routes.spec.js +++ /dev/null @@ -1,7 +0,0 @@ -/// - -context("Dozzle routes", { baseUrl: Cypress.env("DOZZLE_DEFAULT") }, () => { - it("show", () => { - cy.visit("/show?name=dozzle").url().should("include", "/container/"); - }); -}); diff --git a/e2e/cypress/support/commands.js b/e2e/cypress/support/commands.js index 82f98729..d449407b 100644 --- a/e2e/cypress/support/commands.js +++ b/e2e/cypress/support/commands.js @@ -24,9 +24,9 @@ // -- This will overwrite an existing command -- // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) -import { addMatchImageSnapshotCommand } from "cypress-image-snapshot/command"; +// import { addMatchImageSnapshotCommand } from "cypress-image-snapshot/command"; -addMatchImageSnapshotCommand(); +// addMatchImageSnapshotCommand(); Cypress.Commands.add("removeDates", () => { cy.window().then((win) => win.document.querySelectorAll("time").forEach((el) => el.remove())); diff --git a/e2e/cypress/support/index.js b/e2e/cypress/support/index.js deleted file mode 100644 index d076cec9..00000000 --- a/e2e/cypress/support/index.js +++ /dev/null @@ -1,20 +0,0 @@ -// *********************************************************** -// This example support/index.js is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import "./commands"; - -// Alternatively you can use CommonJS syntax: -// require('./commands')