Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,207 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript

調査の方向性

まずテストファイルとパッケージ設定を確認し、次にテスト内でグローバルな find、click、fillIn、visit および関連するヘルパーを検索します。同名の ember-cli-page-object 関数とネイティブ DOM ヘルパーを区別し、依存関係として ember-native-dom-helpers を追加し、影響を受けるすべてのモジュールでネイティブヘルパーを import します。残っているネイティブヘルパーの使用が globals に依存しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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';
主要言語
JavaScript
スター
120
フォーク
75
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

code-corps/code-corps-ember のほかの issue

code-corps/code-corps-ember の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。