Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Wait for settings menu animation on users page #158

Merged
merged 1 commit into from
Mar 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/acceptance/features/lib/UsersPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,15 @@ public function openAppSettingsMenu() {
);
}
$settingsBtn->click();
// At this point isVisible() on the settings menu returns true
// But the settings menu animation is happening.
// If we try to click a setting before the animation is finished
// then the click is not effective.
// This results in intermittent test fails, because the expected
// setting does not happen.
// ToDo: some day sort out how to query the settings menu div in a loop
// and wait until the animation has stopped
\sleep(1);
}

/**
Expand Down