Skip to content
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

UpdateInternationalElementUITest #5463

Open
wants to merge 55 commits into
base: DFPL-C110a
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fa96639
FixCaseFlagAPICaseCreationAssertion
prabhamuthu15 May 1, 2024
0ccbd15
Merge remote-tracking branch 'origin/master'
prabhamuthu15 May 3, 2024
036732d
Merge remote-tracking branch 'origin/master'
prabhamuthu15 May 7, 2024
cdfdb8a
Merge remote-tracking branch 'origin/master'
prabhamuthu15 May 7, 2024
2ccd0b7
Merge remote-tracking branch 'origin/master'
prabhamuthu15 May 8, 2024
943c22b
Merge remote-tracking branch 'origin/master'
prabhamuthu15 May 15, 2024
5d874b0
Merge remote-tracking branch 'origin/master'
prabhamuthu15 May 16, 2024
a9e9915
Merge remote-tracking branch 'origin/master'
prabhamuthu15 May 23, 2024
e582556
DFPL-2295: c110a Design Changes to International Element
qasimnawaz-moj May 24, 2024
472801b
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 24, 2024
e2bc24f
Add default return statement
qasimnawaz-moj May 24, 2024
afa59bd
Fix checkstyle
qasimnawaz-moj May 24, 2024
7821a1f
Fix robotics tests
qasimnawaz-moj May 24, 2024
e940874
Fix tests
qasimnawaz-moj May 24, 2024
3b76928
Update test resources
qasimnawaz-moj May 24, 2024
a924607
Fix functional tests
qasimnawaz-moj May 24, 2024
0b53648
Update C110A template
qasimnawaz-moj May 24, 2024
9b35d59
Fix old fields showing up in UI
qasimnawaz-moj May 28, 2024
0c033ae
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 28, 2024
41d437a
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 29, 2024
6dcc9cc
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 29, 2024
002379e
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 29, 2024
3ed2321
Update C110a template
qasimnawaz-moj May 29, 2024
188c308
Add old fields to avoid deserialization issues
qasimnawaz-moj May 30, 2024
6c57246
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 30, 2024
d1e22f2
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 30, 2024
f97de86
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 31, 2024
84d27e0
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 3, 2024
b00c81e
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jun 4, 2024
a251e7d
Revert changes to 00095 doc
qasimnawaz-moj Jun 4, 2024
d98f4d3
Merge branch 'master' into DFPL-2295
jamesrferguson1 Jun 6, 2024
4ef2d8e
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 7, 2024
24ed49d
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 12, 2024
9ad5336
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jun 13, 2024
6eb4265
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 13, 2024
da41df8
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 13, 2024
30cb5c7
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 14, 2024
f3f3fff
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 14, 2024
b9d159f
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 14, 2024
2504aae
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 18, 2024
7cf9d29
UpdateInternationalElement
prabhamuthu15 Jun 20, 2024
b42b7af
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 20, 2024
f075192
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 26, 2024
4c9129f
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 26, 2024
c578e33
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 27, 2024
ce9ed34
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jun 29, 2024
ed90d71
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jul 1, 2024
72afaea
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jul 1, 2024
3174c40
Add CaseEventToComplexTypes for international element
qasimnawaz-moj Jul 1, 2024
1d17859
Fix bug with mandatory fields not being enforced
qasimnawaz-moj Jul 1, 2024
b440437
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jul 1, 2024
9b8154c
Merge remote-tracking branch 'origin/master'
prabhamuthu15 Jul 3, 2024
4a3b252
Merge branch 'master' into DFPL-2295-UpdateUITest
prabhamuthu15 Jul 3, 2024
001be03
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jul 3, 2024
e4a24b6
Merge branch 'DFPL-2295' into DFPL-2295-UpdateUITest
prabhamuthu15 Jul 3, 2024
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"CaseEventID": "amendInternationalElement",
"CaseFieldID": "internationalElement",
"ListElementCode": "whichCountriesInvolved",
"EventElementLabel": "Which other countries are involved?",
"FieldDisplayOrder": 1,
"DisplayContext": "MANDATORY"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"CaseEventID": "amendInternationalElement",
"CaseFieldID": "internationalElement",
"ListElementCode": "outsideHagueConvention",
"EventElementLabel": "Are any of these countries outside of the Hague Convention?",
"FieldDisplayOrder": 2,
"DisplayContext": "MANDATORY"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"CaseEventID": "amendInternationalElement",
"CaseFieldID": "internationalElement",
"ListElementCode": "importantDetails",
"EventElementLabel": "Provide all important details",
"FieldDisplayOrder": 3,
"DisplayContext": "MANDATORY"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"CaseEventID": "enterInternationalElement",
"CaseFieldID": "internationalElement",
"ListElementCode": "whichCountriesInvolved",
"EventElementLabel": "Which other countries are involved?",
"FieldDisplayOrder": 1,
"DisplayContext": "MANDATORY"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"CaseEventID": "enterInternationalElement",
"CaseFieldID": "internationalElement",
"ListElementCode": "outsideHagueConvention",
"EventElementLabel": "Are any of these countries outside of the Hague Convention?",
"FieldDisplayOrder": 2,
"DisplayContext": "MANDATORY"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"CaseEventID": "enterInternationalElement",
"CaseFieldID": "internationalElement",
"ListElementCode": "importantDetails",
"EventElementLabel": "Provide all important details",
"FieldDisplayOrder": 3,
"DisplayContext": "MANDATORY"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"CaseEventID": "amendInternationalElement",
"CaseFieldID": "internationalElement",
"PageFieldDisplayOrder": 1,
"DisplayContext": "OPTIONAL",
"DisplayContext": "MANDATORY",
"PageID": 1,
"PageDisplayOrder": 1,
"PageColumnNumber": 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"CaseEventID": "enterInternationalElement",
"CaseFieldID": "internationalElement",
"PageFieldDisplayOrder": 1,
"DisplayContext": "OPTIONAL",
"DisplayContext": "MANDATORY",
"PageID": 1,
"PageDisplayOrder": 1,
"PageColumnNumber": 1,
Expand Down
90 changes: 90 additions & 0 deletions ccd-definition/ComplexTypes/CareSupervision/DEPRECATED.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,95 @@
"FieldTypeParameter": "C1SupportingEvidenceBundle",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "possibleCarer",
"FieldType": "YesOrNo",
"ElementLabel": "Are there any suitable carers outside of the UK?",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "possibleCarerReason",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "significantEvents",
"FieldType": "YesOrNo",
"ElementLabel": "Are you aware of any significant events that have happened outside the UK?",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "significantEventsReason",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "issues",
"FieldType": "YesOrNo",
"ElementLabel": "Are you aware of any issues with the jurisdiction of this case - for example under the Brussels 2 regulation?",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "issuesReason",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "proceedings",
"FieldType": "YesOrNo",
"ElementLabel": "Are you aware of any proceedings outside the UK?",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "proceedingsReason",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "internationalAuthorityInvolvement",
"FieldType": "YesOrNo",
"ElementLabel": "Has, or should, a government or central authority in another country been involved in this case?",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "internationalAuthorityInvolvementDetails",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,86 +2,26 @@
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "possibleCarer",
"FieldType": "YesOrNo",
"ElementLabel": "Are there any suitable carers outside of the UK?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "possibleCarerReason",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "possibleCarer=\"Yes\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "significantEvents",
"FieldType": "YesOrNo",
"ElementLabel": "Are you aware of any significant events that have happened outside the UK?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "significantEventsReason",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "significantEvents=\"Yes\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "issues",
"FieldType": "YesOrNo",
"ElementLabel": "Are you aware of any issues with the jurisdiction of this case - for example under the Brussels 2 regulation?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "issuesReason",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "issues=\"Yes\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "proceedings",
"FieldType": "YesOrNo",
"ElementLabel": "Are you aware of any proceedings outside the UK?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "proceedingsReason",
"ListElementCode": "whichCountriesInvolved",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "proceedings=\"Yes\"",
"ElementLabel": "Which other countries are involved?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "internationalAuthorityInvolvement",
"ListElementCode": "outsideHagueConvention",
"FieldType": "YesOrNo",
"ElementLabel": "Has, or should, a government or central authority in another country been involved in this case?",
"ElementLabel": "Are any of these countries outside of the Hague Convention?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "InternationalElement",
"ListElementCode": "internationalAuthorityInvolvementDetails",
"ListElementCode": "importantDetails",
"FieldType": "TextArea",
"ElementLabel": "Give reason",
"FieldShowCondition": "internationalAuthorityInvolvement = \"Yes\"",
"ElementLabel": "Provide all important details",
"HintText": "Including any carers, events, proceedings or authorities outside the UK, or issues with jurisdiction.",
"SecurityClassification": "Public"
}
]
Binary file not shown.
45 changes: 20 additions & 25 deletions playwright-e2e/pages/international-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,26 @@ import {type Page, type Locator, expect} from "@playwright/test";
import { BasePage } from "./base-page";

export class InternationalElement extends BasePage {
readonly internationalElementHeading: Locator;
readonly areThereAnySuitableCarers: Locator;
readonly anySignificantEventsOutsideUk: Locator;
readonly anyIssueWithJurisdictionOfThisCase: Locator;
readonly awareOfAnyProceedingsOutsideTheUk: Locator;
readonly aGovtOrCentralAuthorityOutsideUkInvolvedInCase: Locator;
readonly internationalElementHeading: Locator;
readonly countryInvolved: Locator;
readonly importantDetails: Locator;
readonly outSideHague: Locator;

public constructor(page: Page) {
super(page);
this.internationalElementHeading = page.getByRole('heading', { name: 'International element', exact: true });
this.areThereAnySuitableCarers = page.getByRole('group', { name: 'Are there any suitable carers' });
this.anySignificantEventsOutsideUk = page.getByRole('group', { name: 'Are you aware of any significant events that have happened outside the UK? (' });
this.anyIssueWithJurisdictionOfThisCase = page.getByRole('group', { name: 'Are you aware of any issues' });
this.aGovtOrCentralAuthorityOutsideUkInvolvedInCase = page.getByRole('group', { name: 'Has, or should, a government' });
this.awareOfAnyProceedingsOutsideTheUk = page.getByRole('group', { name: 'Are you aware of any proceedings outside the UK? (Optional)' });
public constructor(page: Page) {
super(page);
this.internationalElementHeading = page.getByRole('heading', {name: 'International element', exact: true});
this.countryInvolved = page.getByLabel('Which other countries are involved? (Optional)');
this.outSideHague = page.getByRole('group', {name: 'Are any of these countries outside of the Hague Convention? (Optional)'});
this.importantDetails = page.getByLabel('Provide all important details (Optional)');
}

}
async internationalElementSmokeTest() {
await expect(this.internationalElementHeading).toBeVisible();
await this.areThereAnySuitableCarers.getByLabel('No').check();
await this.anySignificantEventsOutsideUk.getByLabel('No').check();
await this.anyIssueWithJurisdictionOfThisCase.getByLabel('No').check();
await this.awareOfAnyProceedingsOutsideTheUk.getByLabel('No').check();
await this.aGovtOrCentralAuthorityOutsideUkInvolvedInCase.getByLabel('No').check();
await this.clickContinue();
await this.checkYourAnsAndSubmit();
}
async internationalElementSmokeTest() {
await expect(this.internationalElementHeading).toBeVisible();
await expect(this.page.getByText('Including any carers, events, proceedings or authorities outside the UK, or issues with jurisdiction.', {exact: true})).toBeVisible();
await this.countryInvolved.fill('Spain\nItlay\nFrance');
await this.outSideHague.getByRole('radio', {name: 'Yes'}).click();
await this.importantDetails.fill('Convention\nCare order by the father');
await this.clickContinue();
await this.checkYourAnsAndSubmit();
}
}
6 changes: 4 additions & 2 deletions playwright-e2e/pages/start-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class StartApplication {
readonly courtServicesNeeded: Locator;
readonly submitApplicationLink: Locator;
readonly otherPeopleInCaseLink: Locator;
readonly internationalElementCompleted: Locator;

public constructor(page: Page) {
this.page = page;
Expand Down Expand Up @@ -56,10 +57,11 @@ export class StartApplication {
this.welshLanguageRequirements = page.getByRole('link', { name: 'Welsh language requirements' });
this.welshLanguageReqFinished = page.locator('p:has(a[text="Welsh language requirements"]) > img[title="Finished"]');
this.internationalElementsHeading = page.getByRole('link', { name: 'International element' });
this.internationalElementCompleted = page.locator('p').filter({ hasText: 'International element' }).getByRole('img',{name:'Finished'});
this.submitApplicationLink = page.getByRole('link', { name: 'Submit application' })
this.otherProceedingsLink = page.getByRole('link', { name: "Other Proceedings", });
this.courtServicesNeeded = page.getByRole('link', { name: 'Court services needed'});
this.otherPeopleInCaseLink = page.getByRole('link', { name: 'Other people in the case'});
this.courtServicesNeeded = page.getByRole('link', { name: 'Court services needed'});
this.otherPeopleInCaseLink = page.getByRole('link', { name: 'Other people in the case'});
}

async groundsForTheApplication() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ Anything else -

International element

Suitable carers outside of the UK -
Significant events outside the UK -
Issues with jurisdiction -
Proceedings outside the UK -
Government or central authority in another country been involved -
Other countries which are involved -
Are any of these countries outside Hague Convention -
Important details -

Other proceedings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ Anything else -

International element

Suitable carers outside of the UK -
Significant events outside the UK -
Issues with jurisdiction -
Proceedings outside the UK -
Government or central authority in another country been involved -
Other countries which are involved -
Are any of these countries outside Hague Convention -
Important details -

Other proceedings

Expand Down
8 changes: 3 additions & 5 deletions service/src/integrationTest/resources/c110a.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,9 @@ Domestic violence Yes history of domestic violence
Anything else No

International element
Suitable carers outside of the UK Yes Aunt outside UK
Significant events outside the UK Yes Something happened in France
Issues with jurisdiction Yes Brussels 2 regulation
Proceedings outside the UK Yes Outside of the UK
Government or central authority in another country been involved Yes French authorities were involved
Other countries which are involved Italy, Spain, France
Are any of these countries outside Hague Convention Yes
Important details Something happened in France

Other proceedings 1
Previous or ongoing Ongoing
Expand Down
Loading
Loading