Skip to content

Commit

Permalink
e2e-test modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
msyk committed Dec 24, 2023
1 parent db7f68e commit 79bf18a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/e2e-test-chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,22 @@ jobs:
echo "\$followingTimezones = true;" >> params.php
echo "" >> params.php
- name: Modify params.php file for clinet-sync
run: |
GHPORTNUM=`expr 33451 + \`echo -n ${{ matrix.php-versions }} | sed -e "s/\.//g"\``
echo "" >> params.php
echo "$notUseServiceServer = false;" >> params.php
echo "$activateClientService = true; " >> params.php
echo "$serviceServerProtocol = \"ws\";" >> params.php
echo "$serviceServerHost = \"localhost\";" >> params.php
echo "$serviceServerPort = \"${GHPORTNUM}\";" >> params.php
echo "$serviceServerConnect = \"http://localhost\";" >> params.php
echo "$bootWithInstalledNode = false;" >> params.php
echo "$preventSSAutoBoot = false;" >> params.php
echo "$backSeconds = 3600 * 24 * 2;" >> params.php
echo "$foreverLog = '/tmp/nodemon.log';" >> params.php
echo "" >> params.php
# E2E test with WebdriverIO
- name: Setup Headless Chrome
uses: browser-actions/setup-chrome@v1
Expand All @@ -110,23 +126,8 @@ jobs:
- name: Starting End-to-End Tests with Google Chrome
run: cd spec/run;npx wdio wdio-chrome.conf.js

- name: Modify params.php file for clinet-sync
run: |
GHPORTNUM=`expr 33451 + \`echo -n ${{ matrix.php-versions }} | sed -e "s/\.//g"\``
echo "" >> params.php
echo "$notUseServiceServer = false;" >> params.php
echo "$activateClientService = true; " >> params.php
echo "$serviceServerProtocol = \"ws\";" >> params.php
echo "$serviceServerHost = \"localhost\";" >> params.php
echo "$serviceServerPort = \"${GHPORTNUM}\";" >> params.php
echo "$serviceServerConnect = \"http://localhost\";" >> params.php
echo "$bootWithInstalledNode = false;" >> params.php
echo "$preventSSAutoBoot = false;" >> params.php
echo "$backSeconds = 3600 * 24 * 2;" >> params.php
echo "$foreverLog = '/tmp/nodemon.log';" >> params.php
echo "" >> params.php
- name: Starting End-to-End Tests about Clinet Synchronization with Google Chrome
run: cd spec/run;npx wdio wdio-sync-chrome.conf.js
#
# - name: Starting End-to-End Tests about Clinet Synchronization with Google Chrome
# run: cd spec/run;npx wdio wdio-sync-chrome.conf.js


3 changes: 3 additions & 0 deletions spec/run/wdio-chrome.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ exports.config = {
// './test/specs/search_page_mysql.e2e.js',
// './test/specs/search_page_postgresql.e2e.js',
// './test/specs/search_page_sqlite.e2e.js',
'./test/specs/sync_mysql.e2e.js',
// './test/specs/sync_postgresql.e2e.js',
//'./test/specs/sync_sqlite.e2e.js',
],
// Patterns to exclude.
exclude: [],
Expand Down

0 comments on commit 79bf18a

Please sign in to comment.