Skip to content

Commit

Permalink
Add associated-programme metadata endpoint to sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgain committed Mar 19, 2024
1 parent 3df348a commit c60fef3
Show file tree
Hide file tree
Showing 6 changed files with 571 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,6 @@ describe('Adding an export win from an export project', () => {
}),
],
})
cy.intercept('GET', '/api-proxy/v4/metadata/associated-programme', [
{ name: 'Afterburner' },
])
})

it(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ describe('Adding an export win', () => {
{ id: '300', name: 'DIT Education' },
{ id: '301', name: 'Healthcare UK' },
])
cy.intercept('GET', '/api-proxy/v4/metadata/associated-programme', [
{ id: '600', name: 'Afterburner' },
])
cy.intercept('POST', '/api-proxy/v4/export-win', {
statusCode: 201,
}).as('apiPostExportWin')
Expand Down Expand Up @@ -316,7 +313,7 @@ describe('Adding an export win', () => {
sector: 'af959812-6095-e211-a939-e4115bead28a',
hvc: '0240d283-ec44-4f33-b501-e2bf14e337b5',
type_of_support: ['5560d2ee-b75b-48b0-b6ca-36d43653be61'],
associated_programme: ['600'],
associated_programme: ['b6f5c31a-aa45-4ae0-89bd-2eb3ab943f76'], // Afterburner
is_personally_confirmed: true,
is_line_manager_confirmed: true,
total_expected_export_value: 5000000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ import {
describe('Support provided', () => {
const { supportProvided } = formFields

beforeEach(() => {
cy.intercept('GET', '/api-proxy/v4/metadata/associated-programme', [
{ name: 'Afterburner' },
])
cy.visit(supportProvidedStep)
})
beforeEach(() => cy.visit(supportProvidedStep))

it('should render a step heading', () => {
cy.get(supportProvided.heading).should('have.text', 'Support given')
Expand Down
Loading

0 comments on commit c60fef3

Please sign in to comment.