Skip to content

Commit a9c6af6

Browse files
committed
restore browser
1 parent e2c123a commit a9c6af6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/System/entrypoint.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ JOOMLA_BASE=$1
88
TEST_GROUP=$2
99
DB_ENGINE=$3
1010
DB_HOST=$4
11+
BROWSER=${5:-firefox}
1112

12-
echo "[RUNNER] Prepare test environment"
13+
echo "[RUNNER] Prepare test environment for $BROWSER"
1314

1415
# Switch to Joomla base directory
1516
cd $JOOMLA_BASE
1617

17-
echo "[RUNNER] Copy files to test installation"
18+
echo "[RUNNER] Copy files from $JOOMLA_BASE to test installation /tests/www/$TEST_GROUP/"
1819
rsync -a --exclude-from=tests/System/exclude.txt $JOOMLA_BASE/ /tests/www/$TEST_GROUP/
1920
chown -R www-data /tests/www/$TEST_GROUP/
2021

2122
# Required for media manager tests
2223
chmod -R 777 /tests/www/$TEST_GROUP/images
2324

24-
# Disable opcache, otherwise there are issues when the config is changed in a test
25+
# Disable opcache in configuration.php, otherwise there are issues when the config is changed in a test like the SefPlugin.cy.js
2526
echo "/tests/www/$TEST_GROUP/configuration.php" > /tmp/blacklist.ini
2627
echo "opcache.blacklist_filename=/tmp/blacklist.ini" >> /etc/php/*/apache2/conf.d/10-opcache.ini
2728

@@ -43,4 +44,4 @@ if [ -z "$( ls -A '/root/.cache/Cypress' )" ]; then
4344
npx cypress verify
4445
fi
4546

46-
npx cypress run --browser=firefox --e2e --env cmsPath=/tests/www/$TEST_GROUP,db_type=$DB_ENGINE,db_host=$DB_HOST,db_password=joomla_ut,db_prefix="${TEST_GROUP}_",logFile=/var/log/apache2/error.log --config baseUrl=https://localhost/$TEST_GROUP,screenshotsFolder=$JOOMLA_BASE/tests/System/output/screenshots
47+
npx cypress run --browser=$BROWSER --e2e --env cmsPath=/tests/www/$TEST_GROUP,db_type=$DB_ENGINE,db_host=$DB_HOST,db_password=joomla_ut,db_prefix="${TEST_GROUP}_",logFile=/var/log/apache2/error.log --config baseUrl=https://localhost/$TEST_GROUP,screenshotsFolder=$JOOMLA_BASE/tests/System/output/screenshots

0 commit comments

Comments
 (0)