Codeception / Codeception/lib-innerbrowser

Add `seeSourceEquals()`

Đang mở
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
87
Fork
20
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.