-
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.
#161 Test user import with no parameters
Add test when user import is done with no parameters given in the csv file.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
integrationTests/cypress/e2e/import_empty_parameters.feature
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,42 @@ | ||
Feature: Tests for inspecting the result details of an user import | ||
|
||
Background: | ||
Given the user "manager" exists | ||
And the user "manager" is member of the group "cesManager" | ||
And the user "manager" with password "newuserpassword1234A$" is logged in | ||
|
||
Scenario: a user selects a file for upload | ||
When the user opens the user import page | ||
And the user selects the file "userimport_keineParameter.csv" | ||
Then a table of the file content for the file "userimport_keineParameter.csv" is displayed | ||
|
||
@clean_before | ||
@clear_downloadDir | ||
Scenario: a user uploads a file | ||
When the user opens the user import page | ||
And the user uploads the file "userimport_keineParameter.csv" | ||
Then the user import page shows an import with the message "Import failed!" and the details "Skipped data rows (7)" | ||
|
||
Scenario: after uploading a file a user inspects the user import details page about the skipped accounts | ||
When the user opens the user import details page | ||
And the user clicks on the details regarding the "skipped" user import | ||
Then the table shows the error message "<message>" | ||
|
||
Examples: | ||
| message | | ||
| The following columns are required but were empty: 'displayname'. | | ||
| The following columns had an invalid data type: 'external'. | | ||
| The following columns are required but were empty: 'mail'. | | ||
| The following columns had an invalid data type: 'pwdReset'. | | ||
| The following columns are required but were empty: 'surname'. | | ||
| The following columns are required but were empty: 'username'. | | ||
| The following columns are required but were empty: 'givenname'. | | ||
|
||
Scenario: after uploading a file a user inspects the users page | ||
When the user opens the users page | ||
Then the new user " " was not added | ||
|
||
@clean_user_import | ||
Scenario: after uploading a file a user inspects the user import summaries page | ||
When the user opens the user import summaries page | ||
Then a table with the import information "New: 0, Updated: 0, Skipped: 1" regarding the file "userimport_keineParameter.csv" is shown |
2 changes: 2 additions & 0 deletions
2
integrationTests/cypress/fixtures/userimport_keineParameter.csv
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,2 @@ | ||
displayname,external,mail,pwdreset,surname,username,givenname | ||
, , , , , , |