diff --git a/composer.lock b/composer.lock index 63f841c08..32ce17b76 100644 --- a/composer.lock +++ b/composer.lock @@ -16960,7 +16960,7 @@ "source": { "type": "git", "url": "https://github.com/necyberteam/amp_dev.git", - "reference": "7785bd2d16b0e8bdac221ce8fb87fc9c8345a7a3" + "reference": "abb3c2019b4faf6edc295865da1d8877fe533e17" }, "default-branch": true, "type": "drupal-custom-module", @@ -16972,7 +16972,7 @@ "keywords": [ "Drupal" ], - "time": "2023-10-06T18:01:24+00:00" + "time": "2024-04-11T14:11:08+00:00" }, { "name": "colinodell/psr-testlogger", diff --git a/tests/behat/features/wip/homepage_edit-account-auth.feature b/tests/behat/features/wip/homepage_edit-account-auth.feature new file mode 100644 index 000000000..9e0314bf7 --- /dev/null +++ b/tests/behat/features/wip/homepage_edit-account-auth.feature @@ -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 "pecan@pie.org" + 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 "pecan@pie.org" + 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 "pecan@pie.org" + 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"