keepTraceForPassedTests failure
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, playwright
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu với server.js quanh dòng 37 và helper Playwright tại Playwright.js:2509, sử dụng cấu hình đã báo cáo với keepVideoForPassedTests hoặc keepTraceForPassedTests được bật. Tái hiện lỗi và theo dõi cách các tùy chọn cho test đạt ảnh hưởng đến trạng thái của helper; hoàn thành có nghĩa là một trong hai tùy chọn hoạt động mà không có lỗi screenshot undefined, đồng thời vẫn giữ lại trace hoặc video được yêu cầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 4.2k
- Fork
- 756
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 16
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codeceptjs/CodeceptJS
-
stale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
codeceptjs/CodeceptJS#5420 · 1 bình luận ·
-
stale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
codeceptjs/CodeceptJS#5358 · 1 bình luận ·
-
stale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
codeceptjs/CodeceptJS#4958 · 10 bình luận · 2 reaction ·
-
stale
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
codeceptjs/CodeceptJS#4778 · 3 bình luận ·
-
stale
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
codeceptjs/CodeceptJS#5618 · 1 bình luận ·
Tất cả issue của codeceptjs/CodeceptJS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
palladius/rails8-app-on-gcp#145 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
web-platform-tests/interop#1455 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
corsairdev/corsair#1764 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100