[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_workshop 2 Feature: Workshop submission removal 3 In order to get rid of accidentally submitted or otherwise inappropriate contents 4 As a student and as a teacher 5 I need to be able to delete my submission, or any submission respectively 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | student1 | Sam1 | Student1 | student1@example.com | 11 | student2 | Sam2 | Student2 | student2@example.com | 12 | student3 | Sam3 | Student3 | student3@example.com | 13 | teacher1 | Terry1 | Teacher1 | teacher1@example.com | 14 And the following "courses" exist: 15 | fullname | shortname | 16 | Course1 | c1 | 17 And the following "course enrolments" exist: 18 | user | course | role | 19 | student1 | c1 | student | 20 | student2 | c1 | student | 21 | student3 | c1 | student | 22 | teacher1 | c1 | editingteacher | 23 And the following "activities" exist: 24 | activity | name | intro | course | idnumber | 25 | workshop | TestWorkshop | Test workshop description | c1 | workshop1 | 26 # Teacher sets up assessment form and changes the phase to submission. 27 And I log in as "teacher1" 28 And I follow "Course1" 29 And I edit assessment form in workshop "TestWorkshop" as:" 30 | id_description__idx_0_editor | Aspect1 | 31 | id_description__idx_1_editor | Aspect2 | 32 | id_description__idx_2_editor | | 33 And I change phase in workshop "TestWorkshop" to "Submission phase" 34 And I log out 35 # Student1 submits. 36 And I log in as "student1" 37 And I follow "Course1" 38 And I follow "TestWorkshop" 39 And I add a submission in workshop "TestWorkshop" as:" 40 | Title | Submission1 | 41 | Submission content | Some content | 42 And I log out 43 # Student2 submits. 44 And I log in as "student2" 45 And I follow "Course1" 46 And I add a submission in workshop "TestWorkshop" as:" 47 | Title | Submission2 | 48 | Submission content | Some content | 49 And I log out 50 # Teacher allocates student3 to be reviewer of student2's submission. 51 And I log in as "teacher1" 52 And I follow "Course1" 53 And I follow "TestWorkshop" 54 And I allocate submissions in workshop "TestWorkshop" as:" 55 | Participant | Reviewer | 56 | Sam2 Student2 | Sam3 Student3 | 57 And I log out 58 59 Scenario: Students can delete their submissions as long as the submissions are editable and not allocated for assessments 60 Given I log in as "student1" 61 And I follow "Course1" 62 And I follow "TestWorkshop" 63 When I follow "My submission" 64 Then I should see "Submission1" 65 And "Delete submission" "button" should exist 66 And I click on "Delete submission" "button" 67 And I should see "Are you sure you want to delete the following submission?" 68 And I should see "Submission1" 69 And I click on "Continue" "button" 70 And I should see "You have not submitted your work yet" 71 72 Scenario: Students cannot delete their submissions if the submissions are not editable 73 Given I log in as "teacher1" 74 And I follow "Course1" 75 And I follow "TestWorkshop" 76 And I change phase in workshop "TestWorkshop" to "Closed" 77 And I log out 78 And I log in as "student1" 79 And I follow "Course1" 80 And I follow "TestWorkshop" 81 When I follow "My submission" 82 Then I should see "Submission1" 83 And "Delete submission" "button" should not exist 84 85 Scenario: Students cannot delete their submissions if the submissions are allocated for assessments 86 Given I log in as "student2" 87 And I follow "Course1" 88 And I follow "TestWorkshop" 89 When I follow "My submission" 90 Then I should see "Submission2" 91 And "Delete submission" "button" should not exist 92 93 Scenario: Teachers can delete submissions even if the submissions are allocated for assessments. 94 Given I log in as "teacher1" 95 And I follow "Course1" 96 And I follow "TestWorkshop" 97 And "Submission1" "link" should exist 98 And "Submission2" "link" should exist 99 When I follow "Submission2" 100 Then "Delete submission" "button" should exist 101 And I click on "Delete submission" "button" 102 And I should see "Are you sure you want to delete the following submission?" 103 And I should see "Note this will also delete 1 assessments associated with this submission, which may affect the reviewers' grades." 104 And I click on "Continue" "button" 105 And "Submission1" "link" should exist 106 And "Submission2" "link" should not exist
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |