code-corps / code-corps/code-corps-ember
Rewrite integration tests for drag-zone-test component
- 主要言語
- JavaScript
- スター
- 120
- フォーク
- 75
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
# Problem
As of right now, `tests/integration/components/drag-zone-test.js` isn't utilizing ember-cli-page-objects, and instead is using jQuery to select elements.
## References
#1606
## Resources
- What's a page object? [[1](http://martinfowler.com/bliki/PageObject.html),[2](https://wyeworks.com/blog/2015/5/13/using-the-page-object-pattern-with-ember-cli/)]
- [Quickstart guide](http://ember-cli-page-object.js.org/docs/v1.6.x/quickstart)
- See tests/pages/components/donations/create-donation.js and tests/integration/components/donations/create-donation-test.js for in-house examples of, respectively, a page object and the page object being utilized in an integration test.
- To generate a page object, run `ember generate page-object component/` in the project directory.
コントリビューションガイド
調査の方向性
tests/integration/components/drag-zone-test.js から始め、次に tests/pages/components/donations/create-donation.js と tests/integration/components/donations/create-donation-test.js を比較します。ドキュメント化された page-object generator を使用し、drag-zone integration test を実行します。テストが jQuery セレクターではなく page-object アプローチを使用していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- testing
- issue の種類
- リファクタリング
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100