Skip to content
Permalink
Browse files

Merge pull request #4872 from ChurchCRM/testing/windows-selenium

Improve test suite execution
  • Loading branch information...
crossan007 committed Nov 1, 2019
2 parents 5af012d + 9d1d167 commit a7f609a45f7514ceef6337fe534f4b99613bf53b
@@ -7,9 +7,6 @@ php:
rvm:
- 2.2

addons:
sauce_connect: true

sudo: required
dist: trusty
group: edge
@@ -53,7 +50,6 @@ before_script:
- sudo a2enmod rewrite proxy_fcgi
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
- sudo cp -f travis-ci/000-default.conf /etc/apache2/sites-available/000-default.conf
- sudo cp -f travis-ci/tests-run.sh scripts/tests-run.sh
- sudo chmod -R a+rwx /home
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)/src?g" --in-place /etc/apache2/sites-available/000-default.conf
- sudo service apache2 restart
@@ -4,5 +4,18 @@
},
"GitHub": {
"token": ""
},
"SeleniumTests": {
"TestURL": "http://127.0.0.1",
"SeleniumTestHostType": 1,
"SauceUsername":"",
"SauceAccessKey":"",
"_BehatTestsToRun": [
"Remove the underscore from this key to specify feature tests to run",
"this list must contain only strings representing the relative path",
"to the .feature files",
"features/System/SystemSettings.feature"
]
}

}
@@ -95,8 +95,8 @@
"datadictionary": "php src/vendor/propel/propel/bin/propel.php --config-dir=propel datadictionary:generate",
"composer-install": "cd src/ && composer install && cd .. && grunt lineending",
"composer-update": " cd src/ && composer update && composer dump-autoload && cd ../tests/ && composer update && cd .. && grunt lineending",
"tests-install": "scripts/tests-install.sh",
"test": "scripts/tests-run.sh",
"tests-install": "cd tests && composer install",
"test": "php tests/run.php",
"build-react": "webpack",
"restore-demo-db": "php scripts/restore-demo-db.php"
}

This file was deleted.

@@ -0,0 +1 @@
behat.yml

This file was deleted.

@@ -0,0 +1,20 @@
default:
suites:
default:
contexts:
- nwcontext:form
- nwcontext:formstone
- nwcontext:select2
- FeatureContext
extensions:
Novaway\CommonContexts\Extension: ~
Behat\MinkExtension:
base_url: {URL}
selenium2:
wd_host: {WD_HOST}
browser: chrome
capabilities:
browserName: "chrome"
extra_capabilities:
chromeOptions:
w3c: false
@@ -10,6 +10,7 @@ Feature: GeoPage
And I fill in select2 input "Family" with "Berry" and select "Berry - 1931 Edwards Rd Riverside, PA United States"
And I fill in "MaxDistance" with "500"
And I wait for AJAX to finish
And I check "Regular Attender"
And I press "Show Neighbors"
Then I should see "Rafael Dixon"
Then I should see "0" in the "#iconCount" element
@@ -1,11 +1,12 @@
{
"name": "ChurchCRM/CRM-Tests",
"require":{
"name": "churchcrm/crm-tests",
"require": {
"behat/symfony2-extension": "*",
"behat/mink-goutte-driver": "*",
"behat/mink-selenium2-driver": "1.2.*@dev",
"behat/mink-selenium2-driver": "*",
"behat/mink-extension": "*",
"behat/mink-browserkit-driver": "*",
"novaway/common-contexts": "~2.0"
}
"novaway/common-contexts": "*",
"crossan007/php-sauceconnect": "dev-master"
}
}

0 comments on commit a7f609a

Please sign in to comment.
You can’t perform that action at this time.