Codeception / Codeception/module-laminas

`seeCurrentRouteIs` fails when routes have a query param

未关闭
#29 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
1
派生
7
PR 合并指标
30 天内没有已合并 PR

描述

I currently work around this by just building the URL and checking that the url starts with it.

Output from our acceptance tests:

```
7) LoginCest: Test user cannot login with incorrect password | "" OR "1"="1"
Test tests/acceptance/User/LoginCest.php:testUserCannotLoginWithIncorrectPassword
Step See current route is "home/auth/login",{"lang":"zh_CN"}
Fail Failed asserting that two strings are identical.
- Expected | + Actual
@@ @@
-'/zh_CN/auth/login'
+'/zh_CN/auth/login?nocache=true'
```

贡献指南

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

调研方向

首先定位 `seeCurrentRouteIs` 步骤的实现,并查看 `tests/acceptance/User/LoginCest.php` 中的验收场景。使用 `lang=zh_CN` 路由和 `nocache=true` 查询参数重现失败,然后验证该步骤是否一致地处理预期 URL 和实际 URL。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
testing-qa
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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