From 9076d3206a523beb7d5e0cffc96961442649416f Mon Sep 17 00:00:00 2001 From: David Monllao Date: Wed, 9 Apr 2014 20:35:07 +0700 Subject: [PATCH] MDL-44616 behat: Adding steps to test MDLQA-1709 and MDLQA-62 - In an assignment with file submissions enabled, students can upload a set number of files. - In assignments with file uploading enabled the Student can use File Picker to upload files. --- mod/assign/tests/behat/file_submission.feature | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mod/assign/tests/behat/file_submission.feature b/mod/assign/tests/behat/file_submission.feature index 87256bc2878..dd4b5326cd2 100644 --- a/mod/assign/tests/behat/file_submission.feature +++ b/mod/assign/tests/behat/file_submission.feature @@ -34,14 +34,18 @@ Feature: In an assignment, students can upload files for assessment And I upload "lib/tests/fixtures/empty.txt" file to "File submissions" filemanager And I press "Save changes" Then I should see "Submitted for grading" - And I should see "empty.txt" And I should see "Not graded" + And "empty.txt" "link" should exist And I press "Edit submission" And I upload "lib/tests/fixtures/upload_users.csv" file to "File submissions" filemanager And ".ffilemanager .fm-maxfiles .fp-btn-add" "css_element" should not be visible And I press "Save changes" And I should see "Submitted for grading" - And I should see "empty.txt" - And I should see "upload_users.csv" + And "empty.txt" "link" should exist + And "upload_users.csv" "link" should exist And I press "Edit submission" And ".ffilemanager .fm-maxfiles .fp-btn-add" "css_element" should not be visible + And I delete "empty.txt" from "File submissions" filemanager + And I press "Save changes" + And "empty.txt" "link" should not exist + And "upload_users.csv" "link" should exist