department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

Comprehensive Test Plan: Import Dedicated Content for Testing with Content-Sync #19746

Open keisterj-oddball opened 1 week ago

keisterj-oddball commented 1 week ago

User Story or Problem Statement

As an engineer working on the CMS project, I want to dedicated test content imported prior to cypress testing, so that tests are not dependent on production content that we have no control over.

Description or Additional Context

Currently, we have 7 cypress tests that explicitly reference nodes that are pulled down from production. The goal of this ticket is to remove our dependence on production content for testing purposes.

Steps for Implementation

  1. Clone and export the content required by the tests.
  2. Update the cypress-tests.sh and cypress-parallel-tests.sh scripts to import the test content prior to kicking off the cypress tests.
  3. Update the applicable tests so they are no longer referencing content by node ID.

Acceptance Criteria