Skip to content

Commit

Permalink
Merge pull request SORMAS-Foundation#9912 from hzi-braunschweig/qu-au…
Browse files Browse the repository at this point in the history
…to/SORQA-404

Test Activate external token to all server instances
  • Loading branch information
pk-sgent authored Jul 21, 2022
2 parents 6c28468 + 3da1c58 commit 9332459
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,15 @@ public EditCaseSteps(
"Message is incorrect");
softly.assertAll();
});
When(
"I check that External Token field is visible on Edit Case page",
() -> {
boolean elementVisible =
webDriverHelpers.isElementVisibleWithTimeout(EXTERNAL_TOKEN_INPUT, 10);
softly.assertTrue(elementVisible, "External Token field is not visible!");
softly.assertAll();
});

When(
"I open last edited case by API via URL navigation",
() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,30 @@ Feature: Case end to end tests
Then I filter with last created case using case UUID
And I check that number of displayed cases results is 1

@env_main @issue=SORDEV-5104
Scenario: Check if external token is visible on Edit Case Page
Given API: I create a new person
And API: I check that POST call body is "OK"
And API: I check that POST call status code is 200
Given API: I create a new case
Then API: I check that POST call body is "OK"
And API: I check that POST call status code is 200
Given I log in as a National User
Then I navigate to the last created case via the url
And I check that External Token field is visible on Edit Case page

@env_de @issue=SORDEV-5104
Scenario: Check if external token is visible on Edit Case Page for DE
Given API: I create a new person
And API: I check that POST call body is "OK"
And API: I check that POST call status code is 200
Given API: I create a new case
Then API: I check that POST call body is "OK"
And API: I check that POST call status code is 200
Given I log in as a National User
Then I navigate to the last created case via the url
And I check that External Token field is visible on Edit Case page

@issue=SORDEV-10227 @env_de
Scenario: Test Permanent deletion for Person for Case
Given I log in as a National User
Expand Down

0 comments on commit 9332459

Please sign in to comment.