cypress update v13.17.0

This commit is contained in:
ISA
2025-01-02 09:46:12 +01:00
parent e6dff1dcf8
commit 60d9c9a9ae
22 changed files with 49 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
describe("contextmenuTest", () => { describe("contextmenuTest", () => {
it("tests contextmenuTest", () => { it("contetmenu Station öffnen (Tab)", () => {
cy.log("Test startet jetzt"); cy.log("Test startet jetzt");
// 1. Viewport einstellen // 1. Viewport einstellen

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

View File

@@ -1,27 +1,56 @@
// *********************************************************** // ***********************************************************
// This example support/e2e.js is processed and // Diese Datei wird automatisch geladen, bevor Tests ausgeführt werden.
// loaded automatically before your test files.
// //
// This is a great place to put global configuration and // Dies ist ein guter Platz für globale Konfigurationen
// behavior that modifies Cypress. // und Änderungen, die Cypress beeinflussen.
// //
// You can change the location of this file or turn off // Weitere Infos: https://on.cypress.io/configuration
// 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: // Importiere zusätzliche Befehle
import "./commands"; import "./commands";
// Alternatively you can use CommonJS syntax: // Alternativ: CommonJS-Syntax verwenden
// require('./commands') // require('./commands')
// Verstecke unnötige Logs für XHR- und Fetch-Anfragen
const app = window.top; const app = window.top;
if (!app.document.head.querySelector("[data-hide-command-log-request]")) { if (!app.document.head.querySelector("[data-hide-command-log-request]")) {
const style = app.document.createElement("style"); 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", ""); style.setAttribute("data-hide-command-log-request", "");
app.document.head.appendChild(style); 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
View File

@@ -1,5 +1,5 @@
{ {
"name": "23.12.2024 NodeMap V1.0.17.0", "name": "02.01.2025 NodeMap V1.0.18.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
@@ -42,7 +42,7 @@
"@testing-library/react": "^16.0.0", "@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2", "@testing-library/user-event": "^14.5.2",
"babel-jest": "^29.7.0", "babel-jest": "^29.7.0",
"cypress": "^13.14.2", "cypress": "^13.17.0",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
@@ -4668,9 +4668,9 @@
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
}, },
"node_modules/cypress": { "node_modules/cypress": {
"version": "13.16.1", "version": "13.17.0",
"resolved": "https://registry.npmjs.org/cypress/-/cypress-13.16.1.tgz", "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.17.0.tgz",
"integrity": "sha512-17FtCaz0cx7ssWYKXzGB0Vub8xHwpVPr+iPt2fHhLMDhVAPVrplD+rTQsZUsfb19LVBn5iwkEUFjQ1yVVJXsLA==", "integrity": "sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==",
"dev": true, "dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {

View File

@@ -46,7 +46,7 @@
"@testing-library/react": "^16.0.0", "@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2", "@testing-library/user-event": "^14.5.2",
"babel-jest": "^29.7.0", "babel-jest": "^29.7.0",
"cypress": "^13.14.2", "cypress": "^13.17.0",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",