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

Rewrite integration tests for organization-menu-test component

未关闭
#1,610 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
120
派生
75
PR 合并指标
30 天内没有已合并 PR

描述

# Problem

As of right now, `tests/integration/components/organization-menu-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/organization-menu-test.js 开始,然后将其与 tests/pages/components/donations/create-donation.js 和 tests/integration/components/donations/create-donation-test.js 进行比较。如有需要,使用 ember generate page-object component/ 命令。当 organization-menu 集成测试使用 ember-cli-page-object 而不是 jQuery 选择器时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
testing
Issue 类型
重构
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。