Minor - Add create user via CSV behat test

- Change default file_path to the root to get csv temp files
pull/2458/head
jmontoyaa 8 years ago
parent 0cdf70ffcf
commit b03dcbaa9d
  1. 2
      tests/behat/behat.yml
  2. 11
      tests/behat/features/createUserViaCSV.feature
  3. 2
      tests/behat/features/toolDocument.feature
  4. 2
      tests/behat/features/toolGroup.feature
  5. 4
      tests/behat/features/toolWork.feature

@ -9,7 +9,7 @@ default:
browser: chrome browser: chrome
default_session: selenium2 default_session: selenium2
javascript_session: selenium2 javascript_session: selenium2
files_path: "%paths.base%/../../web/" files_path: "%paths.base%/../../"
suites: suites:
default: default:
paths: ["%paths.base%/features"] paths: ["%paths.base%/features"]

@ -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"

@ -38,7 +38,7 @@ Feature: Document tool
Given I am on "/main/document/upload.php?cidReq=TEMP" Given I am on "/main/document/upload.php?cidReq=TEMP"
Then I should see "Upload documents" Then I should see "Upload documents"
Then I follow "Upload (Simple)" 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" When I press "Upload file"
And wait for the page to be loaded And wait for the page to be loaded
Then I should see "File upload succeeded" Then I should see "File upload succeeded"

@ -62,7 +62,7 @@ Feature: Group tool
Then I follow "My folder in group" Then I follow "My folder in group"
Then I follow "Upload documents" Then I follow "Upload documents"
Then I follow "Upload (Simple)" 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 wait for the page to be loaded
Then I press "upload_submitDocument" Then I press "upload_submitDocument"
Then wait for the page to be loaded Then wait for the page to be loaded

@ -35,7 +35,7 @@ Feature: Work tool
Then I should see "Upload a document" Then I should see "Upload a document"
Then I follow "Upload (Simple)" Then I follow "Upload (Simple)"
Then I should see "File extension" 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 I press "Upload"
And wait for the page to be loaded And wait for the page to be loaded
Then I should see "The file has been added to the list of publications" 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 # And wait for the page to be loaded
# Then I follow "Correct and rate" # Then I follow "Correct and rate"
# Then I fill in ckeditor field "comment" with "This is a comment" # 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" # And I press "Send message"
# Then I should see "You comment has been added" # Then I should see "You comment has been added"
# And I should see "Update successful" # And I should see "Update successful"
Loading…
Cancel
Save