Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/playwright-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"test:regression_e2e_epic3": "cross-env TEST_TYPE=RegressionEpic3 npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic3-high",
"test:regression_e2e_epic3Med": "cross-env TEST_TYPE=RegressionEpic3Med npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic3-med",
"test:regression_e2e_epic4d": "cross-env TEST_TYPE=RegressionEpic4d npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic4d-",
"test:smoke_e2e": "cross-env TEST_TYPE=SMOKE npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@smoke @e2e\"",
"test:smoke_e2e": "cross-env TEST_TYPE=RegressionEpic4d npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=@epic4d-",
"test:smoke_e2e1": "cross-env TEST_TYPE=SMOKE npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@smoke @e2e\"",
"test": "npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@smoke @e2e\"",
"test:dummy": "npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@dummy \"",
"test:ut": "npx playwright test --project=dev --config=src/config/playwright.config.ts --grep=\"@ut\"",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
// For Future Epic 4d validation Tests
// // For Future Epic 4d validation Tests

// Note:
// These tests have been fully migrated to the new and improved test execution orchestration:
//
// - Add:
// tests/runner/runner-workflow-add
// - Add followed by Amend:
// tests/runner/runner-workflow-amend
//
// This approach allows bulk loading of test data for all tests before proceeding with validation, instead of loading test data for each test individually.
//
// Guidance:
//
// - First, try adding new tests using the runner.
// - If custom calls are needed, use new file for test addition. - tests\playwright-tests\src\tests\e2e\epic4d-6045-validation-tests\epic4d-6045-validation-tests.spec.ts
//
// Test Tags:
// There is no impact to the test tags. The same tags can be used to trigger these tests.
// For example, to run regression tests, use:
//
// npm run test:regression_e2e_epic4d
//
// This equates to "@epic4d-" tags, configured in the package.json at the playwright-tests root location.
// // Note:
// // These tests have been fully migrated to the new and improved test execution orchestration:
// //
// // - Add:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of adding guidance comments like this can we instead update documentation? or add a readme.md

// // tests/runner/runner-workflow-add
// // - Add followed by Amend:
// // tests/runner/runner-workflow-amend
// //
// // This approach allows bulk loading of test data for all tests before proceeding with validation, instead of loading test data for each test individually.
// //
// // Guidance:
// //
// // - First, try adding new tests using the runner.
// // - If custom calls are needed, use new file for test addition. - tests\playwright-tests\src\tests\e2e\epic4d-6045-validation-tests\epic4d-6045-validation-tests.spec.ts
// //
// // Test Tags:
// // There is no impact to the test tags. The same tags can be used to trigger these tests.
// // For example, to run regression tests, use:
// //
// // npm run test:regression_e2e_epic4d
// //
// // This equates to "@epic4d-" tags, configured in the package.json at the playwright-tests root location.


export const runnerBasedEpic4dTestScenariosAdd = "@DTOSS-9492-01|@DTOSS-9494-01|@DTOSS-9496-01|@DTOSS-9498-01";
export const runnerBasedEpic4dTestScenariosAmend = "@DTOSS-9493-01|@DTOSS-9495-01|@DTOSS-9497-01|@DTOSS-9499-01";
// export const runnerBasedEpic4dTestScenariosAdd = "@DTOSS-9492-01|@DTOSS-9494-01|@DTOSS-9496-01|@DTOSS-9498-01";
// export const runnerBasedEpic4dTestScenariosAmend = "@DTOSS-9493-01|@DTOSS-9495-01|@DTOSS-9497-01|@DTOSS-9499-01";
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// For Future Epic 4d validation Tests

// Note:
// These tests have been fully migrated to the new and improved test execution orchestration:
//
// - Add:
// tests/runner/runner-workflow-add
// - Add followed by Amend:
// tests/runner/runner-workflow-amend
//
// This approach allows bulk loading of test data for all tests before proceeding with validation, instead of loading test data for each test individually.
//
// Guidance:
//
// - First, try adding new tests using the runner.
// - If custom calls are needed, use new file for test addition. - tests\playwright-tests\src\tests\e2e\epic4d-6045-validation-tests\epic4d-6045-validation-tests.spec.ts
//
// Test Tags:
// There is no impact to the test tags. The same tags can be used to trigger these tests.
// For example, to run regression tests, use:
//
// npm run test:regression_e2e_epic4d
//
// This equates to "@epic4d-" tags, configured in the package.json at the playwright-tests root location.

export const runnerBasedEpic4dTestScenariosAdd = "@DTOSS-9774-01";
export const runnerBasedEpic4dTestScenariosAmend = "@DTOSS-9774-01";
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"validations": [
{
"validations": {
"apiEndpoint": "api/CohortDistributionDataService",
"NHSNumber":9999111270
},
"meta": {
"testJiraId": "@DTOSS-9983-01",
"requirementJiraId": "DTOSS-9774",
"additionalTags": "@regression @e2e @epic4d-validation-tests - Verify that Transformation is applied and set PCP = Null, RfR Code = ORR and RfR BED = Current Date - Rule 8"
}
}
],
"inputParticipantRecord": [
{
"record_type": "ADD",
"change_time_stamp": null,
"serial_change_number": null,
"nhs_number": "9999111270",
"superseded_by_nhs_number": null,
"primary_care_provider": "B86019",
"primary_care_effective_from_date": "20030318",
"current_posting": "DMS",
"current_posting_effective_from_date": "20130319",
"name_prefix": "Mrs",
"given_name": "9774 test",
"other_given_name": "OtherGivenName",
"family_name": "FamiliyName",
"previous_family_name": "PreviousFamilyName",
"date_of_birth": "19700101",
"gender": 1,
"address_line_1": "98 Spaight Road",
"address_line_2": "Eastbourne",
"address_line_3": "Test",
"address_line_4": "Brighton",
"address_line_5": "United Kingdom",
"postcode": "BT1 1NN",
"paf_key": "Z3S4Q5X9",
"address_effective_from_date": "20130319",
"reason_for_removal": null,
"reason_for_removal_effective_from_date": null,
"date_of_death": null,
"death_status": null,
"home_telephone_number": "01619999999",
"home_telephone_effective_from_date": "20200818",
"mobile_telephone_number": "07888888888",
"mobile_telephone_effective_from_date": "20200818",
"email_address": "bturneux0@soup.io",
"email_address_effective_from_date": "20200818",
"preferred_language": "en",
"is_interpreter_required": false,
"invalid_flag": false,
"eligibility": true
}
],
"nhsNumbers": [
"9999111270"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"validations": [
{
"validations": {
"apiEndpoint": "api/CohortDistributionDataService",
"NHSNumber":9999111270
},
"meta": {
"testJiraId": "@DTOSS-9983-01",
"requirementJiraId": "DTOSS-9774",
"additionalTags": "@regression @e2e @epic4d-validation-tests - Verify that Transformation is applied and set PCP = Null, RfR Code = ORR and RfR BED = Current Date - Rule 8"
}
}
],
"inputParticipantRecord": [
{
"record_type": "AMENDED",
"change_time_stamp": null,
"serial_change_number": null,
"nhs_number": "9999111270",
"superseded_by_nhs_number": null,
"primary_care_provider": "A91151",
"primary_care_effective_from_date": "20030318",
"current_posting": "DMS",
"current_posting_effective_from_date": "20130319",
"name_prefix": "Mrs",
"given_name": "9774 test",
"other_given_name": "OtherGivenName",
"family_name": "FamiliyName",
"previous_family_name": "PreviousFamilyName",
"date_of_birth": "19700101",
"gender": 1,
"address_line_1": "98 Spaight Road",
"address_line_2": "Eastbourne",
"address_line_3": "Test",
"address_line_4": "Brighton",
"address_line_5": "United Kingdom",
"postcode": "NR13 5PF",
"paf_key": "Z3S4Q5X9",
"address_effective_from_date": "20130319",
"reason_for_removal": null,
"reason_for_removal_effective_from_date": null,
"date_of_death": null,
"death_status": null,
"home_telephone_number": "01619999999",
"home_telephone_effective_from_date": "20200818",
"mobile_telephone_number": "07888888888",
"mobile_telephone_effective_from_date": "20200818",
"email_address": "bturneux0@soup.io",
"email_address_effective_from_date": "20200818",
"preferred_language": "en",
"is_interpreter_required": false,
"invalid_flag": false,
"eligibility": true
}
],
"nhsNumbers": [
"9999111270"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { runnerBasedEpic2MedTestScenariosAdd } from '../e2e/epic2-medpriority-te
import { runnerBasedEpic3TestScenariosAdd } from '../e2e/epic3-highpriority-tests/epic3-high-priority-testsuite-migrated';
import { runnerBasedEpic3MedTestScenariosAdd } from '../e2e/epic3-medpriority-tests/epic3-med-priority-testsuite-migrated';
import { generateDynamicDateMap, replaceDynamicDatesInJson } from '../../../src/json/json-updater';
import { runnerBasedEpic4dTestScenariosAdd } from '../e2e/epic4d-validation-tests/epic4d-6045-validation-testsuite-migrated';
//import { runnerBasedEpic4dTestScenariosAdd } from '../e2e/epic4d-validation-tests/epic4d-6045-validation-testsuite-migrated';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this commented code needed? if not can we remove it please

import { runnerBasedEpic4dTestScenariosAdd } from '../e2e/epic4d-validation-tests/epic4d-9774-rule8-transformation-testsuite-migrated';


// Tests to run based on TEST_TYPE environment variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { runnerBasedEpic2TestScenariosAmend } from '../e2e/epic2-highpriority-te
import { runnerBasedEpic2MedTestScenariosAmend } from '../e2e/epic2-medpriority-tests/epic2-med-priority-testsuite-migrated';
import { runnerBasedEpic3TestScenariosAmend } from '../e2e/epic3-highpriority-tests/epic3-high-priority-testsuite-migrated';
import { runnerBasedEpic3MedTestScenariosAmend } from '../e2e/epic3-medpriority-tests/epic3-med-priority-testsuite-migrated';
import { runnerBasedEpic4dTestScenariosAmend } from '../e2e/epic4d-validation-tests/epic4d-6045-validation-testsuite-migrated';
//import { runnerBasedEpic4dTestScenariosAmend } from '../e2e/epic4d-validation-tests/epic4d-6045-validation-testsuite-migrated';
Copy link
Copy Markdown
Contributor

@Warren-Pitterson Warren-Pitterson Jul 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same again regarding commented code please

import { runnerBasedEpic4dTestScenariosAmend } from '../e2e/epic4d-validation-tests/epic4d-9774-rule8-transformation-testsuite-migrated';
import { generateDynamicDateMap, replaceDynamicDatesInJson } from '../../../src/json/json-updater';


Expand Down
Loading