Skip to content

Commit

Permalink
Update amp_dev module
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Apr 12, 2024
1 parent f2ac474 commit dffd059
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions tests/behat/features/wip/homepage_edit-account-auth.feature
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"

0 comments on commit dffd059

Please sign in to comment.