# we wait a human amount of time so the spam trap is avoided
And I wait "4" seconds
And I press "Register"
# Check for conformation message
Then I should be on "/register.php"
And I should see "You have successfully submitted your application for registration. The institution administrator has been notified, and you will receive an email as soon as your application has been processed."
And I follow "Login"
And I log in as "admin" with password "Kupuh1pa!"
And I choose "Pending registrations" in "Institutions" from administration menu
# we wait a human amount of time so the spam trap is avoided
And I wait "4" seconds
And I press "Register"
# Check for conformation message
Then I should be on "/register.php"
And I should see "You have successfully submitted your application for registration. The institution administrator has been notified, and you will receive an email as soon as your application has been processed."
# check for Expiry date column and text after approval to make it a bit clearer about what is happening when
Given I follow "Login"
And I log in as "admin" with password "Kupuh1pa!"
And I choose "Pending registrations" in "Institutions" from administration menu
Then I should see "EXPIRES "
And I should see the date "+2 weeks" in the "tbody tr td:nth-of-type(3)"elementwiththeformat"dFY"
When I follow "Approve"
And I press "Approve"
Then I should see "Approval sent, waiting on user completion"