Codeception / Codeception/lib-innerbrowser
Add `seeSourceEquals()`
- 主要语言
- PHP
- 星标
- 87
- 派生
- 20
- PR 合并指标
- 30 天内没有已合并 PR
描述
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()`](https://github.com/Codeception/module-rest/blob/master/src/Codeception/Module/REST.php#L1258).
I'm suggesting:
* Move this code to `lib-innerbrowser` so all the other modules can use it too.
* Rename it to `seeSourceEquals()` (or `seePageSourceEquals()` - 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
贡献指南
这个仓库没有索引到贡献指南
调研方向
从模块 rest/src/Codeception/Module/REST.php 中的 seeResponseEquals() 实现开始,并查看链接的 WebDriver issue 以确定命名方案。将共享行为移到 lib-innerbrowser,公开选定的 seeSourceEquals() 名称,并保留 seeResponseEquals() 作为 REST 别名以保持向后兼容性。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- testing
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100