Skip to content

Commit

Permalink
Add additional tests after manual testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pablothedude committed Dec 10, 2024
1 parent ae86ba8 commit 30df031
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stepup/tests/behat/features/bootstrap/RaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,16 @@ public function iVisitTheTokensPage()
$this->minkContext->assertPageAddress('https://ra.dev.openconext.local/second-factors');
}

/**
* @Given /^I visit the Recovery methods page$/
*/
public function iVisitTheRecoveryMethodsPage()
{
$this->minkContext->clickLink('Recovery methods');
$this->minkContext->assertPageAddress('https://ra.dev.openconext.local/recovery-tokens');
}


/**
* @When I filter the :arg1 filter on :arg2
*/
Expand Down
11 changes: 11 additions & 0 deletions stepup/tests/behat/features/ra.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ Feature: A RAA manages tokens tokens registered in the selfservice portal
When I search for "9876WXYZ" on the token activation page
Then I should see "Unknown activation code"

Scenario: RA user can view the audit log of its institution
Given I am logged in into the ra portal as "admin" with a "yubikey" token
When I visit the Tokens page
And I open the audit log for a user of "dev.openconext.local"
Then I should see "Identity and Token bootstrapped" in the audit log identity overview

Scenario: RA user can view the audit log of another institution identity
Given I am logged in into the ra portal as "jane-a-ra" with a "yubikey" token
When I visit the Tokens page
Expand Down Expand Up @@ -54,3 +60,8 @@ Feature: A RAA manages tokens tokens registered in the selfservice portal
Given I am logged in into the ra portal as "admin" with a "yubikey" token
When I visit the RA Management page
Then I relieve "Jane Aone" from "institution-a.example.com" of his "RA" role

Scenario: RA user can see the recovery methods overview
Given I am logged in into the ra portal as "jane-a-ra" with a "yubikey" token
When I visit the Recovery methods page
Then I should see "No recovery methods found"

0 comments on commit 30df031

Please sign in to comment.