diff --git a/tests/behat/behat.yml b/tests/behat/behat.yml index 3cf6478339..acb13beaa7 100644 --- a/tests/behat/behat.yml +++ b/tests/behat/behat.yml @@ -9,7 +9,7 @@ default: browser: chrome default_session: selenium2 javascript_session: selenium2 - files_path: "%paths.base%/../../web/" + files_path: "%paths.base%/../../" suites: default: paths: ["%paths.base%/features"] diff --git a/tests/behat/features/createUserViaCSV.feature b/tests/behat/features/createUserViaCSV.feature new file mode 100644 index 0000000000..19e1dde327 --- /dev/null +++ b/tests/behat/features/createUserViaCSV.feature @@ -0,0 +1,11 @@ +@administration +Feature: Users creation via CSV + + Scenario: Import user via CSV + Given I am a platform administrator + And I am on "/main/admin/user_import.php" + Then I attach the file "/main/admin/example.csv" to "import_file" + Then I press "Import" + Then I should see "File imported" + Then I am on "main/admin/user_list.php?keyword=drbrown@example.net" + Then I should see "emmert" diff --git a/tests/behat/features/toolDocument.feature b/tests/behat/features/toolDocument.feature index 5f70b6531f..6b67129f31 100644 --- a/tests/behat/features/toolDocument.feature +++ b/tests/behat/features/toolDocument.feature @@ -38,7 +38,7 @@ Feature: Document tool Given I am on "/main/document/upload.php?cidReq=TEMP" Then I should see "Upload documents" Then I follow "Upload (Simple)" - Then I attach the file "css/base.css" to "file" + Then I attach the file "web/css/base.css" to "file" When I press "Upload file" And wait for the page to be loaded Then I should see "File upload succeeded" diff --git a/tests/behat/features/toolGroup.feature b/tests/behat/features/toolGroup.feature index 48ea637c62..0ce67794f3 100644 --- a/tests/behat/features/toolGroup.feature +++ b/tests/behat/features/toolGroup.feature @@ -62,7 +62,7 @@ Feature: Group tool Then I follow "My folder in group" Then I follow "Upload documents" Then I follow "Upload (Simple)" - Then I attach the file "css/base.css" to "file" + Then I attach the file "web/css/base.css" to "file" Then wait for the page to be loaded Then I press "upload_submitDocument" Then wait for the page to be loaded diff --git a/tests/behat/features/toolWork.feature b/tests/behat/features/toolWork.feature index 2b28a82118..14aaba8986 100644 --- a/tests/behat/features/toolWork.feature +++ b/tests/behat/features/toolWork.feature @@ -35,7 +35,7 @@ Feature: Work tool Then I should see "Upload a document" Then I follow "Upload (Simple)" Then I should see "File extension" - Then I attach the file "css/base.css" to "file" + Then I attach the file "web/css/base.css" to "file" And I press "Upload" And wait for the page to be loaded Then I should see "The file has been added to the list of publications" @@ -59,7 +59,7 @@ Feature: Work tool # And wait for the page to be loaded # Then I follow "Correct and rate" # Then I fill in ckeditor field "comment" with "This is a comment" -# Then I attach the file "css/base.css" to "attachment" +# Then I attach the file "web/css/base.css" to "attachment" # And I press "Send message" # Then I should see "You comment has been added" # And I should see "Update successful" \ No newline at end of file