-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6761b4
commit ab63209
Showing
5 changed files
with
322 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
import { defineConfig } from "cypress"; | ||
import { initPlugin } from "@frsource/cypress-plugin-visual-regression-diff/plugins"; | ||
|
||
export default defineConfig({ | ||
e2e: {}, | ||
e2e: { | ||
setupNodeEvents(on, config) { | ||
initPlugin(on, config); | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
describe("Visual change", () => { | ||
it("main", () => { | ||
cy.visit("http://localhost:3000/"); | ||
cy.contains("Standorte"); | ||
cy.matchImage(); | ||
}); | ||
it("search", () => { | ||
cy.visit("http://localhost:3000/search?q=mw2001"); | ||
cy.contains("Räume"); | ||
cy.matchImage(); | ||
}); | ||
it("search-bar", () => { | ||
cy.visit("http://localhost:3000/"); | ||
cy.get("input").type("fsmb"); | ||
cy.wait(500); | ||
cy.matchImage(); | ||
}); | ||
it("about/privacy", () => { | ||
cy.visit("http://localhost:3000/about/privacy"); | ||
cy.contains("Privacy"); | ||
cy.matchImage(); | ||
}); | ||
it("about/datenschutz", () => { | ||
cy.visit("http://localhost:3000/about/datenschutz"); | ||
cy.contains("Datenschutz"); | ||
cy.matchImage(); | ||
}); | ||
it("about/ueber-uns", () => { | ||
cy.visit("http://localhost:3000/about/ueber-uns"); | ||
cy.contains("Über Navigatum"); | ||
cy.matchImage(); | ||
}); | ||
it("about/about-us", () => { | ||
cy.visit("http://localhost:3000/about/ueber-uns"); | ||
cy.contains("About us"); | ||
cy.matchImage(); | ||
}); | ||
it("about/impressum", () => { | ||
cy.visit("http://localhost:3000/about/impressum"); | ||
cy.contains("Impressum"); | ||
cy.matchImage(); | ||
}); | ||
it("about/imprint", () => { | ||
cy.visit("http://localhost:3000/about/imprint"); | ||
cy.contains("Imprint"); | ||
cy.matchImage(); | ||
}); | ||
it("api", () => { | ||
cy.visit("http://localhost:3000/api"); | ||
cy.contains("Api"); | ||
cy.matchImage(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
// *********************************************************** | ||
// This example support/e2e.ts 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') | ||
import "@frsource/cypress-plugin-visual-regression-diff"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.