These are chat archives for Behat/Behat

3rd
Jul 2017
Jesús Toscano Del Río
@toscanoX
Jul 03 2017 20:14
Hi, I'm new on behat, I'm trying to run a simple example but for any reason it skips all the tests, any clue??
default:
  suites:
    default:
      contexts:
        - Drupal\DrupalExtension\Context\DrupalContext
        - Drupal\DrupalExtension\Context\MarkupContext
        - Drupal\DrupalExtension\Context\MessageContext
        - Drupal\DrupalExtension\Context\DrushContext
        - Drupal\FeatureContext
  extensions:
    Behat\MinkExtension:
      goutte: ~
      javascript_session: ~
      default_session: selenium2
      selenium2:
        wd_host: http://127.0.0.1:4443
        capabilities: {"browser": "firefox", "version": "46"}
      base_url: http://127.0.0.1:8081
      browser_name: firefox
    Drupal\DrupalExtension:
      blackbox: ~
this is the output:
@example
Feature: Web drivers
  In order to verify that web drivers are working
  As a user
  I should be able to load the homepage
  With and without Javascript

  @javascript
  Scenario: Load a page with Javascript # features/Examples.feature:9
    Given I am on "/"                   # Drupal\FeatureContext::iAmOn()
      TODO: write pending definition
    Then I should see the text "Log in" # Drupal\FeatureContext::iShouldSeeTheText()

  Scenario: Load a page without Javascript # features/Examples.feature:13
    Given I am on "/"                      # Drupal\FeatureContext::iAmOn()
      TODO: write pending definition
    Then I should see the text "Log in"    # Drupal\FeatureContext::iShouldSeeTheText()

2 scenarios (2 pending)
4 steps (2 pending, 2 skipped)
0m0.04s (15.99Mb)