diff --git a/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite.spec.ts b/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-10011-10012-testsuite.spec.ts similarity index 78% rename from tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite.spec.ts rename to tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-10011-10012-testsuite.spec.ts index 5ad2da16cc..8fe4f5427d 100644 --- a/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite.spec.ts +++ b/tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-10011-10012-testsuite.spec.ts @@ -58,6 +58,25 @@ test.describe('@DTOSS-3881-01 @e2e @epic4c- Cohort Manger subscribed the Added r expect(response?.data?.[0]?.ReferralFlag).toBe(1); }); +<<<<<<< HEAD:tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-10011-10012-testsuite.spec.ts + await test.step('DTOSS-10012 DTOSS-10012 verify NemsSubscription_Id in NEMS_SUBSCRIPTION table', async () => { + const nhsNumber = participantData['inputParticipantRecord'].u_case_variable_data.nhs_number; + + const response = await retry( + async () => { + const res = await getRecordsFromNemsSubscription(request, nhsNumber); + const validators = composeValidators(expectStatus(200)); + await validators(res); + + return res; + }, + (res) => { + const subscriptionID = extractSubscriptionID(res); + return subscriptionID !== null; + }, + { retries: 5, delayMs: 2000 } + ); +======= await test.step('DTOSS-10012 ADD verify NemsSubscription in NEMS_SUBSCRIPTION table', async () => { const nhsNumber = participantData['inputParticipantRecord'].u_case_variable_data.nhs_number; const response = await getRecordsFromNemsSubscription(request, nhsNumber); @@ -65,10 +84,10 @@ test.describe('@DTOSS-3881-01 @e2e @epic4c- Cohort Manger subscribed the Added r expectStatus(200) ); await validators(response); +>>>>>>> e9abb1665a60258957de73ecf486b199808e514a:tests/playwright-tests/src/tests/e2e/epic4c-add-participant-tests/epic4c-testsuite.spec.ts const subscriptionID = extractSubscriptionID(response); expect(subscriptionID).not.toBeNull(); - - console.log(`Extracted Subscription ID: ${subscriptionID} for NHS number: ${nhsNumber}`); + console.log(`Extracted Subscription ID: ${subscriptionID} for number: ${nhsNumber}`); }); }); }); diff --git a/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/AMENDMANUAL_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/AMENDMANUAL_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json index 25e28584b5..4fb2f0545f 100644 --- a/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/AMENDMANUAL_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json +++ b/tests/playwright-tests/src/tests/e2e/testFiles/@DTOSS-3881-02/AMENDMANUAL_1B8F53_-_CAAS_BREAST_SCREENING_COHORT.json @@ -10,7 +10,7 @@ "meta": { "testJiraId": "@DTOSS-3881-02", "requirementJiraId": "@DTOSS-3881-02", - "additionalTags": "@epic4c- @e2e DTOSS-10013 1.Check updated telephone number record in (cohort distribution)" + "additionalTags": "@epic4c- @e2e DTOSS-10013 1.Check updated telephone number record in cohort distribution" } }, { @@ -22,7 +22,7 @@ "meta": { "testJiraId": "@DTOSS-3881-02", "requirementJiraId": "@DTOSS-3881-02", - "additionalTags": "@epic4c- @e2e DTOSS-10013 2.verify data in record (participant demographic)" + "additionalTags": "@epic4c- @e2e DTOSS-10013 2.verify data in record is available in participant demographic table" } }, { @@ -34,7 +34,7 @@ "meta": { "testJiraId": "@DTOSS-3881-02", "requirementJiraId": "@DTOSS-3881-02", - "additionalTags": "@epic4c- @e2e DTOSS-10013 3.check record (participant management)" + "additionalTags": "@epic4c- @e2e DTOSS-10013 3.check record in available in participant management table" } } ],