Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Dec 18, 2018
1 parent 9f55f2f commit 28d3f6b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions project/tests/codeception/_support/E2eTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ class E2eTester extends \Codeception\Actor
{
use _generated\E2eTesterActions;

/**
* Define custom actions here
*/
/**
* Login with username and password
* @param $username
* @param $password
*/
public function login($username, $password){
$this->amOnPage('/user/security/login');
$this->fillField('input[name="login-form[login]"]', $username);
$this->fillField('input[name="login-form[password]"]', $password);
$this->click('#login-form button');
$this->waitForElementNotVisible('#login-form', 10);
$this->fillField('input[name="LoginForm[login]"]', $username);
$this->fillField('input[name="LoginForm[password]"]', $password);
$this->click('#LoginForm button');
$this->waitForElementNotVisible('#LoginForm', 10);
}

public function dontSeeHorizontalScrollbars(){
Expand Down

0 comments on commit 28d3f6b

Please sign in to comment.