Skip to content
Snippets Groups Projects
Commit e31bbc56 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Added Behat tests.

parent cecda58f
Branches
Tags
No related merge requests found
...@@ -4,6 +4,10 @@ moodle-auth_ldap_syncplus ...@@ -4,6 +4,10 @@ moodle-auth_ldap_syncplus
Changes Changes
------- -------
### Unreleased
* 2020-02-26 - Added Behat tests.
### v3.8-r1 ### v3.8-r1
* 2020-02-19 - Adopt code changes Moodle 3.8 core auth_ldap. * 2020-02-19 - Adopt code changes Moodle 3.8 core auth_ldap.
......
@auth @auth_ldap_syncplus
Feature: Checking that all settings are shown
In order to be able to configure the auth_ldap_syncplus plugin
As admin
I need to be able to see the equivalent settings
# This is the only check that is possible to do with Behat tests. The functionality behind cannot be tested with Behat tests.
Scenario: Check if all LDAP server (Sync Plus) settings are there
Given I log in as "admin"
And I navigate to "Plugins > Authentication > Manage authentication" in site administration
And I click on "Settings" "link" in the "LDAP server (Sync Plus)" "table_row"
Then I should see "LDAP server (Sync Plus)" in the "#region-main .settingsform" "css_element"
And the "Removed ext user" select box should contain "Suspend internal and fully delete internal after grace period"
And I should see "Fully deleting grace period" in the "#admin-removeuser_graceperiod" "css_element"
And I should see "Add new users" in the "#admin-sync_script_createuser_enabled" "css_element"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment