Skip to content

Commit

Permalink
1645: Behat tests with Diffy.
Browse files Browse the repository at this point in the history
  • Loading branch information
svipsa committed Aug 6, 2020
1 parent 3f78c0f commit c54eeec
Show file tree
Hide file tree
Showing 11 changed files with 1,247 additions and 1,167 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor/*
screenshots/*
1 change: 0 additions & 1 deletion Diffy/Behat/DiffyExtension.php

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
init

# Run selenium in docker

docker-compose -f docker/docker-compose.yml up
21 changes: 14 additions & 7 deletions behat.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
default:
suites:
default:
paths:
features: features/
bootstrap: features/bootstrap/
contexts:
- DiffyContext
context:
class: DiffyContext
parameters:
projectId: 2947
apiKey: 68171ec1ecc9f82210ffbf4a90438104
screenshotsDir: screenshots
extensions:
Behat\MinkExtension\Extension:
base_url: https://en.wikipedia.org
goutte: ~
javascript_session: selenium2
browser_name: chrome
selenium2:
wd_host: "http://localhost:4444/wd/hub"
1 change: 1 addition & 0 deletions bin/behat
24 changes: 20 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
{
"require-dev": {
"behat/behat": "^3.7.0",
"diffywebsite/diffy-php": "1.x-dev"
}
"name": "diffywebsite/diffy-behat",
"description": "PHP Bindings for Diffy API",
"keywords": [ "cli", "diffy", "diffy-php", "drupal" ],
"homepage": "https://diffy.website",
"license": "MIT",
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=5.5.38",
"behat/behat": "~2.5",
"behat/mink-extension": "~1.3",
"behat/mink-goutte-driver": "~1.2",
"behat/mink-selenium2-driver": "~1.2",
"fabpot/goutte": "1.*@stable",
"guzzlehttp/guzzle": "^6.2",
"diffywebsite/diffy-php": "dev-master"
},
"config": {
"bin-dir": "bin/"
}
}
Loading

0 comments on commit c54eeec

Please sign in to comment.