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

Deprecation: Native dom helpers should not be used as globals in tests anymore

Đang mở
#1,207 2 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
38/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
frontend, testing-qa

Hướng nghiên cứu

Bắt đầu bằng cách xem xét các tệp test và cấu hình package, sau đó tìm trong các test các helper toàn cục find, click, fillIn, visit và những helper liên quan. Phân biệt các helper DOM native với các hàm cùng tên của ember-cli-page-object, thêm dependency ember-native-dom-helpers và import các helper native trong mọi module bị ảnh hưởng. Hoàn tất khi không còn cách sử dụng helper native nào dựa vào globals.

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

Mô tả

Skill: ember-cli-page-object Skill: Ember.js Skill: JavaScript

Problem

Using native dom helpers as globals is now deprecated in our tests. Instead, we should add a new dependency to our app and import these helpers from it in any tests that need it.

We are leaning away from these anyway, due to relying on ember-cli-page-object, but there are still a couple of places where we do use them.

Subtasks

  • Install depdencency https://github.com/cibernox/ember-native-dom-helpers
  • Search through our tests for usage of the find, click, fillIn, visit and other global functions in this group. Careful not to mistake them for the identically named functions provided by ember-cli-page-object. The culprits we need to fixed are likely used as globals, in tests, directly.
  • In any module that uses them, import them using import { visit, click, find, fillIn } from 'ember-native-dom-helpers';
Ngôn ngữ chính
JavaScript
Star
120
Fork
75
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 code-corps/code-corps-ember

Tất cả issue của code-corps/code-corps-ember

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.