code-corps / code-corps/code-corps-ember
Rewrite integration test for task-title-test component
未關閉
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 120
- 分支
- 75
- PR 合併指標
- 30 天內沒有已合併 PR
描述
# Problem
Currently, `tests/integration/components/task-title-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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
開啟 tests/integration/components/task-title-test.js,檢查現有的 page object 和 moduleForComponent 測試。在 moduleForComponent 上方使用所需的 hbs 選擇器定義 renderPage(),然後更新每個測試以呼叫它。完成條件是整合測試使用 page object,而不重複渲染設定。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- frontend, testing
- Issue 類型
- 重構
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100