Skip to content

bcgov/sso-requests-e2e

Repository files navigation

Lifecycle:Experimental

sso-requests-e2e

TLDR: Let's run some tests - Follow the instructions here to get started.

This repo contains the E2E Test Framework for the SSO Requests Application.

What is in the directories?

The test framework is based on Cypress. It is designed to be run in a CI/CD pipeline, but can also be run locally. It comes with several support directories for documentaton, media and testing.

.github/workflows

Contains a sample workflows for running Cypress in Github actions and a full description of what is contained in the complex workflow. You can use this as a starting point for your own implementation.

docs

Contains the wiki documents. Updates to the wiki will be stored here and then automatically propagated to the wiki. Updates made to the wiki manually will be lost when the wiki is updated from here. The reason for this set up is providing traceability for the wiki content.

media

Contains the media files used in our README-s and the Wiki.

testing

The main test framework is contained in this directory. It is a standard Cypress framework with a few additions.

testing/cypress

Contains the Cypress-based test framework. All tests and supporting files are contained in this directory.

testing/cypress/e2e

In this directory we store the actual test scripts.

testing/cypress/pageObjects

In this directory we store the page objects for the Cypress tests. Page objects are used to store selectors and methods for interacting with the application.

This way we centralize the selectors and methods and can reuse them in multiple tests or when the application changes we would only have one location to change the definition.

Useful Resources

Common issues

  • Running locally, getting chrome-error://chromewebdata/ when logging in? Ensure the baseURL is updated in cypress.config.json to also point to your local, and restart cypress.

BCSC

BCSC must run against sso-requests-preview until available in sandbox, so is not in CI. To run locally:

You can now run the integrations-crud test. You can disable the others to test it alone.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages