chore: gitignore playwright Artefakte ignorieren und nur Test Datei annehmen

This commit is contained in:
ISA
2025-09-16 12:28:10 +02:00
parent 5b86d5293b
commit cdfdd3d6cf
11 changed files with 72 additions and 11 deletions

View File

@@ -23,4 +23,4 @@ NEXT_PUBLIC_USE_MOCKS=true
# z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen
# basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.374
NEXT_PUBLIC_APP_VERSION=1.1.375

View File

@@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=false
# basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.374
NEXT_PUBLIC_APP_VERSION=1.1.375

15
.gitignore vendored
View File

@@ -35,3 +35,18 @@ docs.zip
/mockData/
/__mocks__/
/__tests__/
# --- Playwright artifacts & selective test tracking ---
# Ignore Playwright output folders and run metadata
/test-results/
/playwright-report/
/.last-run.json
# Optional: ignore JUnit report artifacts if not needed in VCS
/reports/junit/
# Ignore all Playwright tests by default, keep only the main spec
/playwright/tests/**
!/playwright/tests/mapcomponent.spec.js
# Ignore Playwright cache if present
/playwright/.cache/

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "nodemap",
"version": "1.1.374",
"version": "1.1.375",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "nodemap",
"version": "1.1.374",
"version": "1.1.375",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",

View File

@@ -1,6 +1,6 @@
{
"name": "nodemap",
"version": "1.1.374",
"version": "1.1.375",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",

View File

@@ -1,6 +1,6 @@
<testsuites id="" name="" tests="3" failures="2" skipped="0" errors="0" time="22.572574">
<testsuite name="mapcomponent.spec.js" timestamp="2025-09-16T10:11:10.535Z" hostname="chromium" tests="3" failures="2" skipped="0" time="41.545" errors="0">
<testcase name="MapComponent" classname="mapcomponent.spec.js" time="20.181">
<testsuites id="" name="" tests="3" failures="3" skipped="0" errors="0" time="14.65598">
<testsuite name="mapcomponent.spec.js" timestamp="2025-09-16T10:21:16.870Z" hostname="chromium" tests="3" failures="3" skipped="0" time="38.656" errors="0">
<testcase name="MapComponent" classname="mapcomponent.spec.js" time="13.578">
<failure message="mapcomponent.spec.js:162:5 MapComponent" type="FAILURE">
<![CDATA[ [chromium] mapcomponent.spec.js:162:5 MapComponent ───────────────────────────────────────────
@@ -56,7 +56,7 @@
]]>
</system-out>
</testcase>
<testcase name="mouse wheel zoom updates mapZoom" classname="mapcomponent.spec.js" time="14.824">
<testcase name="mouse wheel zoom updates mapZoom" classname="mapcomponent.spec.js" time="12.558">
<failure message="mapcomponent.spec.js:239:5 mouse wheel zoom updates mapZoom" type="FAILURE">
<![CDATA[ [chromium] mapcomponent.spec.js:239:5 mouse wheel zoom updates mapZoom ───────────────────────
@@ -103,7 +103,52 @@
]]>
</system-out>
</testcase>
<testcase name="zoom control buttons update mapZoom" classname="mapcomponent.spec.js" time="6.54">
<testcase name="zoom control buttons update mapZoom" classname="mapcomponent.spec.js" time="12.52">
<failure message="mapcomponent.spec.js:272:5 zoom control buttons update mapZoom" type="FAILURE">
<![CDATA[ [chromium] mapcomponent.spec.js:272:5 zoom control buttons update mapZoom ────────────────────
TimeoutError: page.waitForFunction: Timeout 10000ms exceeded.
82 | */
83 | async function waitForZoomChange(page, previousZoom, compareFn) {
> 84 | await page.waitForFunction(
| ^
85 | (prev, cmp) => {
86 | const v = localStorage.getItem("mapZoom");
87 | if (!v) return false;
at waitForZoomChange (C:\Users\isa.LTW\Desktop\15.09.2025\NodeMap\15.09.2025 NodeMap V1.1.350\playwright\tests\mapcomponent.spec.js:84:14)
at C:\Users\isa.LTW\Desktop\15.09.2025\NodeMap\15.09.2025 NodeMap V1.1.350\playwright\tests\mapcomponent.spec.js:294:9
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
..\..\test-results\mapcomponent-zoom-control-buttons-update-mapZoom-chromium\test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #3: video (video/webm) ──────────────────────────────────────────────────────────────
..\..\test-results\mapcomponent-zoom-control-buttons-update-mapZoom-chromium\video.webm
────────────────────────────────────────────────────────────────────────────────────────────────
Error Context: ..\..\test-results\mapcomponent-zoom-control-buttons-update-mapZoom-chromium\error-context.md
]]>
</failure>
<system-out>
<![CDATA[[localStorage snapshot] {
mapZoom: [32m'10'[39m,
mapCenter: [32m'[53.23938294961826,8.21434020996094]'[39m,
showAppInfoCard: [32m'false'[39m,
showCoordinateInput: [32m'false'[39m,
showLayersPanel: [32m'false'[39m,
showAreaDropdown: [32m'false'[39m,
currentMapId: [32m'12'[39m,
currentUserId: [32m'484'[39m
}
[[ATTACHMENT|..\..\test-results\mapcomponent-zoom-control-buttons-update-mapZoom-chromium\test-failed-1.png]]
[[ATTACHMENT|..\..\test-results\mapcomponent-zoom-control-buttons-update-mapZoom-chromium\video.webm]]
[[ATTACHMENT|..\..\test-results\mapcomponent-zoom-control-buttons-update-mapZoom-chromium\error-context.md]]
]]>
</system-out>
</testcase>
</testsuite>
</testsuites>

View File

@@ -2,6 +2,7 @@
"status": "failed",
"failedTests": [
"6232baea8c2400610a3b-ecc9849a86ce59ad8482",
"6232baea8c2400610a3b-3d4c054f3ad171ada4e9"
"6232baea8c2400610a3b-3d4c054f3ad171ada4e9",
"6232baea8c2400610a3b-691f069061d2866a0187"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB