-
Notifications
You must be signed in to change notification settings - Fork 2
test: rule 8 transformation 9774 validation tests #1312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 25 additions & 25 deletions
50
...-tests/src/tests/e2e/epic4d-validation-tests/epic4d-6045-validation-testsuite-migrated.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | ||
| // // 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"; | ||
27 changes: 27 additions & 0 deletions
27
.../tests/e2e/epic4d-validation-tests/epic4d-9774-rule8-transformation-testsuite-migrated.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"; |
60 changes: 60 additions & 0 deletions
60
...tests/src/tests/e2e/testFiles/@DTOSS-9774-01/ADD_9774_-_CAAS_BREAST_SCREENING_COHORT.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| ] | ||
| } |
60 changes: 60 additions & 0 deletions
60
...s/src/tests/e2e/testFiles/@DTOSS-9774-01/AMENDED_9774_-_CAAS_BREAST_SCREENING_COHORT.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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'; | ||
|
|
||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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