March 9, 2023, 10:38pm
Got the following error when running bench run-ui-tests frappe
Cypress could not verify that this server is running:
We are verifying this server because it has been configured as your `baseUrl`.
http://mysite.local:8000 is not the correct baseUrl, but where is the Cypress configuration located in frappe?
Nothing in frappe-bench/apps/frappe/package.json
Changed the ‘baseUrl’ in frappe-bench/apps/frappe/cypress.json but it doesn’t do anything
Can’t use yarn run cypress open to view Cypress GUI because the server is headless
Edit: found the actual code for bench commands
@click.argument("cypressargs", nargs=-1, type=click.UNPROCESSED)
@click.option("--headless", is_flag=True, help="Run UI Test in headless mode")
@click.option("--parallel", is_flag=True, help="Run UI Test in parallel mode")
@click.option("--with-coverage", is_flag=True, help="Generate coverage report")
Is there a bench arg that I can use to configure site url?
Thanks in advance for your help!
March 10, 2023, 1:12am
bench --site mysite.local add-to-hosts does the trick?
March 10, 2023, 5:19pm
It works! Thanks so much!