Skip to content

Conversation

Hedie-cgi
Copy link
Collaborator

@Hedie-cgi Hedie-cgi commented Sep 25, 2025

Description

Implemented E2E automation of CCOF group application submission within the Portal.

Types of changes

Automation - Includes ability to add a single facility, single full facility closure, and submit an ECE-WE application. E2E script runs through starting a new application -> verifying successful submission & logging out of portal.

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Most recent push includes a significant change to the test structure in order to reduce code duplication, as well as improving adherence to Cypress best practices.

Moving forward, larger e2e tests will be created as Page Objects and added to support > pages. This allows for ease of debugging in the future, if necessary, as well as increased reusability of smaller e2e components as each page object can be called in multiple different e2e tests. This has significantly improved the readability of each e2e test and minimized code duplication.

Much of the scripts have also been edited to reduce getting elements based on class tags or other attributes as these are volatile and noted as bad practices in Cypress. Adjustments have been made to minimize finding elements in this manner.

Nsinglaa and others added 20 commits July 24, 2025 17:51
…ble happy path selections, updated cypress to newest available version
Group Application E2E running fully without errors, edited config file to increase default timeout to account for browser speed variability

Preparing for merging with Main

handled PR comments
… adding multiple Facilities, Closures, and adding Partial Closures
Copy link
Collaborator

@weskubo-cgi weskubo-cgi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the name is fine for but the branch name should be a little more specific. E.g. portal-cypress-group-application-testing

@weskubo-cgi
Copy link
Collaborator

Please check the SonarQube quality gate as well as there is a failure.

…converting non-reassigned variables to constants. Updated READ.me and example .env file to clarify setup for future team members
Copy link

sonarqubecloud bot commented Oct 2, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@Hedie-cgi Hedie-cgi merged commit 130cb9a into main Oct 2, 2025
1 of 2 checks passed
@Hedie-cgi Hedie-cgi deleted the ccfri-5962-portal-cypress-testing branch October 2, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants