Skip to content

Commit

Permalink
IBX-1776: Removed "Change password" item from user menu (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Szołtysek <michal.szoltysek@ez.no>
  • Loading branch information
adamwojs and micszo authored Jan 11, 2022
1 parent 1ebb7fe commit e6a30ff
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 92 deletions.
2 changes: 1 addition & 1 deletion features/personas/ChangePassword.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Verify that an User allowed to change password can change his password
Scenario: I can change my password
Given I open Login page in admin SiteAccess
And I log in as "UserPassword" with password "Passw0rd-42"
When I go to change my password
When I open "Change password" page in admin SiteAccess
And I change password from "Passw0rd-42" to "Passw0rd-43"
And I click on the edit action bar button "Update"
Then success notification that "Your password has been successfully changed." appears
Expand Down
5 changes: 0 additions & 5 deletions src/bundle/Resources/translations/menu.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,6 @@
<target state="new">Save</target>
<note>key: url_wildcard_edit__sidebar_right__save</note>
</trans-unit>
<trans-unit id="da5c7f4f526c2dd5b1e1f51ab5238ef4ba86d421" resname="user__change_password">
<source>Change password</source>
<target state="new">Change password</target>
<note>key: user__change_password</note>
</trans-unit>
<trans-unit id="06accb26fbb1b72012942af2b3e03f7c138e28c3" resname="user__content">
<source>Logout</source>
<target state="new">Logout</target>
Expand Down
9 changes: 0 additions & 9 deletions src/lib/Behat/BrowserContext/NavigationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,6 @@ public function tryToOpenPage(string $pageName): void
$this->pageRegistry->get($pageName)->tryToOpen('admin');
}

/**
* @Given I go to change my password
* @Given I go to change my password in user preferences
*/
public function iGoToChangeMyPassword()
{
$this->upperMenu->chooseFromUserDropdown('Change password');
}

/**
* @Then /^I should be on "?([^\"]*)"? page$/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Behat/Page/ChangePasswordPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ protected function getRoute(): string

public function getName(): string
{
return 'Change password page';
return 'Change password';
}
}
76 changes: 0 additions & 76 deletions src/lib/EventListener/UserMenuListener.php

This file was deleted.

0 comments on commit e6a30ff

Please sign in to comment.