Skip to content

Commit

Permalink
Merge pull request #546 from jhedstrom/545-remove-zombie
Browse files Browse the repository at this point in the history
Remove Zombie JS from Travis CI
  • Loading branch information
jhedstrom committed Jul 18, 2019
2 parents 5702213 + 019cd97 commit fdbcfa4
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ vendor
behat.yml
/package-lock.json
/node_modules
/.docksal
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ install:
- npm install

before_script:
# Set NODE_PATH for zombie driver.
- export NODE_PATH="`pwd`/node_modules"
# Define the module path according to the Drupal version being tested.
- test ${DRUPAL_VERSION} -ne 8 || export MODULE_PATH="drupal/modules"
- test ${DRUPAL_VERSION} -eq 8 || export MODULE_PATH="drupal/sites/all/modules" && mkdir -p ${MODULE_PATH}
Expand Down Expand Up @@ -92,6 +90,7 @@ before_script:

script:
- composer test
- npm test
- vendor/bin/behat -fprogress --strict
- vendor/bin/behat -fprogress --profile=drupal${DRUPAL_VERSION} --strict
# Do not test the Drush profile unless Drupal 7 was installed.
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
* [#528](https://github.com/jhedstrom/drupalextension/pull/528) Show a more helpful failure when running `@javascript`
scenarios with incorrect configuration.
* [#545](https://github.com/jhedstrom/drupalextension/issue/545) Remove Zombie JS testing on Travis.
### Added
* [#527](https://github.com/jhedstrom/drupalextension/pull/527) Provide a step to check that a button is not in a region.
* [#543](https://github.com/jhedstrom/drupalextension/issue/543) Run gherkin-lint against feature files on Travis.
* [#544](https://github.com/jhedstrom/drupalextension/issue/544) Added a 'Contributing' section to the README.
### Fixed
* [#542](https://github.com/jhedstrom/drupalextension/pull/542) Fix issue with certain symfony 4 components being pulled in.
## [4.0.0 beta2] 2018-12-19
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ the [Full documentation](https://behat-drupal-extension.readthedocs.org)

See [CHANGELOG](CHANGELOG.md).

## Contributing

Features and bug fixes are welcome! First-time contributors can jump in with the
issues tagged [good first issue](https://github.com/jhedstrom/drupalextension/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).

### Backwards incompatible changes

Starting with 3.3.0 Behat Drupal Extension depends on Behat 3.2.0 which
Expand Down
2 changes: 0 additions & 2 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ default:
extensions:
Drupal\MinkExtension:
goutte: ~
zombie: ~
base_url: http://127.0.0.1:8888/blackbox
javascript_session: zombie
Drupal\DrupalExtension:
blackbox: ~
region_map:
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
},
"require-dev": {
"phpspec/phpspec": "~2.0 || ~4.0",
"behat/mink-zombie-driver": "^1.2",
"jakub-onderka/php-parallel-lint": "^0.9.2",
"drupal/coder": "~8.2.12"
},
Expand Down
6 changes: 0 additions & 6 deletions features/blackbox.feature
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ Feature: Test DrupalContext
| Sorry, unrecognized username or password |
| Unable to send e-mail. Contact the site administrator if the problem persists |

@javascript
Scenario: Zombie driver is functional
Given I am on the homepage
When I click "Download & Extend"
Then I should see the link "Distributions"

@scenariotag
Scenario: Check tags on feature and scenario
Then the "scenariotag" tag should be present
Expand Down
6 changes: 0 additions & 6 deletions features/i18n/es/blackbox.feature
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,3 @@ Característica: Test DrupalContext
| error messages |
| Sorry, unrecognized username or password |
| Unable to send e-mail. Contact the site administrator if the problem persists |

@javascript
Escenario: El driver Zombie funciona adecuadamente
Dado estoy en la página de inicio
Cuando hago click en "Download & Extend"
Entonces debo ver el enlace "Distributions"
8 changes: 0 additions & 8 deletions features/messages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,3 @@ Feature: Ensure that messages are working properly on local installs
And I fill in "a fake password" for "Password"
And I press "Log in"
Then I should see the error message "Unrecognized username or password"

@javascript
Scenario: JS messages
Given I am on "/user/login"
When I fill in "a fake user" for "Username"
And I fill in "a fake password" for "Password"
And I press "Log in"
Then I should see the error message "Unrecognized username or password"
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"devDependencies": {
"gherkin-lint": "^2.12.0",
"zombie": "^2.5"
"gherkin-lint": "^2.12.0"
},
"scripts": {
"gherkin-lint": "gherkin-lint features",
Expand Down

0 comments on commit fdbcfa4

Please sign in to comment.