WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

TACC/Core-Portal-E2E

Repository files navigation

Core-Portal-E2E

Steps to run:

  1. Run the command npm install and npx playwright install to install playwright and the relevant project dependancies
  2. 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)
  3. Run the following command from root of the project: python3 utils/pythonHelper.py and ensure a file named custom_portal_settings.json gets created in the settings folder with some portal data
  4. The test suite can be run using one of the following commands:
    • Full test suite (runs all the tests available):
      • npx playwright test --project=default --project=unauthorized
    • Limited test suite (skips application and datafile tests):
      • npx playwright test --project=limited --project=unauthorized

To run other portals:

  1. Repeat Steps 2-3 from above for the portal you want to test, replacing or renaming the previous files.
  2. Update fixtures/baseFixture.js with the portal information, replacing or renaming the previous file.

Useful cli flags:

  • --debug to run debug mode (headed + step-through controls + selector creation)
  • --headed to run headed
  • --ui to run the separate playwright ui that you can run tests in and get a trace log

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5