Skip to content
Snippets Groups Projects
Commit 9124d3c9 authored by Demian Katz's avatar Demian Katz
Browse files

Added workaround for random test failures caused by chromedriver bug.

parent 0d6494fb
No related merge requests found
......@@ -126,7 +126,11 @@ trait UserCreationTrait
$prefix = ($inModal ? '.modal-body ' : '') . $prefix;
if (null !== $username) {
$usernameField = $this->findCss($page, $prefix . '[name="username"]');
$usernameField->setValue($username);
// Workaround for Chromedriver bug; sometimes setting the username
// doesn't work on the first try.
while ($usernameField->getValue() !== $username) {
$usernameField->setValue($username);
}
}
if (null !== $password) {
$passwordField = $this->findCss($page, $prefix . '[name="password"]');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment