Steps to run:
- Run the command
npm install
andnpx playwright install
to install playwright and the relevant project dependancies - In the settings folder create and populate the following files:
.env.secret
: follow template in .env.secret_example and populate with values from Stache entry.env.portal
: copy contents of the .env file relevant to the portal and environment being tested from the Core Portal Deployments repo (env file for prod cep)custom_portal_settings.py
: copy contents of the settings_custom file relevant to the portal and environment being tested from the Core Portal Deployments repo (settings_custom file for prod cep)
- Run the following command from root of the project:
python3 utils/pythonHelper.py
and ensure a file namedcustom_portal_settings.json
gets created in the settings folder with some portal data - Run tests using the command
npx playwright test
Useful cli flags:
--debug
to run debug mode (headed + step-through controls + selector creation)--headed
to run headed