Skip to content

Commit

Permalink
Repair ra_vet.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Feb 8, 2024
1 parent a8f4f05 commit 73b1bde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion stepup/tests/behat/features/bootstrap/SelfServiceContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ public function verifyEmailAddress(string $vettingType)
);
switch ($vettingType) {
case "RA vetting":
$this->iChooseToActivateMyTokenUsingServiceDeskVetting();
$url = $this->minkContext->getSession()->getCurrentUrl();
if (strpos($url, '/registration-email-sent') === false) {
$this->iChooseToActivateMyTokenUsingServiceDeskVetting();
}
$this->minkContext->assertPageContainsText('Thank you for registering your token.');

$page = $this->minkContext->getSession()->getPage();
Expand Down
7 changes: 3 additions & 4 deletions stepup/tests/behat/features/ra_vet.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@SKIP
Feature: A RA manages tokens tokens registered in the selfservice portal
In order to manage tokens
As a RA
Expand All @@ -8,14 +7,14 @@ Feature: A RA manages tokens tokens registered in the selfservice portal
Given institution "institution-a.example.com" can "use_ra" from institution "institution-a.example.com"
And institution "institution-a.example.com" can "select_raa" from institution "institution-a.example.com"
And institution "institution-d.example.com" can "use_ra" from institution "institution-a.example.com"
And a user "Jane Toppan" identified by "urn:collab:person:institution-a.example.com:jane-a-ra" from institution "institution-a.example.com"
And the user "urn:collab:person:institution-a.example.com:jane-a-ra" has a vetted "yubikey"
And a user "Jane Toppan" identified by "urn:collab:person:institution-a.example.com:jane-a-ra" from institution "institution-a.example.com" with UUID "00000000-0000-4000-a000-000000000001"
And the user "urn:collab:person:institution-a.example.com:jane-a-ra" has a vetted "yubikey" with identifier "00000001"
And the user "urn:collab:person:institution-a.example.com:jane-a-ra" has the role "ra" for institution "institution-a.example.com"

Scenario: RA user can vet a token from an institution it is RA for
Given I am logged in into the selfservice portal as "joe-a1"
And I register a new SMS token
And I verify my e-mail address
And I verify my e-mail address and choose the "RA vetting" vetting type
When I am logged in into the ra portal as "jane-a-ra" with a "yubikey" token
And I vet the last added second factor

Expand Down

0 comments on commit 73b1bde

Please sign in to comment.