Skip to content

Commit

Permalink
[Behat] Adapted tests after redirect change (#1091)
Browse files Browse the repository at this point in the history
* [Behat] Adapted tests after redirect change

* Adapted Page to view mode as well
  • Loading branch information
mnocon authored Jan 4, 2024
1 parent 8e02192 commit 0ca72d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/personas/ChangePassword.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feature: Verify that an User allowed to change password can change his password
And I change password from "Passw0rd-42" to "Passw0rd-43"
And I perform the "Update" action
Then success notification that "Your password has been successfully changed." appears
And I should be on Dashboard page
And I should be on "User settings" page

Scenario: I can log in with new password
Given I open Login page in admin SiteAccess
Expand Down
3 changes: 1 addition & 2 deletions src/lib/Behat/Page/UserSettingsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function __construct(Session $session, Router $router, ContentActionsMenu

public function verifyIsLoaded(): void
{
$this->contentActionsMenu->verifyIsLoaded();
$this->getHTMLPage()->find($this->getLocator('title'))->assert()->textEquals('User settings');
}

Expand All @@ -55,7 +54,7 @@ protected function specifyLocators(): array
{
return [
new VisibleCSSLocator('button', '.ibexa-btn'),
new VisibleCSSLocator('title', '.ibexa-edit-header__title'),
new VisibleCSSLocator('title', '.ibexa-edit-header__title,.ibexa-page-title__content'),
new VisibleCSSLocator('autosaveDraftValueDropdown', '#user_setting_update_autosave div.ibexa-dropdown__wrapper > ul'),
new VisibleCSSLocator('autosaveIntervalEdit', '#user_setting_update_autosave_interval_value'),
];
Expand Down

0 comments on commit 0ca72d3

Please sign in to comment.