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 JIRA (used for API calls during test setup)BUGZILLA_API_KEY: API key for Bugzilla (used for API calls during test setup)
Note: API keys are used for backend API calls during test setup and flaw creation. They are not stored in browser localStorage during tests, as the main OSIM application now stores API keys securely on the backend.
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 installThis should download the browser binaries for Playwright, if having problems, you can do it manually by running:
yarn playwright installYou can run Playwright in UI mode by running:
yarn devThis 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 testor specify the browser to use:
yarn test:firefox # see package.json for more optionsThis project is licensed under the MIT License - see the LICENSE file for details.