Fix variable not replaced in "behat.yml" when default value was used
As "selenium.server" is a simulated variable it is not recognized by Mink, so it must be always replaced by its value in "behat.yml" before the file is parsed by Behat. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
a077c129c8
commit
ea6b5063b5
|
@ -171,7 +171,6 @@ REPLACEMENT="profile: $ACCEPTANCE_TESTS_CONFIG_DIR"
|
|||
FILE_CONTENTS=$(<$ACCEPTANCE_TESTS_CONFIG_DIR/behat.yml)
|
||||
echo "${FILE_CONTENTS//$ORIGINAL/$REPLACEMENT}" > $ACCEPTANCE_TESTS_CONFIG_DIR/behat.yml
|
||||
|
||||
if [ "$SELENIUM_SERVER" != "$DEFAULT_SELENIUM_SERVER" ]; then
|
||||
# Set the Selenium server to be used by Mink. Although Mink sessions can be
|
||||
# extended through BEHAT_PARAMS this would require adding here too each new
|
||||
# session added to "behat.yml", including those added in the acceptance
|
||||
|
@ -185,7 +184,6 @@ if [ "$SELENIUM_SERVER" != "$DEFAULT_SELENIUM_SERVER" ]; then
|
|||
# regular expression characters that may appear in the URL, like "/".
|
||||
FILE_CONTENTS=$(<$ACCEPTANCE_TESTS_CONFIG_DIR/behat.yml)
|
||||
echo "${FILE_CONTENTS//$ORIGINAL/$REPLACEMENT}" > $ACCEPTANCE_TESTS_CONFIG_DIR/behat.yml
|
||||
fi
|
||||
|
||||
composer install
|
||||
|
||||
|
|
Loading…
Reference in New Issue