Behat: Fix "Then I attach the file" test

pull/3064/head
Julio 5 years ago
parent a97af80518
commit af634093c0
  1. 2
      tests/behat/features/createUser.feature
  2. 2
      tests/behat/features/toolDocument.feature
  3. 2
      tests/behat/features/toolExercise.feature
  4. 2
      tests/behat/features/toolGroup.feature
  5. 2
      tests/behat/features/toolWork.feature

@ -32,7 +32,7 @@ Feature: Users management as admin
And I fill in "keyword" with "smarshall"
And I press "submit"
When I follow "Delete"
And I confirm the popup
And I press "Yes"
Then I should see "The user has been deleted"
Scenario: Create a HRM user

@ -53,7 +53,7 @@ Feature: Document tool
Given I am on "/main/document/upload.php?cid=1"
Then I should see "Upload documents"
Then I follow "Upload (Simple)"
Then I attach the file "web/css/base.css" to "file"
Then I attach the file "/public/favicon.ico" to "file"
When I press "Upload file"
And wait for the page to be loaded
Then I should see "File upload succeeded"

@ -250,7 +250,7 @@ Feature: Exercise tool
Scenario: Import exercise from excel
Given I am on "/main/exercise/upload_exercise.php?cid=1"
Then I should see "Import quiz from Excel"
Then I attach the file "/main/exercise/quiz_template.xls" to "user_upload_quiz"
Then I attach the file "/public/main/exercise/quiz_template.xls" to "user_upload_quiz"
And I press "Upload"
And wait for the page to be loaded
Then I should see "Definition of oligarchy"

@ -79,7 +79,7 @@ Feature: Group tool
Then I follow "Upload documents"
Then I follow "Upload (Simple)"
# File path is located in behat.yml
Then I attach the file "build/css/base.css" to "file"
Then I attach the file "/public/favicon.ico" to "file"
Then wait for the page to be loaded
Then I press "upload_submitDocument"
Then wait for the page to be loaded

@ -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 "web/css/base.css" to "file"
Then I attach the file "/public/favicon.ico" 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"

Loading…
Cancel
Save