code-corps / code-corps/code-corps-ember
Rewrite integration test for project-item-test component
未關閉
- 主要語言
- JavaScript
- 星號
- 120
- 分支
- 75
- PR 合併指標
- 30 天內沒有已合併 PR
描述
## Problem
Currently, `tests/integration/components/project-item-test.js` doesn't make full use of its page object by not defining a renderPage() function. To dry up the code, you can set a renderPage() function above the moduleForComponent, pass in the needed hbs selectors, and call renderPage() in each test.
## References
#1605
貢獻指南
研究方向
從 tests/integration/components/project-item-test.js 開始,檢查其 page object 目前的使用方式。在 moduleForComponent 上方使用所需的 hbs 選擇器定義要求的 renderPage(),然後在每個 test 中呼叫 renderPage()。當 integration tests 在沒有重複 setup 的情況下仍然通過時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- testing
- Issue 類型
- 重構
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 58/100