lib-innerbrowser icon indicating copy to clipboard operation
lib-innerbrowser copied to clipboard

Repeat latest request in functional test?

Open ThomasLandauer opened this issue 7 years ago • 3 comments

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

ThomasLandauer avatar Jan 12 '18 13:01 ThomasLandauer

Not sure if moveBack() and then reloadPage() will do the trick or not.

ppetpadriew avatar Jan 13 '18 15:01 ppetpadriew

Well, thanks, but reloadPage() is not available in functional tests, only in acceptance tests :-(

ThomasLandauer avatar Jan 15 '18 15:01 ThomasLandauer

Related to: https://github.com/Codeception/Codeception/discussions/6038 This is not difficult to implement, I will do it soon.

TavoNiievez avatar Mar 29 '21 14:03 TavoNiievez