Skip to content

Commit

Permalink
fix: [TECH-1623] rename TEI "Launchpad McQuack" -> "Breaking TheGlass" (
Browse files Browse the repository at this point in the history
  • Loading branch information
superskip authored Aug 11, 2023
1 parent 20e9c23 commit 7f26237
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cypress/integration/EnrollmentPage/BreakingTheGlass/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../sharedSteps';

Given('the tei created by this test is cleared from the database', () => {
cy.buildApiUrl('tracker', 'trackedEntities?filter=w75KJ2mc4zz:like:Launchpad&filter=zDhUuAYrxNC:like:McQuack&trackedEntityType=nEenWmSyUEp&page=1&pageSize=5&ouMode=ACCESSIBLE')
cy.buildApiUrl('tracker', 'trackedEntities?filter=w75KJ2mc4zz:like:Breaking&filter=zDhUuAYrxNC:like:TheGlass&trackedEntityType=nEenWmSyUEp&page=1&pageSize=5&ouMode=ACCESSIBLE')
.then(url => cy.request(url))
.then(({ body }) =>
body.instances.forEach(({ trackedEntity }) =>
Expand All @@ -24,12 +24,12 @@ And('you create a new tei in Child programme from Ngelehun CHC', () => {
cy.get('[data-test="d2-form-component"]')
.find('[data-test="capture-ui-input"]')
.eq(0)
.type('Launchpad')
.type('Breaking')
.blur();
cy.get('[data-test="d2-form-component"]')
.find('[data-test="capture-ui-input"]')
.eq(1)
.type('McQuack')
.type('TheGlass')
.blur();

clickSave();
Expand Down Expand Up @@ -61,7 +61,7 @@ And('you enroll the tei from Njandama MCHP', () => {
.click();

cy.get('[data-test="enrollment-page-content"]')
.contains('Enroll Launchpad McQuack in this program')
.contains('Enroll Breaking TheGlass in this program')
.click();

cy.get('[data-test="d2-form-component"]')
Expand Down Expand Up @@ -97,7 +97,7 @@ And('you log in as tracker2 user', () => {

And('you select the new tei', () => {
cy.visit('/#/?orgUnitId=DiszpKrYNg8&programId=IpHINAT79UW');
cy.contains('Launchpad')
cy.contains('Breaking')
.click();
// Wait for enrollment dashboard
cy.get('[data-test="profile-widget"]')
Expand Down

0 comments on commit 7f26237

Please sign in to comment.