Skip to content

Commit cefd873

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

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-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 15
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: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ 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+
@@ -24,7 +22,7 @@ default:
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
3028
sessions:
@@ -35,6 +33,11 @@ default:
3533
browserName: chrome
3634
browser: chrome
3735
version: ""
36+
extra_capabilities:
37+
timeouts:
38+
implicit: 10000 # 5 seconds for implicit waits
39+
pageLoad: 60000 # 30 seconds for page loads
40+
script: 60000 # 30 seconds for async scripts
3841
chrome:
3942
switches:
4043
- "--headless"

tests/features/managing-campaigns/newcampaign.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ Feature: Create new campaign
99
Given I follow "Campaigns"
1010
Given I follow "Send a campaign"
1111
Given I follow "Start a new campaign"
12-
Then I should see "Campaign subject"
12+
Then I must see "Campaign subject"
1313
When I fill in "subject" with "This is a test subject"
1414
And I fill in "fromfield" with "From me [email protected]"
1515
And I fill in "sendmethod" with "inputhere"
1616
And I fill in "message" with "This is the Content of the Campaign"
1717
And I fill in "footer" with "This is the Footer of the campaign"
1818
And I fill in "campaigntitle" with "This is the Title of the Campaign"
1919
And I press "Save and continue editing"
20-
Then I should see "This is the Content of the Campaign"
20+
Then I must see "This is the Content of the Campaign"
2121
When I follow "Scheduling"
22-
Then I should see "Embargoed Until"
22+
Then I must see "Embargoed Until"
2323
When I follow "Lists"
24-
Then I should see "Please select the lists you want to send your campaign to"
25-
And I should see "All Lists"
24+
Then I must see "Please select the lists you want to send your campaign to"
25+
And I must see "All Lists"
2626
When I check "targetlist[all]"
2727
And I press "Save and continue editing"
28-
Then I should see "selected"
28+
Then I must see "selected"
2929
When I follow "Finish"
3030
And I press "send"
31-
Then I should see "Campaign queued"
31+
Then I must see "Campaign queued"
3232

3333
# Switch to using a scenario outline that tests subaccounts also
3434
Scenario: Select a list to send the campaign to

tests/features/managing-subscribers/newsubscriber.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Feature: Create a new subscriber
88
Given I follow "Subscribers"
99
Given I follow "Search subscribers"
1010
Given I follow "Add a subscriber"
11-
Then I should see "Email address"
11+
Then I must see "Email address"
1212
When I fill in "email" with an email address
1313
And I press "change"
14-
Then I should see "subscriber profile"
15-
Then I should see "Add to blacklist"
14+
Then I must see "subscriber profile"
15+
Then I must see "Add to blacklist"
1616
And I follow "Search subscribers"
17-
Then I should see the email address I entered
17+
Then I must see the email address I entered

0 commit comments

Comments
 (0)