From 3a0c0488d55658cbae80c1f97b9f54f612e960ab Mon Sep 17 00:00:00 2001 From: rtschu Date: Mon, 27 Apr 2020 23:56:44 +0200 Subject: [PATCH] rewrote tests to work with previous master merge --- block_evasys_sync.php | 2 +- tests/behat/fulltest.feature | 3720 ++++++++++++++++++++-------- tests/behat/generator/generator.py | 5 +- tests/behat/generator/steps.py | 2 +- 4 files changed, 2631 insertions(+), 1098 deletions(-) diff --git a/block_evasys_sync.php b/block_evasys_sync.php index dbd293f..9be99b0 100644 --- a/block_evasys_sync.php +++ b/block_evasys_sync.php @@ -83,13 +83,13 @@ public function get_content() { if ($ismodeautomated) { $this->page->requires->js_call_amd('block_evasys_sync/invite_manager', 'init'); } else { - $categoryhasstandardtime = \block_evasys_sync\evasys_synchronizer::get_standard_timemode($this->page->course->category); // Only use standardtime js if no record exists. if (!$record) { $this->page->requires->js_call_amd('block_evasys_sync/standardtime', 'init'); } } + $categoryhasstandardtime = \block_evasys_sync\evasys_synchronizer::get_standard_timemode($this->page->course->category); $evasyssynchronizer = new \block_evasys_sync\evasys_synchronizer($this->page->course->id); try { $evasyscourses = $evasyssynchronizer->get_courses_from_lsf(); diff --git a/tests/behat/fulltest.feature b/tests/behat/fulltest.feature index 3a73bab..b4f9d36 100644 --- a/tests/behat/fulltest.feature +++ b/tests/behat/fulltest.feature @@ -17,13 +17,13 @@ Feature: Tests all use-cases of the Evasys-block And I am on "Course 1" course homepage Scenario: If there are no related evasys-courses I should not see any. - Given category 1 is in manual mode + Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 And no courses are mapped to course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -35,91 +35,14 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none - If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning - Given category 1 is in manual mode - And category 1 is not in standardtime mode - And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none - If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning - Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 - And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none - If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning - Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 - And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to false - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning - Given category 1 is in manual mode + Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" + And the internal state of course C1 is "manual" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block @@ -127,131 +50,51 @@ Feature: Tests all use-cases of the Evasys-block And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none - If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning - Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 - And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none - If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning - Given category 1 is in auto mode - And category 1 is not in standardtime mode - And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - If there are invalid mappings I should see a warning - Given category 1 is in auto mode - And category 1 is not in standardtime mode - And only tutors enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it @@ -264,14 +107,13 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -279,12 +121,11 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set @@ -293,10 +134,10 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it @@ -316,7 +157,6 @@ Feature: Tests all use-cases of the Evasys-block And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -530,7 +370,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a mixed Evasyscourse And there are 1 mixed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -602,8 +442,8 @@ Feature: Tests all use-cases of the Evasys-block And only tutors enrolled in course C1 And the idnumber of course C1 links to a mixed Evasyscourse And there are 1 mixed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -626,7 +466,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -648,8 +488,8 @@ Feature: Tests all use-cases of the Evasys-block And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -672,7 +512,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -697,7 +537,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -722,7 +562,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -744,7 +584,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -768,7 +608,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a closed Evasyscourse And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -790,7 +630,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -814,7 +654,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -831,7 +671,7 @@ Feature: Tests all use-cases of the Evasys-block This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 @@ -841,8 +681,9 @@ Feature: Tests all use-cases of the Evasys-block And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -855,7 +696,7 @@ Feature: Tests all use-cases of the Evasys-block If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 @@ -865,8 +706,9 @@ Feature: Tests all use-cases of the Evasys-block And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -877,7 +719,7 @@ Feature: Tests all use-cases of the Evasys-block This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 @@ -887,9 +729,8 @@ Feature: Tests all use-cases of the Evasys-block And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And both selectors should be disabled And I should see a button named "Request evaluation" - And I should see "Alter evaluationperiod for special courses" + And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -902,7 +743,7 @@ Feature: Tests all use-cases of the Evasys-block If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 @@ -912,9 +753,8 @@ Feature: Tests all use-cases of the Evasys-block And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And both selectors should be disabled And I should see a button named "Request evaluation" - And I should see "Alter evaluationperiod for special courses" + And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -972,92 +812,76 @@ Feature: Tests all use-cases of the Evasys-block If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none If there are inconsistent modes I should see a warning - Given category 1 is in manual mode + Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And no courses are mapped to course C1 + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on + And no courses are mapped to course C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none - If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" + And no courses are mapped to course C1 + And the internal state of course C1 is "manual" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" + And both selectors should be disabled And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none - If there are inconsistent modes I should see a warning - Given category 1 is in manual mode + Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 + And no courses are mapped to course C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on @@ -1065,132 +889,144 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" + And both selectors should be disabled And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none - If there are inconsistent modes I should see a warning - Given category 1 is in auto mode + Given category 1 is in manual mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And no courses are mapped to course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Request evaluation" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And no courses are mapped to course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" + And I should see a button named "Request evaluation" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none + If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning - Given category 1 is in manual mode + Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And only invalid mappings are present for course C1 + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - Given category 1 is in auto mode + If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning + Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And only invalid mappings are present for course C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + Then I should see "This evaluation was already started in another mode" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none + If there are invalid mappings I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 + And only invalid mappings are present for course C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And no courses are mapped to course C1 + And only invalid mappings are present for course C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -1199,11 +1035,12 @@ Feature: Tests all use-cases of the Evasys-block If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And no courses are mapped to course C1 + And only invalid mappings are present for course C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on @@ -1211,8 +1048,9 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -1221,12 +1059,12 @@ Feature: Tests all use-cases of the Evasys-block If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those + If there are invalid mappings I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 + And only invalid mappings are present for course C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on @@ -1234,24 +1072,23 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on @@ -1259,24 +1096,24 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on @@ -1284,24 +1121,24 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on @@ -1309,24 +1146,24 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on @@ -1334,146 +1171,146 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning - Given category 1 is in manual mode + If there are any mapped courses I should see those + Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" And both selectors should be disabled And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning - Given category 1 is in auto mode + If there are any mapped courses I should see those + Given category 1 is in manual mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" And both selectors should be disabled And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on @@ -1481,21 +1318,21 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 @@ -1506,9 +1343,8 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And both selectors should be disabled And I should see a button named "Request evaluation" - And I should see "Alter evaluationperiod for special courses" + And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -1543,22 +1379,21 @@ Feature: Tests all use-cases of the Evasys-block If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled - And I should see a button named "Request evaluation" + Then I should see "This evaluation was already started in another mode" And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" @@ -1569,80 +1404,109 @@ Feature: Tests all use-cases of the Evasys-block This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse + And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled - And I should see a button named "Request evaluation" + Then I should see "This evaluation was already started in another mode" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning + Given category 1 is in manual mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode - And students enrolled in course C1 + And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 - And students enrolled in course C1 + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 - And students enrolled in course C1 + And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" + And the internal state of course C1 is "closed" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block @@ -1651,20 +1515,22 @@ Feature: Tests all use-cases of the Evasys-block Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning - Given category 1 is in manual mode + Given category 1 is in auto mode And category 1 is not in standardtime mode - And students enrolled in course C1 + And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" + And the internal state of course C1 is "manual" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block @@ -1673,73 +1539,163 @@ Feature: Tests all use-cases of the Evasys-block Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode - And students enrolled in course C1 + And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" + And both selectors should be disabled And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 - And students enrolled in course C1 + And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" + And both selectors should be disabled + And I should see a button named "Request evaluation" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in manual mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see a button named "Request evaluation" And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none + If there are invalid mappings I should see a warning + Given category 1 is in manual mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Request evaluation" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning + Given category 1 is in manual mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And only invalid mappings are present for course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + Then I should see "This evaluation was already started in another mode" + And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it @@ -1750,13 +1706,12 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -1768,13 +1723,31 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are invalid mappings I should see a warning + Given category 1 is in manual mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Request evaluation" And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -1793,7 +1766,6 @@ Feature: Tests all use-cases of the Evasys-block And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -2043,7 +2015,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a mixed Evasyscourse And there are 1 mixed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2107,7 +2079,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a mixed Evasyscourse And there are 1 mixed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2126,8 +2098,8 @@ Feature: Tests all use-cases of the Evasys-block And students enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2147,7 +2119,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2167,7 +2139,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2189,7 +2161,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2211,7 +2183,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2230,7 +2202,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2252,7 +2224,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2272,7 +2244,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2293,7 +2265,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a closed Evasyscourse And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2312,7 +2284,7 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2333,7 +2305,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a closed Evasyscourse And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2345,46 +2317,46 @@ Feature: Tests all use-cases of the Evasys-block And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 - And there is no idnumber mapped to course C1 - And there are 1 open Evasyscourses mapped to course with shortname C1 + And the idnumber of course C1 links to a mixed Evasyscourse + And there are 2 mixed Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the submitbutton should be enabled + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse - And there are 1 open Evasyscourses mapped to course with shortname C1 + And there are 2 open Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the submitbutton should be enabled + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are any mapped courses I should see those @@ -2409,7 +2381,7 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none + This should be valid regardless of mapped courses being set to one or none Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 @@ -2434,14 +2406,14 @@ Feature: Tests all use-cases of the Evasys-block And category 1 is not in standardtime mode And students enrolled in course C1 And there is no idnumber mapped to course C1 - And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And both selectors should be disabled + And the submitbutton should be enabled And I should see a button named "Request evaluation" And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" @@ -2455,15 +2427,15 @@ Feature: Tests all use-cases of the Evasys-block Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse - And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And both selectors should be disabled + And the submitbutton should be enabled And I should see a button named "Request evaluation" And I should not see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" @@ -2471,252 +2443,244 @@ Feature: Tests all use-cases of the Evasys-block And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 2 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" + And both selectors should be disabled + And I should see a button named "Request evaluation" + And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" - And I should see "DynamicSurvey1" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning + If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those - If there are inconsistent modes I should see a warning + This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And both selectors should be disabled + And I should see a button named "Request evaluation" + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an invalid idnumber I should see a warning + If there are inconsistent modes I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 2 mixed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And no courses are mapped to course C1 + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one or none If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And no courses are mapped to course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 2 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And no courses are mapped to course C1 + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one or none - If there are inconsistent modes I should see a warning - Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + Given category 1 is in auto mode + And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 + And no courses are mapped to course C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none - If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to false + And no courses are mapped to course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" + And both selectors should be disabled + And I should see a button named "Request evaluation" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none - If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to false + And no courses are mapped to course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" + And I should see a button named "Request evaluation" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none + If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 + And only invalid mappings are present for course C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none + If there are invalid mappings I should see a warning If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And only invalid mappings are present for course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And no courses are mapped to course C1 + And only invalid mappings are present for course C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And I should not see "Alter evaluationperiod for special courses" + Then I should see "One of the dynamically mapped evasys-courses is invalid" And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And no courses are mapped to course C1 + And only invalid mappings are present for course C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And I should not see "Alter evaluationperiod for special courses" + Then I should see "One of the dynamically mapped evasys-courses is invalid" And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid - And no courses are mapped to course C1 + And only invalid mappings are present for course C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on @@ -2724,42 +2688,41 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning If there are invalid mappings I should see a warning - If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" Then I should see "One of the dynamically mapped evasys-courses is invalid" - Then I should see "This evaluation was already started in another mode" - And I should see "Alter evaluationperiod for special courses" + And I should see a button named "Request evaluation" And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on @@ -2767,43 +2730,43 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to false + And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to false And I turn editing mode on @@ -2811,162 +2774,99 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning - If there are surveys that don't match the internal state I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning - If there are surveys that don't match the internal state I should see a warning Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are inconsistent modes I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning - Given category 1 is in manual mode - And category 1 is not in standardtime mode - And students enrolled in course C1 - And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning - Given category 1 is in auto mode - And category 1 is not in standardtime mode - And students enrolled in course C1 - And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" - - Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning - Given category 1 is in manual mode - And category 1 is not in standardtime mode - And students enrolled in course C1 - And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning @@ -2977,7 +2877,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -2990,26 +2890,6 @@ Feature: Tests all use-cases of the Evasys-block And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" - Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning - If there are surveys that don't match the internal state I should see a warning - Given category 1 is in auto mode - And category 1 is not in standardtime mode - And students enrolled in course C1 - And the idnumber for course C1 is invalid - And no courses are mapped to course C1 - And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true - And I turn editing mode on - And I add the "EvaSys Sync" block - And I turn editing mode off - And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" - Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those @@ -3019,7 +2899,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber for course C1 is invalid And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -3040,7 +2920,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber for course C1 is invalid And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -3056,7 +2936,7 @@ Feature: Tests all use-cases of the Evasys-block If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 @@ -3067,9 +2947,9 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And the submitbutton should be enabled + And both selectors should be disabled And I should see a button named "Request evaluation" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" @@ -3077,9 +2957,8 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 + And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 @@ -3090,9 +2969,9 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And both selectors should be disabled + And the submitbutton should be enabled And I should see a button named "Request evaluation" - And I should see "Alter evaluationperiod for special courses" + And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" @@ -3122,180 +3001,241 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "manual" + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should see "Evaluation has been requested" - And the submitbutton should be enabled - And I should not see "Alter evaluationperiod for special courses" + Then I should see "This evaluation was already started in another mode" + And I should see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning - Given category 1 is in auto mode - And category 1 is not in standardtime mode + If there are inconsistent modes I should see a warning + Given category 1 is in manual mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse + And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "closed" + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled - And I should not see "Alter evaluationperiod for special courses" + Then I should see "This evaluation was already started in another mode" + And I should see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse + And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "manual" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled + Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning - If there are surveys that don't match the internal state I should see a warning - Given category 1 is in auto mode + If there are inconsistent modes I should see a warning + Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 - And there is no idnumber mapped to course C1 + And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled + Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" + And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning + If there are surveys that don't match the internal state I should see a warning Given category 1 is in manual mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And the submitbutton should be enabled - And I should see a button named "Request evaluation" + Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course - This should be valid regardless of idnumber being set to one or none If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning + If there are surveys that don't match the internal state I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled - And I should see a button named "Request evaluation" - And I should see "Alter evaluationperiod for special courses" + Then I should see "This evaluation was already started in another mode" + And I should not see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning + If there are inconsistent modes I should see a warning Given category 1 is in manual mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse + And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled - And I should see a button named "Request evaluation" + Then I should see "This evaluation was already started in another mode" And I should not see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning + If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning - Given category 1 is in manual mode - And category 1 is in standardtime mode with dates 1581043586 1582043586 - And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid + If there are inconsistent modes I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled - And I should see a button named "Request evaluation" - And I should see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." - And I should not see "IdnumberSurvey" + Then I should see "This evaluation was already started in another mode" + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in manual mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "Evaluation has been requested" + And the submitbutton should be enabled + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in manual mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "manual" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning Given category 1 is in manual mode And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 - And the idnumber for course C1 is invalid + And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set @@ -3303,34 +3243,52 @@ Feature: Tests all use-cases of the Evasys-block And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" Then I should see "One of the dynamically mapped evasys-courses is invalid" And both selectors should be disabled And I should see a button named "Request evaluation" And I should see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" + And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it - If there are only tutors I should see a warning - This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning - Given category 1 is in auto mode + Given category 1 is in manual mode And category 1 is not in standardtime mode - And only tutors enrolled in course C1 + And students enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And the startselector should be disabled + And the submitbutton should be enabled + And I should see a button named "Request evaluation" + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in manual mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Request evaluation" And I should not see "Alter evaluationperiod for special courses" - And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -3345,14 +3303,13 @@ Feature: Tests all use-cases of the Evasys-block And there is no idnumber mapped to course C1 And only invalid mappings are present for course C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" And the startselector should be disabled - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -3373,7 +3330,6 @@ Feature: Tests all use-cases of the Evasys-block And I turn editing mode off And I load the evasys block Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -3395,7 +3351,7 @@ Feature: Tests all use-cases of the Evasys-block And I load the evasys block And both selectors should be disabled And I should see a button named "Set evaluation period" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3420,7 +3376,7 @@ Feature: Tests all use-cases of the Evasys-block And I load the evasys block And both selectors should be disabled And I should see a button named "Set evaluation period" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3431,10 +3387,10 @@ Feature: Tests all use-cases of the Evasys-block This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 - And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on @@ -3443,8 +3399,7 @@ Feature: Tests all use-cases of the Evasys-block And I load the evasys block And both selectors should be disabled And I should see a button named "Set evaluation period" - And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3457,10 +3412,10 @@ Feature: Tests all use-cases of the Evasys-block If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse - And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on @@ -3469,8 +3424,7 @@ Feature: Tests all use-cases of the Evasys-block And I load the evasys block And both selectors should be disabled And I should see a button named "Set evaluation period" - And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3481,17 +3435,18 @@ Feature: Tests all use-cases of the Evasys-block This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the startselector should be disabled + And both selectors should be disabled + And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" @@ -3505,17 +3460,18 @@ Feature: Tests all use-cases of the Evasys-block If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the startselector should be disabled + And both selectors should be disabled + And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" @@ -3526,20 +3482,19 @@ Feature: Tests all use-cases of the Evasys-block If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those - If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 - And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the startselector should be disabled - And I should see "There are some closed surveys, but all surveys should be open." + And both selectors should be disabled + And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" @@ -3552,20 +3507,19 @@ Feature: Tests all use-cases of the Evasys-block If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none - If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse - And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the startselector should be disabled - And I should see "There are some closed surveys, but all surveys should be open." + And both selectors should be disabled + And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" @@ -3576,20 +3530,21 @@ Feature: Tests all use-cases of the Evasys-block If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those - If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "closed" + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "There are some open surveys, but all surveys should be closed." - And I should not see "Alter evaluationperiod for special courses" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3601,20 +3556,21 @@ Feature: Tests all use-cases of the Evasys-block If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none - If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "closed" + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "There are some open surveys, but all surveys should be closed." - And I should not see "Alter evaluationperiod for special courses" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3625,18 +3581,20 @@ Feature: Tests all use-cases of the Evasys-block This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 - And there are 1 open Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + And both selectors should be disabled And I should see a button named "Set evaluation period" - And I should not see "Alter evaluationperiod for special courses" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3649,18 +3607,20 @@ Feature: Tests all use-cases of the Evasys-block If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And there are 1 open Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + And both selectors should be disabled And I should see a button named "Set evaluation period" - And I should not see "Alter evaluationperiod for special courses" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3671,16 +3631,17 @@ Feature: Tests all use-cases of the Evasys-block This should be valid regardless of number of students being set to onlytutors or none If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 closed Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + And both selectors should be disabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" @@ -3696,16 +3657,17 @@ Feature: Tests all use-cases of the Evasys-block If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber of course C1 links to a closed Evasyscourse And there are 1 closed Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + And both selectors should be disabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" @@ -3717,164 +3679,166 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning - If there are surveys that don't match the internal state I should see a warning + If there are any mapped courses I should see those Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And no courses are mapped to course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And the startselector should be disabled + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning + If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And the startselector should be disabled + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should not see "IdnumberSurvey" + And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And no courses are mapped to course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" + And the startselector should be disabled And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning - If there are surveys that don't match the internal state I should see a warning + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" And the startselector should be disabled And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those + If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" + And the startselector should be disabled + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning + If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And both selectors should be disabled - And I should see a button named "Set evaluation period" + And the startselector should be disabled + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should not see "IdnumberSurvey" + And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those + If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And both selectors should be disabled - And I should see a button named "Set evaluation period" - And I should see "There are some closed surveys, but all surveys should be open." + And I should see "There are some open surveys, but all surveys should be closed." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" @@ -3884,49 +3848,45 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning + If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And the startselector should be disabled - And I should see "There are some closed surveys, but all surveys should be open." + And I should see "There are some open surveys, but all surveys should be closed." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should not see "IdnumberSurvey" + And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid + And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And I should see "There are some open surveys, but all surveys should be closed." - And I should not see "Alter evaluationperiod for special courses" + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -3935,12 +3895,13 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning + If there is an idnumber I should see this evasys-course If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid + And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set @@ -3948,33 +3909,29 @@ Feature: Tests all use-cases of the Evasys-block And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" And I should see a button named "Set evaluation period" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should not see "IdnumberSurvey" + And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" And I should see a button named "Set evaluation period" - And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should not see "IdnumberSurvey" @@ -3985,166 +3942,1561 @@ Feature: Tests all use-cases of the Evasys-block If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 open Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - If there are invalid mappings I should see a warning - If there are surveys that don't match the internal state I should see a warning + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And only tutors enrolled in course C1 And the idnumber of course C1 links to a closed Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And the startselector should be disabled + And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - If there are invalid mappings I should see a warning - If there are surveys that don't match the internal state I should see a warning + If there are any mapped courses I should see those Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 - And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should see "There are some open surveys, but all surveys should be closed." + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none If there is an idnumber I should see this evasys-course - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And only invalid mappings are present for course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 And there is no internal record of course C1 And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "This course does not contain any students that can evaluate it." And I should see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are only tutors I should see a warning This should be valid regardless of number of students being set to onlytutors or none - If there is an idnumber I should see this evasys-course - If there are invalid mappings I should see a warning + If there is an invalid idnumber I should see a warning + If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And only tutors enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse - And only invalid mappings are present for course C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the idnumber for course C1 is invalid + And no courses are mapped to course C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And I should see a button named "Set evaluation period" - And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" + Then I should see "The hard linked evasys-course is invalid!" + And the startselector should be disabled And I should see "This course does not contain any students that can evaluate it." - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And no courses are mapped to course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning If there are invalid mappings I should see a warning If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode - And students enrolled in course C1 - And there is no idnumber mapped to course C1 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid And only invalid mappings are present for course C1 And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And the startselector should be disabled + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And the startselector should be disabled - And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And the startselector should be disabled + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And the startselector should be disabled + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "There are some open surveys, but all surveys should be closed." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And the startselector should be disabled + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And the startselector should be disabled + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "There are some open surveys, but all surveys should be closed." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are only tutors I should see a warning + This should be valid regardless of number of students being set to onlytutors or none + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And only tutors enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "This course does not contain any students that can evaluate it." + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are invalid mappings I should see a warning + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And only invalid mappings are present for course C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And the startselector should be disabled + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are invalid mappings I should see a warning + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And only invalid mappings are present for course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one or none + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 2 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one or none + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And the startselector should be disabled + And the submitbutton should be enabled + And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And the startselector should be disabled + And the submitbutton should be enabled + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And the startselector should be disabled + And the submitbutton should be enabled + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "opened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And the startselector should be disabled + And the submitbutton should be enabled + And I should see "There are some closed surveys, but all surveys should be open." + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "There are some open surveys, but all surveys should be closed." + And I should not see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one, multi or none + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And I should see "There are some open surveys, but all surveys should be closed." + And I should not see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 2 open Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And there is no idnumber mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are any mapped courses I should see those + This should be valid regardless of mapped courses being set to one or none + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And there are 1 open Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there are any mapped courses I should see those @@ -4153,13 +5505,12 @@ Feature: Tests all use-cases of the Evasys-block And students enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" @@ -4176,13 +5527,12 @@ Feature: Tests all use-cases of the Evasys-block And students enrolled in course C1 And the idnumber of course C1 links to a open Evasyscourse And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" @@ -4193,21 +5543,19 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And there is no idnumber mapped to course C1 And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "Evaluationperiod has been set" - And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" @@ -4217,21 +5565,19 @@ Feature: Tests all use-cases of the Evasys-block If there are any mapped courses I should see those This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber of course C1 links to a closed Evasyscourse And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "Evaluationperiod has been set" - And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" @@ -4242,15 +5588,15 @@ Feature: Tests all use-cases of the Evasys-block And category 1 is not in standardtime mode And students enrolled in course C1 And there is no idnumber mapped to course C1 - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the startselector should be disabled - And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -4263,122 +5609,163 @@ Feature: Tests all use-cases of the Evasys-block Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the idnumber of course C1 links to a closed Evasyscourse + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And the startselector should be disabled - And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it - If there are any mapped courses I should see those + If there is an invalid idnumber I should see a warning If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And there is no idnumber mapped to course C1 - And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the idnumber for course C1 is invalid + And no courses are mapped to course C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" And the startselector should be disabled - And the submitbutton should be enabled - And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an idnumber I should see this evasys-course - If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none + If there is an invalid idnumber I should see a warning If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse - And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the idnumber for course C1 is invalid + And no courses are mapped to course C1 + And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And both selectors should be disabled + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning + If there are surveys that don't match the internal state I should see a warning + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber for course C1 is invalid + And only invalid mappings are present for course C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" And the startselector should be disabled - And the submitbutton should be enabled - And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" - And I should see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it - If there are any mapped courses I should see those + If there is an invalid idnumber I should see a warning + If there are invalid mappings I should see a warning If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And there is no idnumber mapped to course C1 - And there are 1 open Evasyscourses mapped to course with shortname C1 + And the idnumber for course C1 is invalid + And only invalid mappings are present for course C1 And the internal state of course C1 is "closed" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And both selectors should be disabled + And I should not see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is not in standardtime mode + And students enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 open Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "There are some open surveys, but all surveys should be closed." - And I should not see "Alter evaluationperiod for special courses" + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an idnumber I should see this evasys-course + If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none - If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "closed" + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - And I should see "There are some open surveys, but all surveys should be closed." - And I should not see "Alter evaluationperiod for special courses" - And I should see "IdnumberSurvey" + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it + If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 - And there is no idnumber mapped to course C1 + And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" @@ -4387,40 +5774,93 @@ Feature: Tests all use-cases of the Evasys-block And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an idnumber I should see this evasys-course + If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it + If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And there is no idnumber mapped to course C1 + And the idnumber for course C1 is invalid And there are 1 closed Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should not see "IdnumberSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an invalid idnumber I should see a warning + If there are any mapped courses I should see those + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber for course C1 is invalid + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" @@ -4429,110 +5869,115 @@ Feature: Tests all use-cases of the Evasys-block And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an idnumber I should see this evasys-course + If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - This should be valid regardless of mapped courses being set to one, multi or none Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber of course C1 links to a closed Evasyscourse + And the idnumber for course C1 is invalid And there are 1 closed Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block + Then I should see "The hard linked evasys-course is invalid!" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" - And I should see "IdnumberSurvey" + And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are surveys that don't match the internal state I should see a warning + If there are any mapped courses I should see those Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And no courses are mapped to course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" And the startselector should be disabled + And the submitbutton should be enabled And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 closed Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" And the startselector should be disabled + And the submitbutton should be enabled + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning - If there are invalid mappings I should see a warning + If there are any mapped courses I should see those If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And only invalid mappings are present for course C1 + And there are 1 open Evasyscourses mapped to course with shortname C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - Then I should see "One of the dynamically mapped evasys-courses is invalid" - And both selectors should be disabled + And I should see "There are some open surveys, but all surveys should be closed." And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" - And I should not see "DynamicSurvey" + And I should see "DynamicSurvey0" + And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" - And I should not see "Alter evaluationperiod for special courses" + And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" @@ -4544,18 +5989,16 @@ Feature: Tests all use-cases of the Evasys-block And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 open Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" - And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" @@ -4565,20 +6008,20 @@ Feature: Tests all use-cases of the Evasys-block If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there are 1 closed Evasyscourses mapped to course with shortname C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And the startselector should be disabled - And the submitbutton should be enabled - And I should not see "Alter evaluationperiod for special courses" + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" And I should see "DynamicSurvey0" And I should not see "DynamicSurvey1" @@ -4586,21 +6029,19 @@ Feature: Tests all use-cases of the Evasys-block Scenario: If there is no standardtimemode I should not see the option to use it If there is an invalid idnumber I should see a warning If there are any mapped courses I should see those - If there are surveys that don't match the internal state I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 And the idnumber for course C1 is invalid And there are 1 closed Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block Then I should see "The hard linked evasys-course is invalid!" - And the startselector should be disabled - And the submitbutton should be enabled + And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should not see "IdnumberSurvey" @@ -4608,78 +6049,101 @@ Feature: Tests all use-cases of the Evasys-block And I should not see "DynamicSurvey1" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those - If there are surveys that don't match the internal state I should see a warning + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And the internal state of course C1 is "closed" + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" - And I should see "There are some open surveys, but all surveys should be closed." + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 open Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it - If there is an invalid idnumber I should see a warning - If there are any mapped courses I should see those + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning Given category 1 is in auto mode And category 1 is not in standardtime mode And students enrolled in course C1 - And the idnumber for course C1 is invalid - And there are 1 closed Evasyscourses mapped to course with shortname C1 - And there is no internal record of course C1 - And the recordstandardtimemode for course C1 is not set + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to true And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off And I load the evasys block - Then I should see "The hard linked evasys-course is invalid!" + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled And I should see a button named "Set evaluation period" And I should see "There are some closed surveys, but all surveys should be open." - And I should not see "Alter evaluationperiod for special courses" - And I should not see "IdnumberSurvey" - And I should see "DynamicSurvey0" - And I should not see "DynamicSurvey1" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning Given category 1 is in auto mode - And category 1 is not in standardtime mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 And students enrolled in course C1 - And the idnumber of course C1 links to a open Evasyscourse + And the idnumber of course C1 links to a closed Evasyscourse And only invalid mappings are present for course C1 And the internal state of course C1 is "notopened" And the recordstandardtimemode for course C1 is set to true @@ -4691,6 +6155,30 @@ Feature: Tests all use-cases of the Evasys-block And I should see "Evaluationperiod has been set" And the submitbutton should be enabled And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And the internal state of course C1 is "notopened" + And the recordstandardtimemode for course C1 is set to false + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see "Evaluationperiod has been set" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." And I should not see "Alter evaluationperiod for special courses" And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" @@ -4704,7 +6192,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a closed Evasyscourse And only invalid mappings are present for course C1 And the internal state of course C1 is "notopened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -4727,7 +6215,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -4749,7 +6237,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a closed Evasyscourse And only invalid mappings are present for course C1 And the internal state of course C1 is "opened" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -4772,7 +6260,7 @@ Feature: Tests all use-cases of the Evasys-block And the idnumber of course C1 links to a open Evasyscourse And only invalid mappings are present for course C1 And the internal state of course C1 is "closed" - And the recordstandardtimemode for course C1 is set to true + And the recordstandardtimemode for course C1 is set to false And I turn editing mode on And I add the "EvaSys Sync" block And I turn editing mode off @@ -4783,6 +6271,27 @@ Feature: Tests all use-cases of the Evasys-block And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a open Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And the submitbutton should be enabled + And I should see a button named "Set evaluation period" + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning @@ -4804,6 +6313,27 @@ Feature: Tests all use-cases of the Evasys-block And I should see "IdnumberSurvey" And I should not see "DynamicSurvey" + Scenario: If there is no standardtimemode I should not see the option to use it + If there is an idnumber I should see this evasys-course + If there are invalid mappings I should see a warning + Given category 1 is in auto mode + And category 1 is in standardtime mode with dates 1581043586 1582043586 + And students enrolled in course C1 + And the idnumber of course C1 links to a closed Evasyscourse + And only invalid mappings are present for course C1 + And there is no internal record of course C1 + And the recordstandardtimemode for course C1 is not set + And I turn editing mode on + And I add the "EvaSys Sync" block + And I turn editing mode off + And I load the evasys block + Then I should see "One of the dynamically mapped evasys-courses is invalid" + And I should see a button named "Set evaluation period" + And I should see "There are some closed surveys, but all surveys should be open." + And I should see "Alter evaluationperiod for special courses" + And I should see "IdnumberSurvey" + And I should not see "DynamicSurvey" + Scenario: If there is no standardtimemode I should not see the option to use it If there is an idnumber I should see this evasys-course If there are invalid mappings I should see a warning diff --git a/tests/behat/generator/generator.py b/tests/behat/generator/generator.py index 91adeea..1b98bcf 100644 --- a/tests/behat/generator/generator.py +++ b/tests/behat/generator/generator.py @@ -48,6 +48,8 @@ def get_checks(mode, standardtime, students_state, idnumber_state, mapped_state, This Function will take the scenario parameters and construct the resulting checks. :return: The combined checks for the parameters. """ + if not recordstandardtimemode == "norecordstandardtimemode": + standardtime = 1 if recordstandardtimemode == "recordstandardtimemode" else 0 # If there are no mapped courses the Block not offer the option to "Show surveys" if (idnumber_state == "none") and (mapped_state == "none"): return "Then I should see \"Change mapping\"\n And I should not see \"Name:\"\n " @@ -86,7 +88,8 @@ def get_checks(mode, standardtime, students_state, idnumber_state, mapped_state, checks += "And I should see \"There are some closed surveys, but all surveys should be open.\"" + "\n" # if the standardtimemodecheckbox should be present from the start we also want to check that - checks += checks_standardtimemode(standardtime, mode, internal_state, recordstandardtimemode) + "\n" + if not no_valid_mappings: + checks += checks_standardtimemode(standardtime, mode, internal_state, recordstandardtimemode) + "\n" # if there are no students that are eligible to evaluate we want to output a warning checks += student_checks[students_state] checks = checks.replace("\n", "\n ") diff --git a/tests/behat/generator/steps.py b/tests/behat/generator/steps.py index 1e60473..cff2f81 100644 --- a/tests/behat/generator/steps.py +++ b/tests/behat/generator/steps.py @@ -170,7 +170,7 @@ def checks_standardtimemode(standardtime, auto_mode, internal_state, recordstand """ if not recordstandardtimemode == "norecordstandardtimemode": standardtime = 1 if recordstandardtimemode == "recordstandardtimemode" else 0 - if standardtime == 1 and auto_mode == "manual" and (internal_state == "none" or internal_state == "notopened"): + if standardtime == 1 and (internal_state == "none" or internal_state == "notopened"): return standardtimemode_checks[1] return standardtimemode_checks[0]