-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Codeception - Unable to determine the request URI #3218
Comments
Which test? |
@samdark, acceptance wantTo('ensure that page works'); $I->amOnPage('/login/'); $I->see('Some text)'); |
Does the included acceptance test (in basic or advanced app) run well on your side? |
What version of Yii2 are you using? What version of Codeception and how you installed it? Also note that if you already have slah in yaml config than here in the begining it is not needed: $I->amOnPage('/login/'); |
have you tried without slash? can you post here your suite yaml, cept and page html so we can reproduce it if needed? |
@Ragazzo, yes, I tried. Cept: wantTo('ensure that home page works'); $I->amOnPage('/'); $I->see('Congratulations!'); Do you really need html page? Tests works fine, but after the text of the test output test errors. |
so as i see you are trying this one on |
@Ragazzo it is already working project, so I can not say that it yii2-basic or yii2-advanced, although the structure closer to the advanced and index page is not changed, but it does not matter - the tests work correctly - give Ok when text is found and failed when is not. For other page this is the same. The problem in error I get after test is finished and it try write logs if I'm not wrong. |
ok, can you upload maybe some small reproducable example of your exception? Because currently it is hard to say what is wrong. |
Try disabling the "debug" module (this is not needed for tests anyway). |
@qiangxue, It helped, thanks. |
Should we state it in the docs somewhere? |
i guess yes, but even with debug module on i was not having such problems, but as a note yes. maybe it should be done also in |
in yii1 this error solving if set urlFormat as 'get' in url manager |
Closing this one since I wasn't able to reproduce it. |
Get this error after the test is completed:
The text was updated successfully, but these errors were encountered: