Skip to content

Commit

Permalink
#2489 - fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmayo committed Jan 10, 2025
1 parent 229c3a2 commit daef3f9
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,35 +316,37 @@ describe('Client Display Self Report Skills Tests', () => {

cy.get('[data-cy="requestApprovalBtn"]')
.should('be.enabled');

cy.get('[data-cy="approvalHistoryTimeline"]')
.children('.p-timeline-event')
.eq(0)
.should('contain.text', 'Approved')
cy.get('[data-cy="approvalHistoryTimeline"]')
.children('.p-timeline-event')
.eq(1)
.should('contain.text', 'Approval Requested')
cy.get('[data-cy="approvalHistoryTimeline"]')
.children('.p-timeline-event')
.eq(1)
.eq(0)
.find('[data-cy="toggleShowMessageBtn"]')
.click();
cy.get('[data-cy="approvalHistoryTimeline"]')
.children('.p-timeline-event')
.eq(1)
.eq(0)
.get('[data-cy="approvalEventMessage"]')
.should('contain.text', 'I approve this message!')
cy.get('[data-cy="approvalHistoryTimeline"]')
.children('.p-timeline-event')
.eq(1)
.eq(0)
.find('[data-cy="toggleShowMessageBtn"]')
.click();
cy.get('[data-cy="approvalHistoryTimeline"]')
.children('.p-timeline-event')
.eq(1)
.eq(0)
.get('[data-cy="approvalEventMessage"]')
.should('not.exist')

cy.get('[data-cy="approvalHistoryTimeline"]')
.children('.p-timeline-event')
.eq(1)
.should('contain.text', 'Approval Requested')

cy.get('[data-cy="overallPointsEarnedCard"] [data-cy="mediaInfoCardTitle"]')
.contains('50');
cy.get('[data-cy="pointsAchievedTodayCard"] [data-cy="mediaInfoCardTitle"]')
Expand Down

0 comments on commit daef3f9

Please sign in to comment.