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

Rewrite integration tests for team-member-test component

未關閉 適合新手
#1,613 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
120
分支
75
PR 合併指標
30 天內沒有已合併 PR

描述

# Problem

As of right now, `tests/integration/components/team-member-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/team-member-test.js 開始,並將其與 tests/pages/components/donations/create-donation.js 和 tests/integration/components/donations/create-donation-test.js 進行比較。查看 ember-cli-page-objects 的快速入門指南,並在需要時使用其中說明的產生器。當 team-member-test 元件整合測試使用頁面物件而不是 jQuery 選取器時,即表示完成。

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

評估

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

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

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