Skip to content

Commit

Permalink
qa-auto/HSP-6646 "Check that Contact tasks display the correct region…
Browse files Browse the repository at this point in the history
… and district in Task Management Directory" (#13027)

* qa-auto/HSP-6646 Check that Contact tasks display the correct region and district in Task Management Directory - initial commit

* qa-auto/HSP-6646 Check that Contact tasks display the correct region and district in Task Management Directory - removed print

* qa-auto/HSP-6646 Check that Contact tasks display the correct region and district in Task Management Directory - updated tag
  • Loading branch information
mk-sgent authored Mar 4, 2024
1 parent 84b12e6 commit 053824c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,20 @@ public TaskManagementSteps(
softly.assertAll();
});

When(
"^I check that region and district are correct displayed for contact entry by API in task management$",
() -> {
softly.assertEquals(
manager.getRegionName(apiState.getCreatedContact().getRegion().getUuid()),
webDriverHelpers.getTextFromWebElement(FIRST_GRID_REGION_VALUE),
"Regions are not equal");
softly.assertEquals(
manager.getDistrictName(apiState.getCreatedContact().getDistrict().getUuid()),
webDriverHelpers.getTextFromWebElement(FIRST_GRID_DISTRICT_VALUE),
"Districts are not equal");
softly.assertAll();
});

When(
"^I check displayed task's context is ([^\"]*)$",
(String taskContext) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1173,4 +1173,15 @@ Feature: Contacts end to end tests
And API: I check that POST call status code is 200
Given I log in as a National User
Then I open the last created contact via API from "de"
And I check if Follow up until date is 14 days after last created API contact report date
And I check if Follow up until date is 14 days after last created API contact report date

@tmsLink=HSP-6646 @env_main
Scenario: Check that Contact tasks display the correct region and district in Task Management Directory
When API: I create a new person
And API: I check that POST call status code is 200
Then API: I create a new contact
And API: I check that POST call status code is 200
Given I log in as a National User
And I click on the Tasks button from navbar
Then I search last created task by API using Contact UUID
Then I check that region and district are correct displayed for contact entry by API in task management

0 comments on commit 053824c

Please sign in to comment.