code-corps / code-corps/code-corps-ember

Rewrite integration tests for drag-zone-test component

未關閉
#1,609 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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。當測試使用 page-object 方法而非 jQuery 選擇器時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
testing
Issue 類型
重構
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。