Skip to content

Commit c61cd33

Browse files
committed
ISSUE-338: test
1 parent 1e5b43c commit c61cd33

File tree

2 files changed

+34
-15
lines changed

2 files changed

+34
-15
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
mkdir -p build/mails
8282
chmod -R 777 output/screenshots build/mails
8383
./bin/start-selenium > output/selenium.log 2>&1 &
84-
sleep 5
84+
sleep 10
8585
sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
8686
continue-on-error: ${{ matrix.experimental }}
8787

tests/ci/behat.yml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,74 @@ default:
77
- ./features
88
contexts:
99
- FeatureContext:
10-
# Set database access credentials
1110
database:
1211
host: 127.0.0.1
1312
user: phplist
1413
password: phplist
1514
name: phplistdb
16-
# Set admin user login credentials
1715
admin:
1816
username: admin
1917
password: Mypassword123+
2018
- MailContext:
21-
mail_dir: build/mails
19+
mail_dir: build/mails
2220
- SubscriberContext
2321
- UserContext
2422
- FailAid\Context\FailureContext
2523
extensions:
2624
Behat\MinkExtension:
27-
show_cmd: 'cp %s ./output/lastResponse.html' #'cat %s'
25+
show_cmd: 'cp %s ./output/lastResponse.html'
2826
base_url: 'http://127.0.0.1'
2927
default_session: chrome
28+
javascript_session: chrome
3029
sessions:
3130
chrome:
3231
selenium2:
32+
wd_host: http://127.0.0.1:4444/wd/hub
3333
browser: chrome
3434
capabilities:
3535
browserName: chrome
36-
browser: chrome
37-
version: ""
3836
chrome:
3937
switches:
40-
- "--headless"
38+
- "--headless=new" # modern headless mode
4139
- "--disable-gpu"
42-
- "--window-size=2000,2000"
40+
- "--window-size=1920,1080"
4341
- "--lang=en"
4442
- "--no-sandbox"
45-
43+
- "--disable-dev-shm-usage"
44+
- "--disable-infobars"
45+
- "--disable-extensions"
46+
- "--disable-animations"
47+
- "--hide-scrollbars"
48+
- "--disable-popup-blocking"
49+
- "--remote-allow-origins=*"
4650
firefox:
4751
selenium2:
4852
wd_host: http://127.0.0.1:4444/wd/hub
53+
browser: firefox
4954
capabilities:
50-
browser: firefox
51-
version: ""
55+
browserName: firefox
5256
marionette: true
5357
javascript:
5458
selenium2:
55-
browser: "firefox"
5659
wd_host: http://127.0.0.1:4444/wd/hub
60+
browser: chrome
61+
capabilities:
62+
browserName: chrome
63+
chrome:
64+
switches:
65+
- "--headless=new"
66+
- "--disable-gpu"
67+
- "--window-size=1920,1080"
68+
- "--lang=en"
69+
- "--no-sandbox"
70+
- "--disable-dev-shm-usage"
71+
- "--disable-infobars"
72+
- "--disable-extensions"
73+
- "--disable-animations"
74+
- "--hide-scrollbars"
75+
- "--disable-popup-blocking"
76+
- "--remote-allow-origins=*"
77+
5778
FailAid\Extension:
5879
screenshot:
5980
directory: ./output/screenshots/
@@ -70,10 +91,8 @@ default:
7091
chrome:
7192
extensions:
7293
Behat\MinkExtension:
73-
browser_name: chrome
7494
default_session: chrome
7595
firefox:
7696
extensions:
7797
Behat\MinkExtension:
7898
default_session: firefox
79-
browser_name: firefox

0 commit comments

Comments
 (0)