Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeat latest request in functional test? #33

Open
ThomasLandauer opened this issue Jan 12, 2018 · 3 comments
Open

Repeat latest request in functional test? #33

ThomasLandauer opened this issue Jan 12, 2018 · 3 comments
Assignees

Comments

@ThomasLandauer
Copy link
Member

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
@ppetpadriew
Copy link

ppetpadriew commented Jan 13, 2018

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

@ThomasLandauer
Copy link
Member Author

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

@TavoNiievez TavoNiievez transferred this issue from Codeception/Codeception Mar 29, 2021
@TavoNiievez
Copy link
Member

Related to: Codeception/Codeception#6038
This is not difficult to implement, I will do it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants