Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

targetCreatedHandler triggers UnhandledPromiseRejectionWarning

Đang mở
#3,037 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, node.js, playwright
Lĩnh vực
testing-qa

Hướng nghiên cứu

Chạy các bài kiểm thử CI với đầu ra console tối thiểu bằng cấu hình Playwright được hiển thị, sau đó kiểm tra targetCreatedHandler và vị trí trong stack của Playwright.js quanh dòng 2643. Được xem là hoàn tất khi các bài kiểm thử vẫn vượt qua mà không có UnhandledPromiseRejectionWarning.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug playwright
What are you trying to achieve?

Running tests on the CI with minimum text output to the console

What do you get instead?

Though the tests pass the UnhandledPromiseRejectionWarning message creates redundant text output.

Provide console output if related. Use --verbose mode for more details.

(node:21420) UnhandledPromiseRejectionWarning: frame.frameElement: Frame has been detached.
    at C:\Users\...\..\...\node_modules\codeceptjs\lib\helper\Playwright.js:2643:46
(node:21420) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

photo_2021-09-11_14-31-21

Provide test source code if related

// paste test
Details
  • CodeceptJS version: 3.1.2
  • NodeJS Version: 14.17.5
  • Operating System: Windows and Linux
  • puppeteer || webdriverio || protractor || testcafe version (if related)
  • Configuration file:
//unrelated data omitted with "..."
exports.config = {
  tests: './test/steps/*_test.js',
  "translation": "ru-RU",
  output: './output',
  helpers: {
    Playwright: {
      url: 'someurl',
      show: false,
      browser: 'chromium'
    },
    GraphQL: {
      endpoint: '...',
    },
    ChaiWrapper : {
      "require": "codeceptjs-chai"
    },
    CustomPlaywrightHelper: {
      require: '.../customPlaywright_helper.js',
    },
    DateHelper: {
      require: '.../date_helper.js',
    },
    REST: {
    }
  },
  include: {
    I: './test/steps_file.js',
    pages: '...',
  },
  bootstrap: null,
  mocha: {
    "reporterOptions": {
      "reportDir": "output"
    }
  },
  name: 'foo',
  plugins: {
    pauseOnFail: {},
    retryFailedStep: {
      enabled: true
    },
    tryTo: {
      enabled: true
    },
    screenshotOnFail: {
      enabled: true
    },
    "allure": {
      "enabled": true
    }
  }
}
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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codeceptjs/CodeceptJS

Tất cả issue của codeceptjs/CodeceptJS

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.