Skip to content

Caden-Helbling/selenium-testing

Repository files navigation

Selenium UI Testing

This workflow is for UI testing the GHGC website using selenium.

Usage

To use this workflow as part of a larger workflow, first update the ui_data.json file to include the following:

  • A list of src links for logos you would like to check exist on the main page
  • A list of catalog titles you would like to check exist on the catalogs page (Partial titles are OK)

Add the following to the github environment:

  • The password required for sign in to the testing site (if required). Store as a secret with the name UI_PASSWORD
  • The base url you plan to test. Store as a variable with the name DASHBOARD_BASE_URL

Output

UI testing passes with a "Validation successful. All elements are present." message if all elements provided in the ui_data.json file are located.

If the test fails a PageValidationError will be triggered with the following returned values:

  • Missing logos: A list of any logos that were unable to be located.
  • Missing catalogs: A list of any catalogs from the .json file that were not found.
  • Logos out of alignment: Indicates that the logos present on the page are out of horizontal alignment.

About

testing of selenium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published