Skip to content

Commit

Permalink
MAN-363 remove assertion from int test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-mills committed Feb 6, 2025
1 parent 1f53fd3 commit f184788
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions integration_tests/e2e/activityLogDetails.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,53 +78,4 @@ context('Activity log details', () => {
page.getCardElement('appointmentDetails', '.govuk-summary-list__value', 5).should('contain.text', 'No')
page.getCardHeader('outcomeDetails').should('not.exist')
})
it('should render a non complied appointment', () => {
cy.visit('/case/X000001/activity-log/activity/13')
const page = new ActivityLogDetailsPage()
page.setPageTitle('Video call with Paulie Walnuts')
cy.get('[data-qa="complianceTag"]').should('contain.text', 'Unacceptable absence')
cy.get('.note-panel').find('.govuk-warning-text__text').should('contain.text', 'Absent and waiting for evidence')
cy.get('.note-panel')
.find('a')
.should('contain.text', 'Change outcome')
.should('have.attr', 'href', '/change-outcome/X000001/13')
page.getCardHeader('appointmentDetails').should('contain.text', 'Appointment details')
page
.getCardElement('appointmentDetails', '.govuk-summary-list__key', 0)
.should('contain.text', 'Type of appointment')
page.getCardElement('appointmentDetails', '.govuk-summary-list__value', 0).should('contain.text', 'Previous')
page.getCardElement('appointmentDetails', '.govuk-summary-list__key', 1).should('contain.text', 'Description')
page
.getCardElement('appointmentDetails', '.govuk-summary-list__value', 1)
.should('contain.text', 'User-generated free text content')
page.getCardElement('appointmentDetails', '.govuk-summary-list__key', 2).should('contain.text', 'Date')
page
.getCardElement('appointmentDetails', '.govuk-summary-list__value', 2)
.should('contain.text', 'Sunday 12 February')
page.getCardElement('appointmentDetails', '.govuk-summary-list__key', 3).should('contain.text', 'Time')
page
.getCardElement('appointmentDetails', '.govuk-summary-list__value', 3)
.should('contain.text', '10:15am to 10:30am')

page.getCardHeader('outcomeDetails').should('contain.text', 'Outcome details')
page.getCardElement('outcomeDetails', '.govuk-summary-list__key', 0).should('contain.text', 'Complied')
page
.getCardElement('outcomeDetails', '.govuk-summary-list__value', 0)
.should('contain.text', 'Unacceptable absence')
page.getCardElement('outcomeDetails', '.govuk-summary-list__actions a', 0).should('contain.text', 'Change')
page
.getCardElement('outcomeDetails', '.govuk-summary-list__actions', 0)
.find('a')
.should('have.attr', 'href', '/case/X000001/handoff/delius')
page.getCardElement('outcomeDetails', '.govuk-summary-list__key', 1).should('contain.text', 'Outcome')
page
.getCardElement('outcomeDetails', '.govuk-summary-list__value', 1)
.should('contain.text', 'User-generated free text content')
page.getCardElement('outcomeDetails', '.govuk-summary-list__key', 2).should('contain.text', 'Sensitive')
page.getCardElement('outcomeDetails', '.govuk-summary-list__value', 2).should('contain.text', 'No')
page.getCardElement('outcomeDetails', '.govuk-summary-list__key', 3).should('contain.text', 'Notes')
page
.getCardElement('outcomeDetails', '.govuk-summary-list__value', 3)
.should('contain.text', 'Stuart did not attend this appointment')
})
})

0 comments on commit f184788

Please sign in to comment.