I’ll say that I’m not particularly friendly with the codeception, and in general, automation of dnar. There is a need to use two views (admin panel and the site itself) in one acceptance test. How to implement it I have no idea. I would like to do something like this:
$I = new AcceptanceTester($scenario); // Перехожу на сайт и выполняю какие-то действия $I->amOnPage('http://mysite.com'); // some code // Далее перехожу в интерфейс админки и совершаю там некоторые действия $I->amOnPage('https://edit-mysite.com'); //some code // Затем снова перехожу на сайт и смотрю применились ли изменения $I->amOnPage('http://mysite.com'); // some code But in this case, the url specified in the acceptance.suite.yml configuration is substituted for the urls and the test tries to go to the website http://mysite.com/http://mysite.com or in the case of the admin panel at http: // mysite .com / https: //edit-mysite.com .
Can there be any tools that allow absolute urls to be written in amOnPage ()?
Maybe someone has an idea how to implement it? Or someone faced with a similar task? In any case, I will be glad to your advice and help on your part!