Skip to content

Commit

Permalink
Removed redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhudec committed Mar 8, 2024
1 parent cdd651d commit bb66b16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const ESSInteractionDetails = ({
breadcrumbs={breadcrumbs}
useReactRouter={true}
>
{/* TODO: Use Resource */}
<Task.Status
name={TASK_GET_ESS_INTERACTION_DETAILS}
id={ID}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
const urls = require('../../../../../src/lib/urls')
const {
assertBreadcrumbs,
assertErrorDialog,
assertKeyValueTable,
} = require('../../support/assertions')

describe('Event Export Support Details', () => {
const essInteractionId = '1111'
const essInteractionIdNoTitle = '2222'
const notFoundEssId = '404'

context('Details Render', () => {
context('when it is a valid ess interaction ', () => {
Expand Down Expand Up @@ -65,21 +63,4 @@ describe('Event Export Support Details', () => {
cy.get('[data-test="heading"]').should('contain', 'ESS Inbound Enquiry')
})
})

context('when the ess interaction is not found', () => {
beforeEach(() => {
cy.visit(urls.interactions.exportSupportService.details(notFoundEssId))
})

it('should render an error message', () => {
assertBreadcrumbs({
Home: urls.dashboard.index.route,
Interactions: urls.interactions.index(),
})
assertErrorDialog(
'TASK_GET_ESS_INTERACTION_DETAILS',
'Unable to load Export Support details.'
)
})
})
})

0 comments on commit bb66b16

Please sign in to comment.