Skip to content
Snippets Groups Projects
Commit 54a72306 authored by Jörg Riemenschneider's avatar Jörg Riemenschneider Committed by Rajab Natshah
Browse files

Issue #3055619 by metalbote: Change Varbase Behat Context to use form element...

Issue #3055619 by metalbote: Change Varbase Behat Context to use form element ids instead of labels, so that tests run on non-english installs
parent 0084219f
No related branches found
No related tags found
No related merge requests found
...@@ -71,9 +71,9 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext ...@@ -71,9 +71,9 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
} }
$element = $this->getSession()->getPage(); $element = $this->getSession()->getPage();
$this->getSession()->visit($this->locatePath('/user')); $this->getSession()->visit($this->locatePath('/user'));
$element->fillField('Username', $username); $element->fillField('edit-name', $username);
$element->fillField('Password', $password); $element->fillField('edit-pass', $password);
$submit = $element->findButton('Log in'); $submit = $element->findButton('op');
$submit->click(); $submit->click();
} }
...@@ -93,9 +93,9 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext ...@@ -93,9 +93,9 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
// Login with the // Login with the
$element = $this->getSession()->getPage(); $element = $this->getSession()->getPage();
$this->getSession()->visit($this->locatePath('/user')); $this->getSession()->visit($this->locatePath('/user'));
$element->fillField('Username', $username); $element->fillField('edit-name', $username);
$element->fillField('Password', $password); $element->fillField('edit-pass', $password);
$submit = $element->findButton('Log in'); $submit = $element->findButton('op');
$submit->click(); $submit->click();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment