Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make test work when using port 80 and/or path in URL
  • Loading branch information
individual-it committed Feb 24, 2017
commit aab0d72a65e1ef6e4dbe7a3967c17f36d96d8b36
8 changes: 7 additions & 1 deletion tests/travis/start_behat_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
# @copyright 2017 Artur Neumann [email protected]
#

if [ "$SRV_HOST_PORT" == "80" ]
then
BASE_URL="http://$SRV_HOST_NAME/$SRV_HOST_URL"
else
BASE_URL="http://$SRV_HOST_NAME:$SRV_HOST_PORT/$SRV_HOST_URL"
fi

export BEHAT_PARAMS='{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://'$SRV_HOST_NAME:$SRV_HOST_PORT/'","selenium2":{"wd_host":"http://'$SAUCE_USERNAME:$SAUCE_ACCESS_KEY'@localhost:4445/wd/hub"}}}}'
export BEHAT_PARAMS='{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "'$BASE_URL'","selenium2":{"wd_host":"http://'$SAUCE_USERNAME:$SAUCE_ACCESS_KEY'@localhost:4445/wd/hub"}}}}'
lib/composer/bin/behat -c tests/ui/config/behat.yml