Deprecation: Native dom helpers should not be used as globals in tests anymore
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ả
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,visitand other global functions in this group. Careful not to mistake them for the identically named functions provided byember-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
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 code-corps/code-corps-ember
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
code-corps/code-corps-ember#1616 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
code-corps/code-corps-ember#1613 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
code-corps/code-corps-ember#1612 ·
-
Difficulty: Medium Skill: ember-cli-page-object
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
code-corps/code-corps-ember#1063 · 1 reaction ·
-
greenkeeper
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
code-corps/code-corps-ember#1765 · 1 bình luận ·
Tất cả issue của code-corps/code-corps-ember
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100