Browse Source

Fix login test

Julio Montoya 5 years ago
parent
commit
e8c72b6f39
2 changed files with 4 additions and 5 deletions
  1. 0 1
      .travis.yml
  2. 4 4
      tests/behat/features/bootstrap/FeatureContext.php

+ 0 - 1
.travis.yml

@@ -79,7 +79,6 @@ before_install:
   # Dump js routes
   - bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
   - # Install third party js/css libraries
-  - yarn --version
   - yarn install
   - ./node_modules/.bin/encore dev
   # Check chamilo status

+ 4 - 4
tests/behat/features/bootstrap/FeatureContext.php

@@ -116,11 +116,11 @@ class FeatureContext extends MinkContext
      */
     public function iAmLoggedAs($username)
     {
-        $this->visit('/index.php?logout=logout');
+        $this->visit('/public/login');
         $this->iAmOnHomepage();
-        $this->fillField('_username', $username);
-        $this->fillField('_password', $username);
-        $this->pressButton('submitAuth');
+        $this->fillField('login__username', $username);
+        $this->fillField('login__password', $username);
+        $this->pressButton('_submit');
     }
 
     /**