Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.52 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.52 KB

End-to-end Playwright tests for OSIM

This repository contains end-to-end tests for OSIM using Playwright.

Required environment variables

  • OSIM_URL: URL of the OSIM instance to test
  • OSIDB_URL: URL of the OSIDB instance to test
  • JIRA_USERNAME: Username of the authenticated user in JIRA
  • JIRA_API_KEY: API key for jira
  • BUGZILLA_API_KEY: API key for bugzilla

The project uses dotenv to load the environment variables from a .env file.

Installation

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

Running the tests

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

See the CONTRIBUTING.md file for more information on how to contribute to this project.