Codeception / Codeception/lib-innerbrowser

Repeat latest request in functional test?

未关闭
#33 3 条评论 0 个 reaction 已指派 1 人 已被 @TavoNiievez 认领 在 GitHub 查看
主要语言
PHP
星标
87
派生
20
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。