File tree 2 files changed +11
-7
lines changed 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 18
18
experimental : true
19
19
20
20
steps :
21
- - uses : actions/checkout@v3
21
+ - uses : actions/checkout@v4
22
22
23
23
- name : Set up PHP ${{ matrix.php-version }}
24
24
uses : shivammathur/setup-php@v2
@@ -75,13 +75,19 @@ jobs:
75
75
76
76
- name : Start Test Server
77
77
run : |
78
+ sudo apt-get install -y jq
78
79
cp -fv tests/ci/behat.yml tests/behat.yml
79
80
cp -fv tests/ci/config.php public_html/lists/config/config.php
80
81
mkdir -p output/screenshots
81
82
mkdir -p build/mails
82
83
chmod -R 777 output/screenshots build/mails
83
- ./bin/start-selenium > output/selenium.log 2>&1 &
84
- sleep 5
84
+ docker run -d -p 4444:4444 selenium/standalone-chrome:latest
85
+
86
+ # Wait until Selenium server reports "ready":true
87
+ until [ "$(curl --silent --fail http://localhost:4444/wd/hub/status | jq -r '.value.ready')" = "true" ]; do
88
+ echo 'Waiting for Selenium to start...'
89
+ sleep 2
90
+ done
85
91
sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
86
92
continue-on-error : ${{ matrix.experimental }}
87
93
Original file line number Diff line number Diff line change 3
3
require __DIR__ .'/bootstrap.php ' ;
4
4
5
5
use Behat \Behat \Context \Context ;
6
- use Behat \Gherkin \Node \TableNode ;
7
6
use Behat \Gherkin \Node \PyStringNode ;
8
7
use Behat \Behat \Hook \Scope \BeforeScenarioScope ;
9
8
@@ -25,10 +24,9 @@ public function beforeScenario(BeforeScenarioScope $scope)
25
24
26
25
/**
27
26
* @param string $list
28
- * @param array $table
29
- *
30
- * @Given /I have "(.*)" list with the following subscribers:/
27
+ * @param PyStringNode $stringNode
31
28
* @throws Exception
29
+ * @Given /I have "(.*)" list with the following subscribers:/
32
30
*/
33
31
public function iHaveSubscribersForList ($ list , PyStringNode $ stringNode )
34
32
{
You can’t perform that action at this time.
0 commit comments