2017 © Pedro Peláez
 

behat-extension domain-extension

Domain extension for Behat

image

dennisdigital/domain-extension

Domain extension for Behat

  • Friday, March 9, 2018
  • by dennisdigital
  • Repository
  • 29 Watchers
  • 0 Stars
  • 289 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Behat Domain Extension

The Domain Extension is an integration layer for behat that allows control across multiple domains. It provides common step definitions for testing domain based features., (*1)

Why?

When testing sites which have multiple domains configured or when testing across multiple domains we need a way to tell Mink which domain we want to run our scenarios against., (*2)

How?

By default Mink supports a single base url that it will prepend all relative urls to. The domain extension allows us to switch this base url in our Scenarios depending on the domain we're testing by using one of the following step definitions:, (*3)

Given I am on the domain "Example"
And I am on the domain "Example"
When I go to the domain "Example"

From this point on, all the steps we run in the given Scenario will be tested against this new domain., (*4)

It also allows the use of aliases for domains, as can be seen above, so that we don't need to refer to domains directly. These can be configured in the Domain Extension config as follows:, (*5)

default:
  extensions:
    Behat\DomainExtension:
      domain_map:
        "Example": 'http://example.com'

Dependencies:

  • Behat
  • Symfony DPI
  • Mink

Notes

Mink override approach taken from - https://github.com/Behat/MinkExtension/issues/155, (*6)

The Versions

09/03 2018

dev-master

9999999-dev https://github.com/dennisinteractive/drupal_domain_extension

Domain extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrew Hughes-Onslow

test domain web

09/03 2018
28/02 2018

dev-behat_update

dev-behat_update https://github.com/dennisinteractive/drupal_domain_extension

Domain extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andrew Hughes-Onslow

test domain web

09/01 2017
23/12 2016