cypress update v13.17.0
@@ -1,5 +1,5 @@
|
||||
describe("contextmenuTest", () => {
|
||||
it("tests contextmenuTest", () => {
|
||||
it("contetmenu Station öffnen (Tab)", () => {
|
||||
cy.log("Test startet jetzt");
|
||||
|
||||
// 1. Viewport einstellen
|
||||
|
||||
BIN
cypress/screenshots/nach-rechtsklick (10).png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cypress/screenshots/nach-rechtsklick (11).png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
cypress/screenshots/nach-rechtsklick (12).png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
cypress/screenshots/nach-rechtsklick (13).png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cypress/screenshots/nach-rechtsklick (14).png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cypress/screenshots/nach-rechtsklick (15).png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cypress/screenshots/nach-rechtsklick (16).png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cypress/screenshots/nach-rechtsklick (17).png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cypress/screenshots/nach-rechtsklick (7).png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
cypress/screenshots/nach-rechtsklick (8).png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
cypress/screenshots/nach-rechtsklick (9).png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cypress/screenshots/test-abgeschlossen (3).png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
cypress/screenshots/test-abgeschlossen (4).png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
cypress/screenshots/test-abgeschlossen (5).png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
cypress/screenshots/test-abgeschlossen (6).png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
cypress/screenshots/test-abgeschlossen (7).png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
cypress/screenshots/test-abgeschlossen (8).png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
cypress/screenshots/test-abgeschlossen (9).png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
@@ -1,27 +1,56 @@
|
||||
// ***********************************************************
|
||||
// This example support/e2e.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
// Diese Datei wird automatisch geladen, bevor Tests ausgeführt werden.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
// Dies ist ein guter Platz für globale Konfigurationen
|
||||
// und Änderungen, die Cypress beeinflussen.
|
||||
//
|
||||
// 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
|
||||
// Weitere Infos: https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
// Importiere zusätzliche Befehle
|
||||
import "./commands";
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// Alternativ: CommonJS-Syntax verwenden
|
||||
// require('./commands')
|
||||
|
||||
// Verstecke unnötige Logs für XHR- und Fetch-Anfragen
|
||||
const app = window.top;
|
||||
if (!app.document.head.querySelector("[data-hide-command-log-request]")) {
|
||||
const style = app.document.createElement("style");
|
||||
style.innerHTML = ".command-name-request, .command-name-xhr { display: none }";
|
||||
style.innerHTML = `
|
||||
.command-name-request, .command-name-xhr {
|
||||
display: none; /* Verstecke Fetch- und XHR-Logs */
|
||||
}
|
||||
.runnable-pass .collapsible-header {
|
||||
display: none; /* Verstecke den Header erfolgreicher Tests */
|
||||
}
|
||||
`;
|
||||
style.setAttribute("data-hide-command-log-request", "");
|
||||
app.document.head.appendChild(style);
|
||||
}
|
||||
|
||||
// Globale Ereignisse für Cypress konfigurieren
|
||||
Cypress.on("test:after:run", (test, runnable) => {
|
||||
// Minimiert die Logs für erfolgreiche Tests
|
||||
if (test.state === "passed") {
|
||||
runnable._testConfigBody = null; // Löscht den Test Body
|
||||
}
|
||||
});
|
||||
|
||||
// Schließe automatisch erfolgreiche Tests in der GUI
|
||||
Cypress.on("log:added", (log) => {
|
||||
if (log.state === "passed") {
|
||||
log.displayName = ""; // Versteckt Log-Details für erfolgreiche Schritte
|
||||
}
|
||||
});
|
||||
|
||||
// Screenshot nach jedem fehlgeschlagenen Test
|
||||
Cypress.on("fail", (error, runnable) => {
|
||||
cy.screenshot(`error-${runnable.title}`); // Screenshot für Fehler erstellen
|
||||
throw error; // Fehler weitergeben
|
||||
});
|
||||
|
||||
// Logge die Dauer jedes Tests
|
||||
Cypress.on("test:after:run", (test) => {
|
||||
cy.log(`Test "${test.title}" abgeschlossen in ${test.duration} ms`);
|
||||
});
|
||||
|
||||
10
package-lock.json
generated
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "23.12.2024 NodeMap V1.0.17.0",
|
||||
"name": "02.01.2025 NodeMap V1.0.18.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
@@ -42,7 +42,7 @@
|
||||
"@testing-library/react": "^16.0.0",
|
||||
"@testing-library/user-event": "^14.5.2",
|
||||
"babel-jest": "^29.7.0",
|
||||
"cypress": "^13.14.2",
|
||||
"cypress": "^13.17.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^29.7.0",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
@@ -4668,9 +4668,9 @@
|
||||
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
|
||||
},
|
||||
"node_modules/cypress": {
|
||||
"version": "13.16.1",
|
||||
"resolved": "https://registry.npmjs.org/cypress/-/cypress-13.16.1.tgz",
|
||||
"integrity": "sha512-17FtCaz0cx7ssWYKXzGB0Vub8xHwpVPr+iPt2fHhLMDhVAPVrplD+rTQsZUsfb19LVBn5iwkEUFjQ1yVVJXsLA==",
|
||||
"version": "13.17.0",
|
||||
"resolved": "https://registry.npmjs.org/cypress/-/cypress-13.17.0.tgz",
|
||||
"integrity": "sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
"@testing-library/react": "^16.0.0",
|
||||
"@testing-library/user-event": "^14.5.2",
|
||||
"babel-jest": "^29.7.0",
|
||||
"cypress": "^13.14.2",
|
||||
"cypress": "^13.17.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^29.7.0",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
|
||||