-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
N21-1479 group provisioning options (#162)
* delete group folder * provisioning options page test * add post condition * add test for ldap system
- Loading branch information
1 parent
54fe773
commit ba777be
Showing
4 changed files
with
216 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# @release | ||
Feature: Admin can edit system configuration | ||
|
||
As an admin I want to be able to edit system configurations | ||
|
||
@unstable_test | ||
Scenario: As an admin i want to see my systems and edit ldap systems of provider: general | ||
Given I am logged in as a 'admin1_nbc' at 'nbc' | ||
When I go to administration page | ||
When I go to school administration | ||
When I click on authentication panel | ||
Then I see a systems table | ||
Then I see an ldap system | ||
Then I see the 'SANIS' system with an edit button | ||
When I click on the edit button of the ldap system | ||
Then I see the ldap configuration page | ||
When I go to administration page | ||
When I go to school administration | ||
When I click on authentication panel | ||
Then I see a systems table | ||
|
||
@unstable_test | ||
Scenario: As an admin i want to edit the group provisioning options of the moin.schule system | ||
Given I see a system table | ||
When I click on the edit button of the 'SANIS' system | ||
Then I see the provisioning options page | ||
Then I see 3 checkboxes with assigned default values | ||
When I check all checkboxes | ||
When I click the cancel button on the provisioning options page | ||
Then I see a systems table | ||
When I click on the edit button of the 'SANIS' system | ||
Then I see 3 checkboxes with assigned default values | ||
When I check all checkboxes | ||
When I click the save button on the provisioning options page | ||
Then I see a systems table | ||
When I click on the edit button of the 'SANIS' system | ||
Then I see all 3 checkboxes are checked | ||
When I uncheck all checkboxes | ||
When I click the save button on the provisioning options page | ||
Then I see a systems table | ||
When I click on the edit button of the 'SANIS' system | ||
Then I see all 3 checkboxes are unchecked | ||
|
||
@unstable_test | ||
Scenario: As a post-condition admin resets the provisioning options values | ||
Given I see the provisioning options page | ||
When I set the checkboxes to default values | ||
When I click the save button on the provisioning options page | ||
Then I see a systems table |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
cypress/support/step_definition/admin/administrateAuthenticationSteps.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import Management from "../../pages/admin/pageAdministration"; | ||
const { When, Then } = require('@badeball/cypress-cucumber-preprocessor'); | ||
|
||
const management = new Management() | ||
When('I click on authentication panel', () => { | ||
management.clickOnAuthenticationPanel() | ||
}) | ||
|
||
Then('I see a systems table', () => { | ||
management.seeSystemTable() | ||
}) | ||
|
||
Then('I see an ldap system', () => { | ||
management.seeLdapSystem() | ||
}) | ||
|
||
Then('I see the {string} system with an edit button', (systemName) => { | ||
management.seeSpecificSystemWithEditButton(systemName) | ||
}) | ||
|
||
When('I click on the edit button of the ldap system', () => { | ||
management.clickOnLdapEditButton() | ||
}) | ||
|
||
Then('I see the ldap configuration page', () => { | ||
management.seeLdapConfigurationPage() | ||
}) | ||
|
||
When('I click on the edit button of the {string} system', (systemName) => { | ||
management.clickOnSpecificSystemEditButton(systemName) | ||
}) | ||
|
||
Then('I see the provisioning options page', () => { | ||
management.seeProvisioningOptionsPage() | ||
}) | ||
|
||
Then('I see 3 checkboxes with assigned default values', () => { | ||
management.seeCheckboxesWithDefaultValues() | ||
}) | ||
|
||
When('I check all checkboxes', () => { | ||
management.checkAllBoxes() | ||
}) | ||
|
||
When('I click the cancel button on the provisioning options page', () => { | ||
management.clickOnProvisioningOptionsCancelButton() | ||
}) | ||
|
||
When('I click the save button on the provisioning options page', () => { | ||
management.clickOnProvisioningOptionsSaveButton() | ||
}) | ||
|
||
Then('I see all 3 checkboxes are checked', () => { | ||
management.seeAllCheckboxesAreChecked() | ||
}) | ||
|
||
When('I set the checkboxes to default values', () => { | ||
management.resetCheckboxValues() | ||
}) | ||
|
||
When('I uncheck all checkboxes', () => { | ||
management.uncheckAllBoxes() | ||
}) | ||
|
||
Then('I see all 3 checkboxes are unchecked', () => { | ||
management.seeAllCheckboxesAreUnchecked() | ||
}) |