This repository contains end-to-end tests for OSIM using Playwright.
OSIM_URL
: URL of the OSIM instance to testOSIDB_URL
: URL of the OSIDB instance to testJIRA_USERNAME
: Username of the authenticated user in JIRAJIRA_API_KEY
: API key for jiraBUGZILLA_API_KEY
: API key for bugzilla
The project uses dotenv to load the environment variables from a .env
file.
Clone the repository and install the dependencies:
git clone [email protected]:RedHatProductSecurity/osim-ui-tests.git
cd osim-ui-tests
yarn install
This should download the browser binaries for Playwright, if having problems, you can do it manually by running:
yarn playwright install
You can run Playwright in UI mode by running:
yarn dev
This mode allows you to run the tests in a browser and see the results in the Playwright UI. Perfect for development and debugging.
To run the tests in headless mode, you can run:
yarn test
or specify the browser to use:
yarn test:firefox # see package.json for more options
This project is licensed under the MIT License - see the LICENSE file for details.