Skip to content

Commit f2fccd4

Browse files
fix
Signed-off-by: namitha.prabhu <namitha.prabhu2@nhs.net>
1 parent 1c72679 commit f2fccd4

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tests/component-tests/apiGateway-tests/get-letter-pdf.spec.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,19 @@ test.describe("API Gateway Tests to Verify Get Letter PDF Endpoint", () => {
8383
expect(responseBody).toMatchObject(error404ResponseBody());
8484
});
8585

86+
// CCM-14318: Remove this test
8687
test(`Get /letters/{id}/data returns 500 if letter is not found for supplierId ${SUPPLIERID}`, async ({
8788
request,
8889
}) => {
8990
const id = "non-existing-id-12345";
9091
const headers = createValidRequestHeaders();
91-
const response = await request.get(`${baseUrl}/${SUPPLIER_LETTERS}/${id}`, {
92-
headers,
93-
});
92+
const response = await request.get(
93+
`
94+
${baseUrl}/${SUPPLIER_LETTERS}/${id}/${DATA}`,
95+
{
96+
headers,
97+
},
98+
);
9499

95100
const responseBody = await response.json();
96101
expect(response.status()).toBe(500);

0 commit comments

Comments
 (0)