Commit 696d396a authored by Kumiko Ono's avatar Kumiko Ono Committed by Yas Naoi
Browse files

Issue #3267881 by kumikoono, yas: Refactor behat.yml files and the structure...

Issue #3267881 by kumikoono, yas: Refactor behat.yml files and the structure of Behat directory between sub modules
parent 6ba3ada9
Loading
Loading
Loading
Loading
+2 −65
Original line number Diff line number Diff line
imports:
  - ../../../../../../../cloud/tests/src/Behat/behat.yml
default:
  gherkin:
    cache: ~
    filters:
      tags: ~@ignore&&~@wip
  suites:
    default:
      contexts:
      # See https://behat-drupal-extension.readthedocs.io/en/v4.0.1/contexts.html
        - FeatureContext
        # Provides step-definitions for creating users, terms, and nodes.
        #- Drupal\DrupalExtension\Context\DrupalContext
        # Builds on top of the Mink Extension and adds steps specific to regions
        # and forms.
        - Drupal\DrupalExtension\Context\MinkContext
        # Step-definitions that are specific to Drupal messages that get
        # displayed (notice, warning, and error).
        - Drupal\DrupalExtension\Context\MessageContext
        # Allows steps to directly call drush commands.
        # - Drupal\DrupalExtension\Context\DrushContext
        # - RawDrupalContext
        # - MarkupContext
        # - RandomContext
        # - BatchContext
  # Note: You can set here or $BEHAT_PARAMS.
  extensions:
    # For controlling chrome without the overhead of selenium.
    DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
    Drupal\MinkExtension:
      ajax_timeout: 25
      goutte: ~
      selenium2: ~
      browser_name: chrome
      default_session: command_line_browser
      javascript_session: js_enabled_browser
      sessions:
        command_line_browser:
          goutte: ~
        js_enabled_browser:
          chrome:
            api_url: http://localhost:9222
            validate_certificate: false
      # When drupal api_driver is used below, this base_url should be the same
      # server where the tests run.
      # base_url: http://localhost
    Drupal\DrupalExtension:
      # the api_driver will be used for scenarios tagged @api.
      # blackbox, drush, or drupal
      # blackbox driver assumes no privileged access to the site.
      # blackbox: ~
      # drupal api driver: limitation is that the tests must run on the
      # same server as the Drupal site set by the base_url above.
      api_driver: 'drupal'
      drush:
        alias: 'local'
      #drupal:
        # Uncomment or set to $BEHAT_PARAMS (recommended).
        # drupal_root: '/var/www/html/web'
      region_map:
        actions: ".local-actions"
        footer: ".footer"
        nav_bar: ".navbar-collapse"
        nav_tabs: ".tabs"
        table: ".table"
        error_message: '.alert-error'
        success_message: '.alert-success'
        warning_message: '.alert-warning'
      selectors:
        message_selector: '.alert'
        error_message_selector: '.alert-error'
        success_message_selector: '.alert-success'
        warning_message_selector: '.alert-warning'
+2 −60
Original line number Diff line number Diff line
imports:
  - ../../../../../../../cloud/tests/src/Behat/behat.yml
default:
  suites:
    default:
      gherkin:
        cache: ~
      contexts:
      # See https://behat-drupal-extension.readthedocs.io/en/v4.0.1/contexts.html
        - FeatureContext
        # Provides step-definitions for creating users, terms, and nodes.
        #- Drupal\DrupalExtension\Context\DrupalContext
        # Builds on top of the Mink Extension and adds steps specific to regions
        # and forms.
        - Drupal\DrupalExtension\Context\MinkContext
        # Step-definitions that are specific to Drupal messages that get
        # displayed (notice, warning, and error).
        - Drupal\DrupalExtension\Context\MessageContext
        # Allows steps to directly call drush commands.
        # - Drupal\DrupalExtension\Context\DrushContext
        # - RawDrupalContext
        # - MarkupContext
        # - RandomContext
        # - BatchContext
  # Note: You can set here or $BEHAT_PARAMS.
  extensions:
    DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
    Drupal\MinkExtension:
      ajax_timeout: 25
      goutte: ~
      selenium2: ~
      browser_name: chrome
      default_session: command_line_browser
      javascript_session: js_enabled_browser
      sessions:
        command_line_browser:
          goutte: ~
        js_enabled_browser:
          chrome:
            api_url: http://localhost:9222
            validate_certificate: false
      # Uncomment or set to $BEHAT_PARAMS (recommended).
      # When drupal api_driver is used below, this base_url should be the same
      # server where the tests run.
      # base_url: http://localhost
    Drupal\DrupalExtension:
      # the api_driver will be used for scenarios tagged @api.
      # blackbox, drush, or drupal
      # blackbox driver assumes no privileged access to the site.
      # blackbox: ~
      # drupal api driver: limitation is that the tests must run on the
      # same server as the Drupal site set by the base_url above.
      api_driver: 'drupal'
      drush:
        alias: 'local'
      #drupal:
        # Uncomment or set to $BEHAT_PARAMS (recommended).
        # drupal_root: '/var/www/html/web'
      region_map:
        actions: ".local-actions"
        footer: ".footer"
        nav_bar: ".navbar-collapse"
        nav_tabs: ".tabs"
        table: ".table"
      selectors:
        message_selector: '.messages'
        error_message_selector: '.messages.messages--error'
        success_message_selector: '.messages.messages--status'
        warning_message_selector: '.messages.messages--warning'
+16 −13
Original line number Diff line number Diff line
default:
  suites:
default:
  gherkin:
    cache: ~
    filters:
      tags: ~@ignore&&~@wip
  suites:
    default:
      contexts:
        # See https://behat-drupal-extension.readthedocs.io/en/v4.0.1/contexts.html
        - FeatureContext
@@ -20,11 +22,10 @@ default:
        # - MarkupContext
        # - RandomContext
        # - BatchContext
  # Note: You can set here or $BEHAT_PARAMS.
  extensions:
    DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
    Drupal\MinkExtension:
      ajax_timeout: 25
      ajax_timeout: 30
      goutte: ~
      selenium2: ~
      browser_name: chrome
@@ -37,9 +38,8 @@ default:
          chrome:
            api_url: http://localhost:9222
            validate_certificate: false
      # drupal api_driver requires the same server where the tests run.
      # Uncomment or set to $BEHAT_PARAMS (recommended).
      # When drupal api_driver is used below, this base_url should be the same
      # server where the tests run.
      # base_url: http://localhost
    Drupal\DrupalExtension:
      # the api_driver will be used for scenarios tagged @api.
@@ -51,8 +51,8 @@ default:
      api_driver: 'drupal'
      drush:
        alias: 'local'
        # Uncomment if no $BEHAT_PARAMS is set.
        # drupal:
        # Uncomment or set to $BEHAT_PARAMS (recommended).
        # drupal_root: '/var/www/html/web'
      region_map:
        actions: ".local-actions"
@@ -60,8 +60,11 @@ default:
        nav_bar: ".navbar-collapse"
        nav_tabs: ".tabs"
        table: ".table"
        error_message: '.alert-error'
        success_message: '.alert-success'
        warning_message: '.alert-warning'
      selectors:
        message_selector: '.messages'
        error_message_selector: '.messages.messages--error'
        success_message_selector: '.messages.messages--status'
        warning_message_selector: '.messages.messages--warning'
        message_selector: '.alert'
        error_message_selector: '.alert-error'
        success_message_selector: '.alert-success'
        warning_message_selector: '.alert-warning'