Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behat Scenario Fail on Drupal 8 #346

Open
grayside opened this issue Feb 24, 2018 · 0 comments
Open

Behat Scenario Fail on Drupal 8 #346

grayside opened this issue Feb 24, 2018 · 0 comments
Labels

Comments

@grayside
Copy link
Contributor

One of the scenarios in the test suite is failing, and I do not know why. Since the tests serve as an example and a confirmation the test runner is working, in the interest of expediency I'm going to mark it as a wip so it will be skipped, and file this issue.

The Scenario:

  @api @javascript
  Scenario: Ensure the Reports page is loaded into an overlay when the Reports
  menu item is clicked.
    Given I am logged in as a user with the "administrator" role
      And I am on the homepage
      And I click "My account"
      And I click "Edit"
     When I fill in "pass[pass1]" with "123"
     Then I should see "Password strength" in the ".form-item-pass-pass1" element

The error output from Travis:

Expand to see the error details
 Scenario: Ensure the Reports page is loaded into an overlay when the Reports   # features/example.feature:21
    menu item is clicked.
    Given I am logged in as a user with the "administrator" role                 # Drupal\DrupalExtension\Context\DrupalContext::assertAuthenticatedByRole()
      Error while processing event 'click': "TypeError: Cannot read property 'add' of undefined\n    at Object.attach (http://127.0.0.1:8080/sites/default/files/js/js_NMRRhb0nelGJUJIamL02h1d6UlwJLmr8dFn7dMiTOVc.js:8240:33)\n    at Object.Drupal.attachBehaviors (http://127.0.0.1:8080/sites/default/files/js/js_NMRRhb0nelGJUJIamL02h1d6UlwJLmr8dFn7dMiTOVc.js:207:24)\n    at http://127.0.0.1:8080/sites/default/files/js/js_NMRRhb0nelGJUJIamL02h1d6UlwJLmr8dFn7dMiTOVc.js:648:33\n    at HTMLDocument.t (http://127.0.0.1:8080/sites/default/files/js/js_BKcMdIbOMdbTdLn9dkUq3KCJfIKKo2SvKoQ1AnB8D-g.js:4:381)\n    at callListeners (/home/travis/build/phase2/grunt-drupal-tasks/test/working_copy/node_modules/jsdom/lib/jsdom/events/EventTarget.js:170:34)\n    at dispatchPhase (/home/travis/build/phase2/grunt-drupal-tasks/test/working_copy/node_modules/jsdom/lib/jsdom/events/EventTarget.js:159:7)\n    at HTMLDocument.EventTarget.dispatchEvent (/home/travis/build/phase2/grunt-drupal-tasks/test/working_copy/node_modules/jsdom/lib/jsdom/events/EventTarget.js:115:3)\n    at HTMLDocument.DOM.EventTarget.dispatchEvent (/home/travis/build/phase2/grunt-drupal-tasks/test/working_copy/node_modules/zombie/lib/dom/jsdom_patches.js:155:31)\n    at HTMLDocument.<anonymous> (/home/travis/build/phase2/grunt-drupal-tasks/test/working_copy/node_modules/jsdom/lib/jsdom/level2/html.js:306:12)\n    at /home/travis/build/phase2/grunt-drupal-tasks/test/working_copy/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:32:22" (Behat\Mink\Exception\DriverException)
    And I am on the homepage                                                     # Drupal\DrupalExtension\Context\MinkContext::iAmOnHomepage()
    And I click "My account"                                                     # Drupal\DrupalExtension\Context\MinkContext::assertClick()
    And I click "Edit"                                                           # Drupal\DrupalExtension\Context\MinkContext::assertClick()
    When I fill in "pass[pass1]" with "123"                                      # Drupal\DrupalExtension\Context\MinkContext::fillField()
    Then I should see "Password strength" in the ".form-item-pass-pass1" element # Drupal\DrupalExtension\Context\MinkContext::assertElementContainsText()
@grayside grayside added the bug label Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant