Codeception / Codeception/lib-innerbrowser

Add `seeSourceEquals()`

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。