docker-magento
docker-magento copied to clipboard
Can't run MFTF tests: Cannot retrieve API token with credentials.
Description
I'm trying to run MFTF tests, but when I run bin/mftf run:test AdminLoginSuccessfulTest I got this error:
Steps To Reproduce
- Bin/download 2.4.4
- Bin/setup magento.test
- Enabled selenium on docker-compose.yml
- Run bin/mftf build:project
- Edit src/dev/tests/acceptance/.env with my config values
- Add SELENIUM_HOST=selenium to src/dev/tests/acceptance/.env
- Run bin/mftf run:test AdminLoginSuccessfulTest
Expected Result I expected that the test return OK.
Actual Result The error above mentioned.
Try to configure extra_hosts:
extra_hosts: &appextrahosts
- "magento.test:172.17.0.1"
Also uncomment all extra_hosts: *appextrahosts
Do make restart
And finally, please use HTTPS MAGENTO_BASE_URL=https://magento.test