marvec / consoledot-e2e

RHOSAK UI Tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E2E tests for console.redhat.com

E2E tests for RedHat Console.

Build & Run

Tools:

Local requirements:

  • npm: 8.X
  • node: 16.X

Before running the tests you would need to provide a valid username and password to be used in the form of environment variables.

export TEST_USERNAME=...
export TEST_PASSWORD=...

or drop a .env file in the root folder with a similar content:

TEST_USERNAME=...
TEST_PASSWORD=...

now you can run the tests:

npm install # Install all the needed Node dependencies
npx playwright install # Install all the Playwright dependencies and needed browsers
npx playwright test --project chromium # Executes the tests on a selected browser (`chromium` in this case)

if you need to debug you can use the Playwright console and have a Playwright helper available in console by executing:

PWDEBUG=1 npx playwright test --project chromium --debug

Setup

This repository uses GitHub Actions as infrastructure to run the tests agains publicly accessible services. The CI only runs on the main branch to avoid sharing secrets on branches and forks.

Security

The only sensitive data in this project is the username and password used to login. Those are stored in GitHub Encrypted Secrets.

About

RHOSAK UI Tests

License:Apache License 2.0


Languages

Language:TypeScript 92.7%Language:Shell 3.7%Language:Dockerfile 3.6%