-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
tests/behat/features/wip/homepage_edit-account-auth.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@wip | ||
@api | ||
@javascript | ||
|
||
Feature: For an authenticated user, the Edit Account Page displays | ||
the first and last name of the user as its title. The page features | ||
tabs for navigating to "View" (user's profile page), "Edit" (current page), and "Security" (MFA setup page). | ||
The fields on the page include Program (region), Email Address, Roles (checkboxes for various roles), | ||
First Name, Last Name, preferred pronouns, bio, Picture (file upload), Institution, ACCESS Organization, | ||
CV/Resume (file upload), Time Zone (dropdown), and Citizenships. | ||
|
||
Scenario: Authenticated user tests the edit account page | ||
Given I am logged in with email "[email protected]" | ||
When I go to the homepage | ||
Then I should see "My profile" | ||
When I click "Edit my account" | ||
Then I should see "Pecan Pie" | ||
Then I should see "View" | ||
Then I should see "Edit" | ||
Then I should see "TFA" | ||
Then I should see "Program" | ||
Then I should see "Email Address" | ||
Then value of element "edit-mail" should contain "[email protected]" | ||
Then I should see "Password strength" | ||
Then I should see "Confirm Password" | ||
Then I should see "First Name" | ||
Then I should see "Last Name" | ||
Then value of element "edit-field-user-preferred-pronouns-0-value" should contain "they/them" | ||
Then value of element "edit-field-user-bio-0-value" should contain "I am a pie" | ||
Then I should see "Picture" | ||
Then value of element "edit-field-access-organization-0-target-id" should contain "MGHPCC (4300)" | ||
Then I should see "CV" | ||
Then I should see "Time Zone" | ||
Then I should see "Citizenships" | ||
|
||
Scenario: Authenticated user tests the add interest/skills page | ||
Given I am logged in with email "[email protected]" | ||
When I go to "/community-persona" | ||
Then I should not see "access-account" | ||
|
||
# toggle interest in "access-account" | ||
When I go to "/community-persona/add-interest" | ||
Then I should see "Add Interest" | ||
When I click the element with selector "access-account" | ||
When I go to "/community-persona" | ||
Then I should see "access-account" | ||
When I go to "/community-persona/add-interest" | ||
When I click the element with selector "access-account" | ||
When I go to "/community-persona" | ||
Then I should not see "access-account" | ||
|
||
# toggle skill with "access-account" | ||
When I go to "/community-persona/add-skill" | ||
When I click the element with selector "access-account" | ||
When I go to "/community-persona" | ||
Then I should see "access-account" | ||
When I go to "/community-persona/add-skill" | ||
When I click the element with selector "access-account" | ||
When I go to "/community-persona" | ||
Then I should not see "access-account" |