Codeception / Codeception/lib-innerbrowser

Repeat latest request in functional test?

Đang mở
#33 3 bình luận 0 reaction 1 người được giao Được @TavoNiievez nhận 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ả

Is there a way to just resend the very same request again in a functional test?

My scenario:
I'm submitting a POST-form, and I want to see what happens if I submit it again (i.e. the user presses F5 and confirms the browser dialog that the same data will be submitted again).
In my case, I can't just use `$I->submitForm()` again, cause on the new page the form isn't there anymore ;-) Well, special case - I have to admit...

But while thinking about that, it occured to me that a way to just repeat the same request would be a nice feature, wouldn't it?

* Codeception version: 2.3.7

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.