Skip to content

Commit 30df031

Browse files
committed
Add additional tests after manual testing
1 parent ae86ba8 commit 30df031

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

stepup/tests/behat/features/bootstrap/RaContext.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,16 @@ public function iVisitTheTokensPage()
313313
$this->minkContext->assertPageAddress('https://ra.dev.openconext.local/second-factors');
314314
}
315315

316+
/**
317+
* @Given /^I visit the Recovery methods page$/
318+
*/
319+
public function iVisitTheRecoveryMethodsPage()
320+
{
321+
$this->minkContext->clickLink('Recovery methods');
322+
$this->minkContext->assertPageAddress('https://ra.dev.openconext.local/recovery-tokens');
323+
}
324+
325+
316326
/**
317327
* @When I filter the :arg1 filter on :arg2
318328
*/

stepup/tests/behat/features/ra.feature

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Feature: A RAA manages tokens tokens registered in the selfservice portal
2121
When I search for "9876WXYZ" on the token activation page
2222
Then I should see "Unknown activation code"
2323

24+
Scenario: RA user can view the audit log of its institution
25+
Given I am logged in into the ra portal as "admin" with a "yubikey" token
26+
When I visit the Tokens page
27+
And I open the audit log for a user of "dev.openconext.local"
28+
Then I should see "Identity and Token bootstrapped" in the audit log identity overview
29+
2430
Scenario: RA user can view the audit log of another institution identity
2531
Given I am logged in into the ra portal as "jane-a-ra" with a "yubikey" token
2632
When I visit the Tokens page
@@ -54,3 +60,8 @@ Feature: A RAA manages tokens tokens registered in the selfservice portal
5460
Given I am logged in into the ra portal as "admin" with a "yubikey" token
5561
When I visit the RA Management page
5662
Then I relieve "Jane Aone" from "institution-a.example.com" of his "RA" role
63+
64+
Scenario: RA user can see the recovery methods overview
65+
Given I am logged in into the ra portal as "jane-a-ra" with a "yubikey" token
66+
When I visit the Recovery methods page
67+
Then I should see "No recovery methods found"

0 commit comments

Comments
 (0)