Skip to content

Commit 495a305

Browse files
authored
CI: Partial Behat fixes (#6397)
1 parent a5f5f5c commit 495a305

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

tests/behat/features/adminSettings.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ Feature: Settings update
66
Scenario: Update 'profile' setting
77
Given I am a platform administrator
88
Then I am on "/main/admin/settings.php?search_field=profile&category=search_setting"
9-
And I check "Name"
10-
And I check "e-mail"
11-
And I check "Login"
9+
And I check the checkbox matching xpath "//input[@name='profile[name]']"
10+
And I check "profile[email]"
11+
And I check "profile[login]"
1212
And I check "profile[officialcode]"
13-
And I press "Save settings"
13+
And I click on the element with css selector "#settings_submit"
1414
Then I should see "Update successful"
1515

1616
Scenario: Update 'allow_registration' setting
1717
Given I am a platform administrator
1818
And I am on "/main/admin/settings.php"
1919
And I check the "allow_registration" radio button with "true" value
20-
And I press "Save settings"
20+
And I click on the element with css selector "#settings_submit"
2121
Then I should see "Update successful"
2222

2323
Scenario: Update 'allow_group_categories' setting
2424
Given I am a platform administrator
2525
And I am on "/main/admin/settings.php?search_field=allow_group_categories&category=search_setting"
2626
And I check the "allow_group_categories" radio button with "true" value
27-
And I press "Save settings"
27+
And I click on the element with css selector "#settings_submit"
2828
Then I should see "Update successful"

tests/behat/features/career.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ Feature: Career
66
Scenario: Create a Career
77
Given I am a platform administrator
88
And I am on "/main/admin/careers.php?action=add"
9-
When I fill in the following:
10-
| name | Developer |
9+
When I fill "career_name" with "Developer"
1110
And I fill in ckeditor field "description" with "Description"
1211
And I press "submit"
1312
Then I should see "Item added"

0 commit comments

Comments
 (0)