Add `seeSourceEquals()`
还没有人认领这个 Issue。
评估
调研方向
从模块 rest/src/Codeception/Module/REST.php 中的 seeResponseEquals() 实现开始,并查看链接的 WebDriver issue 以确定命名方案。将共享行为移到 lib-innerbrowser,公开选定的 seeSourceEquals() 名称,并保留 seeResponseEquals() 作为 REST 别名以保持向后兼容性。
由索引模型根据 Issue 内容生成。
描述
When asserting "small" pages, it sometimes can be handy to assert that the page source is equal to an expected string. REST module has a nice method for that: seeResponseEquals().
I'm suggesting:
- Move this code to
lib-innerbrowserso all the other modules can use it too. - Rename it to
seeSourceEquals()(orseePageSourceEquals()- depending on the outcome of https://github.com/Codeception/module-webdriver/issues/19) - Add
seeResponseEquals()as an alias in REST module (for BC and semantics)
I suggested this for WebDriver as well: https://github.com/Codeception/module-webdriver/issues/20
- 主要语言
- PHP
- 星标
- 87
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Codeception/lib-innerbrowser 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 48/100
-
难度 3/5 1-2 天 新手友好度 42/100
-
难度 2/5 1-3 小时 新手友好度 35/100
Codeception/lib-innerbrowser#31 · 2 条评论 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 35/100
Codeception/lib-innerbrowser#16 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 48/100
Codeception/lib-innerbrowser#61 · 4 条评论 ·
查看 Codeception/lib-innerbrowser 的全部 Issue
相似的 Issue
-
jira-created
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 70/100
nunomaduro/phpinsights#745 ·
-
status/awaiting_triage
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
WordPress/plugin-check#1486 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 88/100
az-digital/az_quickstart#6019 ·