Skip to content

Commit

Permalink
fix(birth): update missing references. Remove checks for #Usual on 'N…
Browse files Browse the repository at this point in the history
…o' (#1058)
  • Loading branch information
makelicious authored Jul 10, 2024
1 parent 53500a5 commit 72a8865
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,8 @@ test.describe.serial('8. Validate declaration review page', () => {
* - Father's address
* - Change button
*/
await expect(page.locator('#father-content #Usual')).toContainText(
'Yes'
)
await expect(page.locator('#father-content #Usual')).toContainText(
await expect(page.locator('#father-content #Same')).toContainText('Yes')
await expect(page.locator('#father-content #Same')).toContainText(
'Change'
)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,7 @@ test.describe.serial('8. Validate declaration review page', () => {
* - Spouse's address
* - Change button
*/
await expect(page.locator('#spouse-content #Usual')).toContainText(
'Yes'
)
await expect(page.locator('#spouse-content #Same')).toContainText('Yes')
})
})

Expand Down
4 changes: 2 additions & 2 deletions e2e/testcases/death/declaration/death-declaration-2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ test.describe.serial('2. Death declaration case - 2', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
await expect(page.locator('#informant-content #Same')).toContainText(
'Yes'
)

Expand Down Expand Up @@ -958,7 +958,7 @@ test.describe.serial('2. Death declaration case - 2', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
await expect(page.locator('#informant-content #Same')).toContainText(
'Yes'
)

Expand Down
6 changes: 0 additions & 6 deletions e2e/testcases/death/declaration/death-declaration-3.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,6 @@ test.describe.serial('3. Death declaration case - 3', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down Expand Up @@ -1014,9 +1011,6 @@ test.describe.serial('3. Death declaration case - 3', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down
7 changes: 1 addition & 6 deletions e2e/testcases/death/declaration/death-declaration-4.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,6 @@ test.describe.serial('4. Death declaration case - 4', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down Expand Up @@ -973,9 +970,7 @@ test.describe.serial('4. Death declaration case - 4', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)

await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down
6 changes: 0 additions & 6 deletions e2e/testcases/death/declaration/death-declaration-5.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,6 @@ test.describe.serial('5. Death declaration case - 5', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down Expand Up @@ -891,9 +888,6 @@ test.describe.serial('5. Death declaration case - 5', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down
6 changes: 0 additions & 6 deletions e2e/testcases/death/declaration/death-declaration-6.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,6 @@ test.describe.serial('6. Death declaration case - 6', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down Expand Up @@ -788,9 +785,6 @@ test.describe.serial('6. Death declaration case - 6', () => {
* Expected result: should include
* - informant's address
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down
7 changes: 1 addition & 6 deletions e2e/testcases/death/declaration/death-declaration-7.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,7 @@ test.describe.serial('7. Death declaration case - 7', () => {
* - informant's address
* - Change button
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)

await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down Expand Up @@ -815,9 +813,6 @@ test.describe.serial('7. Death declaration case - 7', () => {
* Expected result: should include
* - informant's address
*/
await expect(page.locator('#informant-content #Usual')).toContainText(
'No'
)
await expect(page.locator('#informant-content #Usual')).toContainText(
declaration.informant.address.country
)
Expand Down

0 comments on commit 72a8865

Please sign in to comment.