adobe / aio-theme

The Adobe I/O theme for building markdown powered sites
Apache License 2.0
73 stars 43 forks source link

test: added e2e tests for get credentials #1585

Closed deepessh closed 1 month ago

deepessh commented 2 months ago

Description

Added e2e tests for get credentials component. Since the component needs to call console and TR APIs on stage, the tests need to run within corp network. For this, we setup a self-hosted github action runner. I have updated the job to use the self-hosted runner set up by @ronit1495.

Here's the list of changes in this PR:

  1. Added tests for api key and oauth s2s get credential component
  2. Added new dev:https:ci script to be able to run the development server using custom certificates stored in /example/certs folder
  3. Modified the e2e tests workflow to run inside docker, set the required env vars in /example/.env file
  4. Modified cypress config to include test user's email and pwd
  5. Added support functions to help with login
  6. Added data-cy attributes for making it easy to select elements in tests

Related Issue

https://jira.corp.adobe.com/browse/IOC-7681

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: