Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

keepTraceForPassedTests failure

Offen
#5,433 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
65/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, playwright
Bereich
testing-qa

Rechercherichtung

Beginne mit server.js um Zeile 37 und dem Playwright-Helfer bei Playwright.js:2509 unter Verwendung der gemeldeten Konfiguration mit aktiviertem keepVideoForPassedTests oder keepTraceForPassedTests. Reproduziere den Fehler und verfolge, wie sich die Optionen für bestandene Tests auf den Zustand des Helfers auswirken; abgeschlossen ist die Aufgabe, wenn jede der beiden Optionen ohne den Fehler mit dem nicht definierten Screenshot funktioniert und dabei der angeforderte Trace oder das angeforderte Video erhalten bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

stale

I try to use the config options keepTraceForPassedTests and keepVideoForPassedTests.

I use the codeception module for php.

trace and video works. But when i try to activate one of the keepTraceForPassedTests and keepVideoForPassedTests options. it fails.

it use the playwright helper object. https://github.com/Codeception/module-playwright/blob/main/server.js#L37

playwright-1  | Init:  {
playwright-1  |   pw_debug: true,
playwright-1  |   timeout: 5000,
playwright-1  |   url: 'https://event-ticketing.local',
playwright-1  |   browser: 'webkit',
playwright-1  |   show: true,
playwright-1  |   fullPageScreenshots: true,
playwright-1  |   trace: true,
playwright-1  |   video: true,
playwright-1  |   ignoreHTTPSErrors: true,
playwright-1  |   emulate: {
playwright-1  |     userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1',
playwright-1  |     viewport: { width: 375, height: 812 },
playwright-1  |     deviceScaleFactor: 3,
playwright-1  |     isMobile: true,
playwright-1  |     hasTouch: true,
playwright-1  |     defaultBrowserType: 'webkit'
playwright-1  |   },
playwright-1  |   keepVideoForPassedTests: true
playwright-1  | }
playwright-1  | Error saving screenshot:  TypeError: Cannot read properties of undefined (reading 'screenshot')
playwright-1  |     at Playwright.saveScreenshot (/usr/lib/node_modules/codeception-module-playwright/node_modules/codeceptjs/lib/helper/Playwright.js:2509:21)
playwright-1  |     at /usr/lib/node_modules/codeception-module-playwright/server.js:69:28
playwright-1  |     at Layer.handle [as handle_request] (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/layer.js:95:5)
playwright-1  |     at next (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/route.js:149:13)
playwright-1  |     at Route.dispatch (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/route.js:119:3)
playwright-1  |     at Layer.handle [as handle_request] (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/layer.js:95:5)
playwright-1  |     at /usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/index.js:284:15
playwright-1  |     at router.process_params (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/index.js:346:12)
playwright-1  |     at next (/usr/lib/node_modules/codeception-module-playwright/node_modules/express/lib/router/index.js:280:10)
playwright-1  |     at /usr/lib/node_modules/codeception-module-playwright/node_modules/body-parser/lib/read.js:137:5
Vorherrschende Sprache
JavaScript
Sterne
4.2k
Forks
756
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
16

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codeceptjs/CodeceptJS

Alle Issues in codeceptjs/CodeceptJS

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.