I want to run functional tests on localhost, but acceptance test on a test server. I changed the configuration of the AcceptanceTester (yii\tests\codeception\frontend\acceptance.suite.yml) from:
WebDriver:
url: 'http://localhost'
to:
WebDriver:
url: 'https://test.mydomain.com'
When I run the tests, I need to have following URL in the browser: https://test.mydomain.com/test-page but I have: https://test.mydomain.com/yii/frontpage/web/index-test.php/test-page
How can I remove the root yii/frontpage/web/index-test.php/ from the URL?
In the end I have solved the problem by configuring the test server to be able to run the acceptance tests:
This solution has the advantage, that all my colleagues can run the tests independent from me.