Skip to content

Commit

Permalink
IBX-1776: Quick-fix for Change password behat scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
micszo committed Jan 11, 2022
1 parent 99d2675 commit 4f9810e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 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
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';
}
}

0 comments on commit 4f9810e

Please sign in to comment.