diff --git a/cypress/e2e/course/contextRestrictionOfCtlTools.feature b/cypress/e2e/course/contextRestrictionOfCtlTools.feature index 4cd8f2c5..45c70ffa 100644 --- a/cypress/e2e/course/contextRestrictionOfCtlTools.feature +++ b/cypress/e2e/course/contextRestrictionOfCtlTools.feature @@ -1,188 +1,188 @@ @unstable_test Feature: Course - Restrict CTL tools to context course, board-element, media-board - As a teacher I want add ctl tools with a certain context restriction + As a teacher I want add ctl tools with a certain context restriction - @unstable_test - Scenario: Admin creates a course and adds external tools to school - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I go to courses overview - # Pre-Test: Admin creates a course - When I click on FAB to create a new course depending on sub menu - Then I see section one area on the course create page - When I enter the course title 'Cypress Test Course' - When I select 'Karl Herzog' from field teacher - When I click on button Next Steps after entering the course detail in section one - Then I see section two area on the course create page - When I click on button Next Steps after selecting course participant details - Then I see the section three area as the finish page - When I click on button To Course Overview on the finish page - # Admin adds tools - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on external tools panel - When I click the add external tool button - When I select the tool 'CY Test Tool 1' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in external tools table - Then I see the tool 'CY Test Tool 1' in external tools table has no context restriction - When I click the add external tool button - When I select the tool 'CY Test Tool Course Restriction' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Course Restriction' in external tools table - Then I see the tool 'CY Test Tool Course Restriction' in external tools table has context restriction 'Kurs-Tools' - When I click the add external tool button - When I select the tool 'CY Test Tool Board-Element Restriction' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Board-Element Restriction' in external tools table - Then I see the tool 'CY Test Tool Board-Element Restriction' in external tools table has context restriction 'Bereiche' - When I click the add external tool button - When I select the tool 'CY Test Tool Media-Board Restriction' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Media-Board Restriction' in external tools table - Then I see the tool 'CY Test Tool Media-Board Restriction' in external tools table has context restriction 'Medienregal' - When I click the add external tool button - When I select the tool 'CY Test Tool All Restrictions' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool All Restrictions' in external tools table - Then I see the tool 'CY Test Tool All Restrictions' in external tools table has context restriction 'Kurs-Tools, Bereiche, Medienregal' - When I click the add external tool button - When I select the tool 'CY Test Tool Preferred Course Restriction' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Preferred Course Restriction' in external tools table - Then I see the tool 'CY Test Tool Preferred Course Restriction' in external tools table has context restriction 'Kurs-Tools' - When I click the add external tool button - When I select the tool 'CY Test Tool Preferred Board Restriction' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Preferred Board Restriction' in external tools table - Then I see the tool 'CY Test Tool Preferred Board Restriction' in external tools table has context restriction 'Bereiche' + @unstable_test + Scenario: Admin creates a course and adds external tools to school + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I go to courses overview + # Pre-Test: Admin creates a course + When I click on FAB to create a new course depending on sub menu + Then I see section one area on the course create page + When I enter the course title 'Cypress Test Course' + When I select 'Karl Herzog' from field teacher + When I click on button Next Steps after entering the course detail in section one + Then I see section two area on the course create page + When I click on button Next Steps after selecting course participant details + Then I see the section three area as the finish page + When I click on button To Course Overview on the finish page + # Admin adds tools + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on external tools panel + When I click the add external tool button + When I select the tool 'CY Test Tool 1' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool 1' in external tools table + Then I see the tool 'CY Test Tool 1' in external tools table has no context restriction + When I click the add external tool button + When I select the tool 'CY Test Tool Course Restriction' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Course Restriction' in external tools table + Then I see the tool 'CY Test Tool Course Restriction' in external tools table has context restriction 'Kurs-Tools' + When I click the add external tool button + When I select the tool 'CY Test Tool Board-Element Restriction' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Board-Element Restriction' in external tools table + Then I see the tool 'CY Test Tool Board-Element Restriction' in external tools table has context restriction 'Bereiche' + When I click the add external tool button + When I select the tool 'CY Test Tool Media-Board Restriction' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Media-Board Restriction' in external tools table + Then I see the tool 'CY Test Tool Media-Board Restriction' in external tools table has context restriction 'Medienregal' + When I click the add external tool button + When I select the tool 'CY Test Tool All Restrictions' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool All Restrictions' in external tools table + Then I see the tool 'CY Test Tool All Restrictions' in external tools table has context restriction 'Kurs-Tools, Bereiche, Medienregal' + When I click the add external tool button + When I select the tool 'CY Test Tool Preferred Course Restriction' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Preferred Course Restriction' in external tools table + Then I see the tool 'CY Test Tool Preferred Course Restriction' in external tools table has context restriction 'Kurs-Tools' + When I click the add external tool button + When I select the tool 'CY Test Tool Preferred Board Restriction' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Preferred Board Restriction' in external tools table + Then I see the tool 'CY Test Tool Preferred Board Restriction' in external tools table has context restriction 'Bereiche' - @unstable_test - Scenario: Teacher adds ctl tools to context course, board-element and media-board - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' - When I click on the tools tab - Then I see the button to add a tool - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - # Teacher tries to a tool with context restriction board-element - Then I do not see tool 'CY Test Tool Board-Element Restriction' in the tool selection - # Teacher tries to a tool with context restriction media-board - Then I do not see tool 'CY Test Tool Media-Board Restriction' in the tool selection - # Teacher adds a tool with context restriction course - When I select the tool 'CY Test Tool Course Restriction' from available tools - Then I see tool 'CY Test Tool Course Restriction' is selected - When I click on save external tool button - Then I see the tool 'CY Test Tool Course Restriction' in the tool overview - # Teacher adds a tool with all context restrictions - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - When I select the tool 'CY Test Tool All Restrictions' from available tools - Then I see tool 'CY Test Tool All Restrictions' is selected - When I click on save external tool button - Then I see the tool 'CY Test Tool All Restrictions' in the tool overview - # Teacher adds a tool without any context restriction - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - When I select the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected - When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in the tool overview + @unstable_test + Scenario: Teacher adds ctl tools to context course, board-element and media-board + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course' + Then I see course page 'Cypress Test Course' + When I click on the tools tab + Then I see the button to add a tool + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + # Teacher tries to a tool with context restriction board-element + Then I do not see tool 'CY Test Tool Board-Element Restriction' in the tool selection + # Teacher tries to a tool with context restriction media-board + Then I do not see tool 'CY Test Tool Media-Board Restriction' in the tool selection + # Teacher adds a tool with context restriction course + When I select the tool 'CY Test Tool Course Restriction' from available tools + Then I see tool 'CY Test Tool Course Restriction' is selected + When I click on save external tool button + Then I see the tool 'CY Test Tool Course Restriction' in the tool overview + # Teacher adds a tool with all context restrictions + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + When I select the tool 'CY Test Tool All Restrictions' from available tools + Then I see tool 'CY Test Tool All Restrictions' is selected + When I click on save external tool button + Then I see the tool 'CY Test Tool All Restrictions' in the tool overview + # Teacher adds a tool without any context restriction + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + When I select the tool 'CY Test Tool 1' from available tools + Then I see tool 'CY Test Tool 1' is selected + When I click on save external tool button + Then I see the tool 'CY Test Tool 1' in the tool overview - # Teacher adds ctl tools with context restriction board-element to a board - When I go to courses overview - When I go to course 'Cypress Test Course' - When I go to the tab contents in course detail page - When I click on FAB to create new content - When I click on the button FAB New Column Board - Then I see a dialog box for column board - Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board - When I choose multi-column board in the dialog box - Then I see the page Course Board details - Then I see the chip Draft in the course board - When I click on the button Add column in the course board - When I click on the page outside of the column - When I click on plus icon to add card in column - When I click on plus icon to add content into card - When I select external tools from the menu - When I click on the tool configuration selection - # Teacher tries to add a tool with context restriction course - Then I do not see tool 'CY Test Tool Course Restriction' in the tool selection - # Teacher tries to add a tool with context restriction media-board - Then I do not see tool 'CY Test Tool Media-Board Restriction' in the tool selection - # Teacher adds a tool with context restriction board-element - When I select the tool 'CY Test Tool Board-Element Restriction' from available tools - Then I see tool 'CY Test Tool Board-Element Restriction' is selected - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Board-Element Restriction' - # Teacher adds a tool with all context restrictions - When I click on plus icon to add card in column - When I click on plus icon to add content into card - When I select external tools from the menu - When I select the tool 'CY Test Tool All Restrictions' from available tools - Then I see tool 'CY Test Tool All Restrictions' is selected - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool All Restrictions' - # Teacher adds a tool without any context restriction - When I click on plus icon to add card in column - When I click on plus icon to add content into card - When I select external tools from the menu - When I select the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 1' - # Teacher tries to add a preferred tool with context restriction course - When I click on plus icon to add card in column - When I click on plus icon to add content into card - Then I do not see preferred tool 'CY Test Tool Preferred Course Restriction' in the menu - # Teacher adds a preferred tool with context restriction board - Then I see preferred tool 'CY Test Tool Preferred Board Restriction' in the menu - When I select preferred tool 'CY Test Tool Preferred Board Restriction' from the menu - Then I see an external tool element with tool 'CY Test Tool Preferred Board Restriction' + # Teacher adds ctl tools with context restriction board-element to a board + When I go to courses overview + When I go to course 'Cypress Test Course' + When I go to the tab contents in course detail page + When I click on FAB to create new content + When I click on the button FAB New Column Board + Then I see a dialog box for column board + Then I see in dialog box option for multi-column board + Then I see in dialog box option for single-column board + When I choose multi-column board in the dialog box + Then I see the page Course Board details + Then I see the chip Draft in the course board + When I click on the button Add column in the course board + When I click on the page outside of the column + When I click on plus icon to add card in column + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I click on the tool configuration selection + # Teacher tries to add a tool with context restriction course + Then I do not see tool 'CY Test Tool Course Restriction' in the tool selection + # Teacher tries to add a tool with context restriction media-board + Then I do not see tool 'CY Test Tool Media-Board Restriction' in the tool selection + # Teacher adds a tool with context restriction board-element + When I select the tool 'CY Test Tool Board-Element Restriction' from available tools + Then I see tool 'CY Test Tool Board-Element Restriction' is selected + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool Board-Element Restriction' + # Teacher adds a tool with all context restrictions + When I click on plus icon to add card in column + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I select the tool 'CY Test Tool All Restrictions' from available tools + Then I see tool 'CY Test Tool All Restrictions' is selected + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool All Restrictions' + # Teacher adds a tool without any context restriction + When I click on plus icon to add card in column + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I select the tool 'CY Test Tool 1' from available tools + Then I see tool 'CY Test Tool 1' is selected + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool 1' + # Teacher tries to add a preferred tool with context restriction course + When I click on plus icon to add card in column + When I click on plus icon to add content into card + Then I do not see preferred tool 'CY Test Tool Preferred Course Restriction' in the menu + # Teacher adds a preferred tool with context restriction board + Then I see preferred tool 'CY Test Tool Preferred Board Restriction' in the menu + When I select preferred tool 'CY Test Tool Preferred Board Restriction' from the element selection dialog box + Then I see an external tool element with tool 'CY Test Tool Preferred Board Restriction' - # Teacher sees ctl tools with context restriction media-board in the media-shelf - When I go to media shelf - Then I see the media shelf page title - Then I see the available media line - Then I see 3 tools in the available media line - Then I see tool 'CY Test Tool 1' in the available media line - Then I see tool 'CY Test Tool Media-Board Restriction' in the available media line - Then I see tool 'CY Test Tool All Restrictions' in the available media line - Then I do not see tool 'CY Test Tool Course Restriction' in the available media line - Then I do not see tool 'CY Test Tool Board-Element Restriction' in the available media line + # Teacher sees ctl tools with context restriction media-board in the media-shelf + When I go to media shelf + Then I see the media shelf page title + Then I see the available media line + Then I see 3 tools in the available media line + Then I see tool 'CY Test Tool 1' in the available media line + Then I see tool 'CY Test Tool Media-Board Restriction' in the available media line + Then I see tool 'CY Test Tool All Restrictions' in the available media line + Then I do not see tool 'CY Test Tool Course Restriction' in the available media line + Then I do not see tool 'CY Test Tool Board-Element Restriction' in the available media line - @unstable_test - Scenario: Post-test: Admin deletes a course and external tools - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I click on administration in menu - When I go to course administration page - When I click the delete button for course 'Cypress Test Course' in course table - Then I see the delete modal - When I click the confirmation button on the delete modal - Then I do not see course 'Cypress Test Course' in course table + @unstable_test + Scenario: Post-test: Admin deletes a course and external tools + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I click on administration in menu + When I go to course administration page + When I click the delete button for course 'Cypress Test Course' in course table + Then I see the delete modal + When I click the confirmation button on the delete modal + Then I do not see course 'Cypress Test Course' in course table - # Admin deletes external tools - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on external tools panel - Then I see the external tools table - When I click on delete button of tool 'CY Test Tool 1' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Course Restriction' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Board-Element Restriction' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Media-Board Restriction' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool All Restrictions' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Preferred Course Restriction' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Preferred Board Restriction' - When I confirm deletion on deletion dialog + # Admin deletes external tools + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on external tools panel + Then I see the external tools table + When I click on delete button of tool 'CY Test Tool 1' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool Course Restriction' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool Board-Element Restriction' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool Media-Board Restriction' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool All Restrictions' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool Preferred Course Restriction' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool Preferred Board Restriction' + When I confirm deletion on deletion dialog diff --git a/cypress/e2e/course/copyCtlTools.feature b/cypress/e2e/course/copyCtlTools.feature index 6120ef5a..3139886e 100644 --- a/cypress/e2e/course/copyCtlTools.feature +++ b/cypress/e2e/course/copyCtlTools.feature @@ -1,270 +1,270 @@ @unstable_test Feature: Course - Copy CTL tools - As a Teacher I want to be able to copy ctl tools, when i copy a course + As a Teacher I want to be able to copy ctl tools, when i copy a course - @unstable_test - Scenario: Pre-Condition: Admin adds external tools to school - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on general settings panel - When I click the toggle switch to enable student visibility for teachers - When I click on button Save admin settings - When I click on external tools panel - When I click the add external tool button - When I select the tool 'CY Test Tool Context Scope' from available tools - When I click on save external tool button - When I click the add external tool button - When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools - When I click on save external tool button - When I click the add external tool button - When I select the tool 'CY Test Tool Protected Parameter' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Context Scope' in external tools table - Then I see the tool 'CY Test Tool Optional Protected Parameter' in external tools table - Then I see the tool 'CY Test Tool Protected Parameter' in external tools table + @unstable_test + Scenario: Pre-Condition: Admin adds external tools to school + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on general settings panel + When I click the toggle switch to enable student visibility for teachers + When I click on button Save admin settings + When I click on external tools panel + When I click the add external tool button + When I select the tool 'CY Test Tool Context Scope' from available tools + When I click on save external tool button + When I click the add external tool button + When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools + When I click on save external tool button + When I click the add external tool button + When I select the tool 'CY Test Tool Protected Parameter' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Context Scope' in external tools table + Then I see the tool 'CY Test Tool Optional Protected Parameter' in external tools table + Then I see the tool 'CY Test Tool Protected Parameter' in external tools table - # Teacher creates a course and adds tools to the course - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I click on FAB to create a new course depending on sub menu - When I enter the course title 'Cypress Test Course Copy' - Then I see teacher 'Karl Herzog' is selected by default - When I click on button Next Steps after entering the course detail in section one - When I click on button Next Steps after selecting course participant details - Then I see the section three area as the finish page - When I click on button To Course Overview on the finish page - Then I see the course 'Cypress Test Course Copy' on the course overview page - When I go to course 'Cypress Test Course Copy' - Then I see course page 'Cypress Test Course Copy' - When I click on the tools tab - Then I see the button to add a tool - # Teacher adds a tool with required parameter - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - When I select the tool 'CY Test Tool Context Scope' from available tools - When I enter 'test' in required custom parameter field 'searchparam' - When I click on save external tool button - Then I see the tool 'CY Test Tool Context Scope' in the tool overview - # Teacher adds a tool with optional protected parameter - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools - When I enter 'test' in required custom parameter field 'search' - When I enter 'protected' in optional custom parameter field 'protected' - When I click on save external tool button - Then I see the tool 'CY Test Tool Optional Protected Parameter' in the tool overview - # Teacher adds a tool with required protected parameter - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - When I select the tool 'CY Test Tool Protected Parameter' from available tools - When I enter 'test' in required custom parameter field 'search' - When I select 'Ja' in required protected custom parameter selection - When I click on save external tool button - Then I see the tool 'CY Test Tool Protected Parameter' in the tool overview + # Teacher creates a course and adds tools to the course + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to courses overview + When I click on FAB to create a new course depending on sub menu + When I enter the course title 'Cypress Test Course Copy' + Then I see teacher 'Karl Herzog' is selected by default + When I click on button Next Steps after entering the course detail in section one + When I click on button Next Steps after selecting course participant details + Then I see the section three area as the finish page + When I click on button To Course Overview on the finish page + Then I see the course 'Cypress Test Course Copy' on the course overview page + When I go to course 'Cypress Test Course Copy' + Then I see course page 'Cypress Test Course Copy' + When I click on the tools tab + Then I see the button to add a tool + # Teacher adds a tool with required parameter + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + When I select the tool 'CY Test Tool Context Scope' from available tools + When I enter 'test' in required custom parameter field 'searchparam' + When I click on save external tool button + Then I see the tool 'CY Test Tool Context Scope' in the tool overview + # Teacher adds a tool with optional protected parameter + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools + When I enter 'test' in required custom parameter field 'search' + When I enter 'protected' in optional custom parameter field 'protected' + When I click on save external tool button + Then I see the tool 'CY Test Tool Optional Protected Parameter' in the tool overview + # Teacher adds a tool with required protected parameter + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + When I select the tool 'CY Test Tool Protected Parameter' from available tools + When I enter 'test' in required custom parameter field 'search' + When I select 'Ja' in required protected custom parameter selection + When I click on save external tool button + Then I see the tool 'CY Test Tool Protected Parameter' in the tool overview - # Teacher creates a board and adds tools - When I go to the tab contents in course detail page - When I click on FAB to create new content - When I click on the button FAB New Column Board - Then I see a dialog box for column board - Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board - When I choose multi-column board in the dialog box - Then I see the page Course Board details - Then I see the chip Draft in the course board - When I click on the button Add column in the course board - When I click on the page outside of the column - # Teacher adds a tool with required parameter - When I click on plus icon to add card in column - When I click on plus icon to add content into card - When I select external tools from the menu - When I click on the tool configuration selection - When I select the tool 'CY Test Tool Context Scope' from available tools - When I enter 'test' in required custom parameter field 'searchparam' - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Context Scope' - # Teacher adds a tool with optional protected parameter - When I click on three dot menu in the card - When I select the option Edit in three dot menu on the card - When I click on plus icon to add content into card - When I select external tools from the menu - When I click on the tool configuration selection - When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools - When I enter 'test' in required custom parameter field 'search' - When I enter 'protected' in optional custom parameter field 'protected' - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Optional Protected Parameter' - # Teacher adds a tool with required parameter - When I click on three dot menu in the card - When I select the option Edit in three dot menu on the card - When I click on plus icon to add content into card - When I select external tools from the menu - When I click on the tool configuration selection - When I select the tool 'CY Test Tool Protected Parameter' from available tools - When I enter 'test' in required custom parameter field 'search' - When I select 'Ja' in required protected custom parameter selection - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Protected Parameter' + # Teacher creates a board and adds tools + When I go to the tab contents in course detail page + When I click on FAB to create new content + When I click on the button FAB New Column Board + Then I see a dialog box for column board + Then I see in dialog box option for multi-column board + Then I see in dialog box option for single-column board + When I choose multi-column board in the dialog box + Then I see the page Course Board details + Then I see the chip Draft in the course board + When I click on the button Add column in the course board + When I click on the page outside of the column + # Teacher adds a tool with required parameter + When I click on plus icon to add card in column + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I click on the tool configuration selection + When I select the tool 'CY Test Tool Context Scope' from available tools + When I enter 'test' in required custom parameter field 'searchparam' + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool Context Scope' + # Teacher adds a tool with optional protected parameter + When I click on three dot menu in the card + When I select the option Edit in three dot menu on the card + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I click on the tool configuration selection + When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools + When I enter 'test' in required custom parameter field 'search' + When I enter 'protected' in optional custom parameter field 'protected' + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool Optional Protected Parameter' + # Teacher adds a tool with required parameter + When I click on three dot menu in the card + When I select the option Edit in three dot menu on the card + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I click on the tool configuration selection + When I select the tool 'CY Test Tool Protected Parameter' from available tools + When I enter 'test' in required custom parameter field 'search' + When I select 'Ja' in required protected custom parameter selection + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool Protected Parameter' - @unstable_test - Scenario: Teacher copies the course, student sees copied ctl tools and tries to launch a incomplete tool - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course Copy' - Then I see course page 'Cypress Test Course Copy' - When I click on copy course button - Then I see the copy result notification - When I close the dialog - When I go to courses overview - When I go to course 'Cypress Test Course Copy (1)' - Then I see course page 'Cypress Test Course Copy (1)' - # Teacher adds a student to newly copied course - When I open page Edit course - Then I see page Edit course - When I add the first student with search string 'Amelia' to the course - When I click on the tools tab - Then I see 3 tools - Then I see the tool 'CY Test Tool Context Scope' in the tool overview - Then I see the tool 'CY Test Tool Protected Parameter' in the tool overview - Then I see the tool 'CY Test Tool Optional Protected Parameter' in the tool overview - Then I see the tool 'CY Test Tool Context Scope' is not marked as incomplete - Then I see the tool 'CY Test Tool Optional Protected Parameter' is marked as incomplete operational - Then I see the tool 'CY Test Tool Protected Parameter' is marked as incomplete - # Teacher launches incomplete operational tool - When I lauch tool 'CY Test Tool Optional Protected Parameter' with given url 'https://google.com/' - Then I see tool 'CY Test Tool Optional Protected Parameter' was launched - # Teacher tries to launch incomplete tool - When I click on the tool 'CY Test Tool Protected Parameter' - Then I see an error dialog - When I close the dialog - Then I see 3 tools + @unstable_test + Scenario: Teacher copies the course, student sees copied ctl tools and tries to launch a incomplete tool + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course Copy' + Then I see course page 'Cypress Test Course Copy' + When I click on copy course button + Then I see the copy result notification + When I close the dialog + When I go to courses overview + When I go to course 'Cypress Test Course Copy (1)' + Then I see course page 'Cypress Test Course Copy (1)' + # Teacher adds a student to newly copied course + When I open page Edit course + Then I see page Edit course + When I add the first student with search string 'Amelia' to the course + When I click on the tools tab + Then I see 3 tools + Then I see the tool 'CY Test Tool Context Scope' in the tool overview + Then I see the tool 'CY Test Tool Protected Parameter' in the tool overview + Then I see the tool 'CY Test Tool Optional Protected Parameter' in the tool overview + Then I see the tool 'CY Test Tool Context Scope' is not marked as incomplete + Then I see the tool 'CY Test Tool Optional Protected Parameter' is marked as incomplete operational + Then I see the tool 'CY Test Tool Protected Parameter' is marked as incomplete + # Teacher launches incomplete operational tool + When I lauch tool 'CY Test Tool Optional Protected Parameter' with given url 'https://google.com/' + Then I see tool 'CY Test Tool Optional Protected Parameter' was launched + # Teacher tries to launch incomplete tool + When I click on the tool 'CY Test Tool Protected Parameter' + Then I see an error dialog + When I close the dialog + Then I see 3 tools - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see the page Course Board details - Then I see the chip Draft in the course board - When I click on three dot menu in the board header - When I click on the option Publish in three dot menu in course board - Then I do not see the chip Draft in the course board - Then I see an external tool element with tool 'CY Test Tool Optional Protected Parameter' - Then I see an external tool element with tool 'CY Test Tool Protected Parameter' - Then I see an external tool element with tool 'CY Test Tool Context Scope' - Then I see external tool element with tool 'CY Test Tool Context Scope' is not marked as incomplete - Then I see external tool element with tool 'CY Test Tool Optional Protected Parameter' is marked as incomplete operational - Then I see external tool element with tool 'CY Test Tool Protected Parameter' is marked as incomplete - # Teacher launches incomplete operational tool - When I launch tool 'CY Test Tool Optional Protected Parameter' on external tool element with given url 'https://google.com/' - Then I see tool 'CY Test Tool Optional Protected Parameter' on external tool element was launched - # Teacher tries to launch incomplete tool - When I click on external tool element with tool 'CY Test Tool Protected Parameter' - # Then nothing should happen + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see the page Course Board details + Then I see the chip Draft in the course board + When I click on three dot menu in the board header + When I click on the option Publish in three dot menu in course board + Then I do not see the chip Draft in the course board + Then I see an external tool element with tool 'CY Test Tool Optional Protected Parameter' + Then I see an external tool element with tool 'CY Test Tool Protected Parameter' + Then I see an external tool element with tool 'CY Test Tool Context Scope' + Then I see external tool element with tool 'CY Test Tool Context Scope' is not marked as incomplete + Then I see external tool element with tool 'CY Test Tool Optional Protected Parameter' is marked as incomplete operational + Then I see external tool element with tool 'CY Test Tool Protected Parameter' is marked as incomplete + # Teacher launches incomplete operational tool + When I launch tool 'CY Test Tool Optional Protected Parameter' on external tool element with given url 'https://google.com/' + Then I see tool 'CY Test Tool Optional Protected Parameter' on external tool element was launched + # Teacher tries to launch incomplete tool + When I click on external tool element with tool 'CY Test Tool Protected Parameter' + # Then nothing should happen - # Student sees copied ctl tools and incomplete tool cannot be launched - Given I am logged in as a 'student2_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course Copy (1)' - Then I see course page 'Cypress Test Course Copy (1)' - When I click on the tools tab - Then I see 3 tools - Then I see the tool 'CY Test Tool Context Scope' in the tool overview - Then I see the tool 'CY Test Tool Protected Parameter' in the tool overview - Then I see the tool 'CY Test Tool Optional Protected Parameter' in the tool overview - Then I see the tool 'CY Test Tool Context Scope' is not marked as incomplete - Then I see the tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational - Then I see the tool 'CY Test Tool Protected Parameter' is marked as incomplete - # Student launches incomplete operational tool - When I lauch tool 'CY Test Tool Optional Protected Parameter' with given url 'https://google.com/' - Then I see tool 'CY Test Tool Optional Protected Parameter' was launched - # Student tries to launch incomplete tool - When I click on the tool 'CY Test Tool Protected Parameter' - Then I see an error dialog - When I close the dialog - Then I see 3 tools + # Student sees copied ctl tools and incomplete tool cannot be launched + Given I am logged in as a 'student2_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course Copy (1)' + Then I see course page 'Cypress Test Course Copy (1)' + When I click on the tools tab + Then I see 3 tools + Then I see the tool 'CY Test Tool Context Scope' in the tool overview + Then I see the tool 'CY Test Tool Protected Parameter' in the tool overview + Then I see the tool 'CY Test Tool Optional Protected Parameter' in the tool overview + Then I see the tool 'CY Test Tool Context Scope' is not marked as incomplete + Then I see the tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational + Then I see the tool 'CY Test Tool Protected Parameter' is marked as incomplete + # Student launches incomplete operational tool + When I lauch tool 'CY Test Tool Optional Protected Parameter' with given url 'https://google.com/' + Then I see tool 'CY Test Tool Optional Protected Parameter' was launched + # Student tries to launch incomplete tool + When I click on the tool 'CY Test Tool Protected Parameter' + Then I see an error dialog + When I close the dialog + Then I see 3 tools - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see the page Course Board details - Then I see an external tool element with tool 'CY Test Tool Optional Protected Parameter' - Then I see an external tool element with tool 'CY Test Tool Protected Parameter' - Then I see an external tool element with tool 'CY Test Tool Context Scope' - Then I see external tool element with tool 'CY Test Tool Context Scope' is not marked as incomplete - Then I see external tool element with tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational - Then I see external tool element with tool 'CY Test Tool Protected Parameter' is marked as incomplete - # Student launches incomplete operational tool - When I launch tool 'CY Test Tool Optional Protected Parameter' on external tool element with given url 'https://google.com/' - Then I see tool 'CY Test Tool Optional Protected Parameter' on external tool element was launched - # Student tries to launch incomplete tool - When I click on external tool element with tool 'CY Test Tool Protected Parameter' - # Then nothing should happen + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see the page Course Board details + Then I see an external tool element with tool 'CY Test Tool Optional Protected Parameter' + Then I see an external tool element with tool 'CY Test Tool Protected Parameter' + Then I see an external tool element with tool 'CY Test Tool Context Scope' + Then I see external tool element with tool 'CY Test Tool Context Scope' is not marked as incomplete + Then I see external tool element with tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational + Then I see external tool element with tool 'CY Test Tool Protected Parameter' is marked as incomplete + # Student launches incomplete operational tool + When I launch tool 'CY Test Tool Optional Protected Parameter' on external tool element with given url 'https://google.com/' + Then I see tool 'CY Test Tool Optional Protected Parameter' on external tool element was launched + # Student tries to launch incomplete tool + When I click on external tool element with tool 'CY Test Tool Protected Parameter' + # Then nothing should happen - # Teacher fixes the incomplete tools in course - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course Copy (1)' - Then I see course page 'Cypress Test Course Copy (1)' - When I click on the tools tab - When I click on three dot menu of the tool 'CY Test Tool Protected Parameter' - When I click on the tool edit button of 'CY Test Tool Protected Parameter' - Then I see the tool configuration page title - When I select 'Ja' in required protected custom parameter selection - When I confirm the update - When I click on three dot menu of the tool 'CY Test Tool Optional Protected Parameter' - When I click on the tool edit button of 'CY Test Tool Optional Protected Parameter' - Then I see the tool configuration page title - When I enter 'protected' in optional custom parameter field 'protected' - When I confirm the update - Then I see course page 'Cypress Test Course Copy (1)' - Then I see the tool 'CY Test Tool Context Scope' is not marked as incomplete - Then I see the tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational + # Teacher fixes the incomplete tools in course + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course Copy (1)' + Then I see course page 'Cypress Test Course Copy (1)' + When I click on the tools tab + When I click on three dot menu of the tool 'CY Test Tool Protected Parameter' + When I click on the tool edit button of 'CY Test Tool Protected Parameter' + Then I see the tool configuration page title + When I select 'Ja' in required protected custom parameter selection + When I confirm the update + When I click on three dot menu of the tool 'CY Test Tool Optional Protected Parameter' + When I click on the tool edit button of 'CY Test Tool Optional Protected Parameter' + Then I see the tool configuration page title + When I enter 'protected' in optional custom parameter field 'protected' + When I confirm the update + Then I see course page 'Cypress Test Course Copy (1)' + Then I see the tool 'CY Test Tool Context Scope' is not marked as incomplete + Then I see the tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational - # Teacher fixes the incomplete tools in board - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see the page Course Board details - When I click on three dot menu in the card - When I select the option Edit in three dot menu on the card - When I click on three dot menu of external tool element 'CY Test Tool Protected Parameter' - When I click the edit button in three dot menu on the element - Then I see tool 'CY Test Tool Protected Parameter' is selected - When I select 'Ja' in required protected custom parameter selection - When I click on save external tool button - Then I see external tool element with tool 'CY Test Tool Context Scope' is not marked as incomplete - When I click on three dot menu in the card - When I select the option Edit in three dot menu on the card - When I click on three dot menu of external tool element 'CY Test Tool Optional Protected Parameter' - When I click the edit button in three dot menu on the element - Then I see tool 'CY Test Tool Optional Protected Parameter' is selected - When I enter 'protected' in optional custom parameter field 'protected' - When I click on save external tool button - Then I see external tool element with tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational + # Teacher fixes the incomplete tools in board + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see the page Course Board details + When I click on three dot menu in the card + When I select the option Edit in three dot menu on the card + When I click on three dot menu of external tool element 'CY Test Tool Protected Parameter' + When I click the edit button in three dot menu on the element + Then I see tool 'CY Test Tool Protected Parameter' is selected + When I select 'Ja' in required protected custom parameter selection + When I click on save external tool button + Then I see external tool element with tool 'CY Test Tool Context Scope' is not marked as incomplete + When I click on three dot menu in the card + When I select the option Edit in three dot menu on the card + When I click on three dot menu of external tool element 'CY Test Tool Optional Protected Parameter' + When I click the edit button in three dot menu on the element + Then I see tool 'CY Test Tool Optional Protected Parameter' is selected + When I enter 'protected' in optional custom parameter field 'protected' + When I click on save external tool button + Then I see external tool element with tool 'CY Test Tool Optional Protected Parameter' is not marked as incomplete operational - @unstable_test - Scenario: Post-Condition: Admin deletes courses and external tools - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I click on administration in menu - When I go to course administration page - When I click the delete button for course 'Cypress Test Course Copy' in course table - Then I see the delete modal - When I click the confirmation button on the delete modal - When I click the delete button for course 'Cypress Test Course Copy (1)' in course table - Then I see the delete modal - When I click the confirmation button on the delete modal - Then I do not see course 'Cypress Test Course Copy' in course table - Then I do not see course 'Cypress Test Course Copy (1)' in course table + @unstable_test + Scenario: Post-Condition: Admin deletes courses and external tools + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I click on administration in menu + When I go to course administration page + When I click the delete button for course 'Cypress Test Course Copy' in course table + Then I see the delete modal + When I click the confirmation button on the delete modal + When I click the delete button for course 'Cypress Test Course Copy (1)' in course table + Then I see the delete modal + When I click the confirmation button on the delete modal + Then I do not see course 'Cypress Test Course Copy' in course table + Then I do not see course 'Cypress Test Course Copy (1)' in course table - # Admin deletes external tools - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on external tools panel - Then I see the external tools table - When I click on delete button of tool 'CY Test Tool Context Scope' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Optional Protected Parameter' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Protected Parameter' - When I confirm deletion on deletion dialog + # Admin deletes external tools + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on external tools panel + Then I see the external tools table + When I click on delete button of tool 'CY Test Tool Context Scope' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool Optional Protected Parameter' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool Protected Parameter' + When I confirm deletion on deletion dialog diff --git a/cypress/e2e/course/deactivationOfCtlTools.feature b/cypress/e2e/course/deactivationOfCtlTools.feature index ec63681f..e890d6a4 100644 --- a/cypress/e2e/course/deactivationOfCtlTools.feature +++ b/cypress/e2e/course/deactivationOfCtlTools.feature @@ -1,261 +1,261 @@ @unstable_test Feature: Deactivation of ctl tools - As a Admin I want to deactivate und activate an external tool + As a Admin I want to deactivate und activate an external tool - @unstable_test - Scenario: Pre-test: Admin creates a course - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I go to courses overview - When I click on FAB to create a new course depending on sub menu - When I enter the course title 'Cypress Test Course' - When I select 'Karl Herzog' from field teacher - When I click on button Next Steps after entering the course detail in section one - When I select 'Amelia Strobl' from field student - When I click on button Next Steps after selecting course participant details - When I click on button To Course Overview on the finish page + @unstable_test + Scenario: Pre-test: Admin creates a course + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I go to courses overview + When I click on FAB to create a new course depending on sub menu + When I enter the course title 'Cypress Test Course' + When I select 'Karl Herzog' from field teacher + When I click on button Next Steps after entering the course detail in section one + When I select 'Amelia Strobl' from field student + When I click on button Next Steps after selecting course participant details + When I click on button To Course Overview on the finish page - @unstable_test - Scenario: Admin tries to add an deactivated external tool, adds an external tool and deactivates and activates it - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on external tools panel - Then I see the external tools table is empty - When I click the add external tool button - Then I see the external tools configuration page - Then I see the external tool configuration page title - Then I see the tool configuration infotext - # Admin tries to add an deactivated external tool - Then I do not see external tool 'CY Test Tool deactivated External Tool' in the tool selection - # Admin adds a tool - When I select the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected - When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in external tools table - Then I see the tool 'CY Test Tool 1' is active in tools table - # Admin adds a tool and deactivates it - When I click the add external tool button - Then I see the external tools configuration page - Then I see the external tool configuration page title - Then I see the tool configuration infotext - When I select the tool 'CY Test Tool 2' from available tools - Then I see tool 'CY Test Tool 2' is selected - When I deactivate the tool - Then I see the deactivate checkbox is 'checked' - When I click on save external tool button - Then I see the tool 'CY Test Tool 2' in external tools table - Then I see the tool 'CY Test Tool 2' is deactivated in external tools table + @unstable_test + Scenario: Admin tries to add an deactivated external tool, adds an external tool and deactivates and activates it + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on external tools panel + Then I see the external tools table is empty + When I click the add external tool button + Then I see the external tools configuration page + Then I see the external tool configuration page title + Then I see the tool configuration infotext + # Admin tries to add an deactivated external tool + Then I do not see external tool 'CY Test Tool deactivated External Tool' in the tool selection + # Admin adds a tool + When I select the tool 'CY Test Tool 1' from available tools + Then I see tool 'CY Test Tool 1' is selected + When I click on save external tool button + Then I see the tool 'CY Test Tool 1' in external tools table + Then I see the tool 'CY Test Tool 1' is active in tools table + # Admin adds a tool and deactivates it + When I click the add external tool button + Then I see the external tools configuration page + Then I see the external tool configuration page title + Then I see the tool configuration infotext + When I select the tool 'CY Test Tool 2' from available tools + Then I see tool 'CY Test Tool 2' is selected + When I deactivate the tool + Then I see the deactivate checkbox is 'checked' + When I click on save external tool button + Then I see the tool 'CY Test Tool 2' in external tools table + Then I see the tool 'CY Test Tool 2' is deactivated in external tools table - # Teacher can not add a deactivated tool in course - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' - When I click on the tools tab - Then I see the button to add a tool - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - # Teacher tries to a deactivated tool - Then I do not see tool 'CY Test Tool 2' in the tool selection - # Teacher adds a activated tool - When I click on the tool configuration selection - When I select the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected - When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in the tool overview + # Teacher can not add a deactivated tool in course + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course' + Then I see course page 'Cypress Test Course' + When I click on the tools tab + Then I see the button to add a tool + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + # Teacher tries to a deactivated tool + Then I do not see tool 'CY Test Tool 2' in the tool selection + # Teacher adds a activated tool + When I click on the tool configuration selection + When I select the tool 'CY Test Tool 1' from available tools + Then I see tool 'CY Test Tool 1' is selected + When I click on save external tool button + Then I see the tool 'CY Test Tool 1' in the tool overview - # Teacher can not add a deactivated tool to a board - When I go to the tab contents in course detail page - When I click on FAB to create new content - When I click on the button FAB New Column Board - Then I see a dialog box for column board - When I choose multi-column board in the dialog box - Then I see the page Course Board details - Then I see the chip Draft in the course board - When I click on three dot menu in the board header - When I click on the option Publish in three dot menu in course board - Then I do not see the chip Draft in the course board - When I click on the button Add column in the course board - When I click on the page outside of the column - When I click on plus icon to add card in column - When I click on plus icon to add content into card - When I select external tools from the menu - When I click on the tool configuration selection - # Teacher tries to a deactivated tool - Then I do not see tool 'CY Test Tool 2' in the tool selection - # Teacher adds a activated tool - When I click on the tool configuration selection - When I select the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 1' + # Teacher can not add a deactivated tool to a board + When I go to the tab contents in course detail page + When I click on FAB to create new content + When I click on the button FAB New Column Board + Then I see a dialog box for column board + When I choose multi-column board in the dialog box + Then I see the page Course Board details + Then I see the chip Draft in the course board + When I click on three dot menu in the board header + When I click on the option Publish in three dot menu in course board + Then I do not see the chip Draft in the course board + When I click on the button Add column in the course board + When I click on the page outside of the column + When I click on plus icon to add card in column + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I click on the tool configuration selection + # Teacher tries to a deactivated tool + Then I do not see tool 'CY Test Tool 2' in the tool selection + # Teacher adds a activated tool + When I click on the tool configuration selection + When I select the tool 'CY Test Tool 1' from available tools + Then I see tool 'CY Test Tool 1' is selected + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool 1' - # Admin deactivates an existing tool - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on external tools panel - Then I see the external tools table - Then I see the tool 'CY Test Tool 1' in external tools table - When I click on edit button of tool 'CY Test Tool 1' - Then I see the external tools configuration page - Then I see the external tool configuration page title - Then I see the tool configuration infotext - Then I see tool 'CY Test Tool 1' is selected - When I deactivate the tool - Then I see the deactivate checkbox is 'checked' - When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in external tools table - Then I see the tool 'CY Test Tool 1' is deactivated in external tools table + # Admin deactivates an existing tool + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on external tools panel + Then I see the external tools table + Then I see the tool 'CY Test Tool 1' in external tools table + When I click on edit button of tool 'CY Test Tool 1' + Then I see the external tools configuration page + Then I see the external tool configuration page title + Then I see the tool configuration infotext + Then I see tool 'CY Test Tool 1' is selected + When I deactivate the tool + Then I see the deactivate checkbox is 'checked' + When I click on save external tool button + Then I see the tool 'CY Test Tool 1' in external tools table + Then I see the tool 'CY Test Tool 1' is deactivated in external tools table - # Teacher tries to launch a deactivated tool in course - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' - When I click on the tools tab - Then I see the tool 'CY Test Tool 1' in the tool overview - Then I see the tool 'CY Test Tool 1' is marked as deactivated - When I click on the tool 'CY Test Tool 1' - Then I see an error dialog - When I close the dialog - Then I see 1 tools + # Teacher tries to launch a deactivated tool in course + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course' + Then I see course page 'Cypress Test Course' + When I click on the tools tab + Then I see the tool 'CY Test Tool 1' in the tool overview + Then I see the tool 'CY Test Tool 1' is marked as deactivated + When I click on the tool 'CY Test Tool 1' + Then I see an error dialog + When I close the dialog + Then I see 1 tools - # Teacher tries to launch a deactivated tool in board - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see the page Course Board details - Then I see an external tool element with tool 'CY Test Tool 1' - Then I see an external tool element with tool 'CY Test Tool 1' is marked as deactivated - # Teacher tries to launch incomplete tool - When I click on external tool element with tool 'CY Test Tool 1' - # Then nothing should happen + # Teacher tries to launch a deactivated tool in board + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see the page Course Board details + Then I see an external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool 'CY Test Tool 1' is marked as deactivated + # Teacher tries to launch incomplete tool + When I click on external tool element with tool 'CY Test Tool 1' + # Then nothing should happen - # Student tries to launch a deactivated tool in course - Given I am logged in as a 'student2_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' - When I click on the tools tab - Then I see the tool 'CY Test Tool 1' in the tool overview - Then I see the tool 'CY Test Tool 1' is marked as deactivated - When I click on the tool 'CY Test Tool 1' - Then I see an error dialog - When I close the dialog - Then I see 1 tools + # Student tries to launch a deactivated tool in course + Given I am logged in as a 'student2_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course' + Then I see course page 'Cypress Test Course' + When I click on the tools tab + Then I see the tool 'CY Test Tool 1' in the tool overview + Then I see the tool 'CY Test Tool 1' is marked as deactivated + When I click on the tool 'CY Test Tool 1' + Then I see an error dialog + When I close the dialog + Then I see 1 tools - # Student tries to launch a deactivated tool in board - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see the page Course Board details - Then I see an external tool element with tool 'CY Test Tool 1' - Then I see an external tool element with tool 'CY Test Tool 1' is marked as deactivated - # Student tries to launch incomplete tool - When I click on external tool element with tool 'CY Test Tool 1' - # Then nothing should happen + # Student tries to launch a deactivated tool in board + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see the page Course Board details + Then I see an external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool 'CY Test Tool 1' is marked as deactivated + # Student tries to launch incomplete tool + When I click on external tool element with tool 'CY Test Tool 1' + # Then nothing should happen - # Admin activates existing deactivated tools - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on external tools panel - Then I see the external tools table - Then I see the tool 'CY Test Tool 1' in external tools table - When I click on edit button of tool 'CY Test Tool 1' - Then I see the external tools configuration page - Then I see the external tool configuration page title - Then I see the tool configuration infotext - Then I see tool 'CY Test Tool 1' is selected - When I activate the tool - Then I see the deactivate checkbox is 'not checked' - When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in external tools table - Then I see the tool 'CY Test Tool 1' is active in tools table - Then I see the tool 'CY Test Tool 2' in external tools table - When I click on edit button of tool 'CY Test Tool 2' - Then I see the external tools configuration page - Then I see the external tool configuration page title - Then I see the tool configuration infotext - Then I see tool 'CY Test Tool 2' is selected - When I activate the tool - Then I see the deactivate checkbox is 'not checked' - When I click on save external tool button - Then I see the tool 'CY Test Tool 2' in external tools table - Then I see the tool 'CY Test Tool 2' is active in tools table + # Admin activates existing deactivated tools + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on external tools panel + Then I see the external tools table + Then I see the tool 'CY Test Tool 1' in external tools table + When I click on edit button of tool 'CY Test Tool 1' + Then I see the external tools configuration page + Then I see the external tool configuration page title + Then I see the tool configuration infotext + Then I see tool 'CY Test Tool 1' is selected + When I activate the tool + Then I see the deactivate checkbox is 'not checked' + When I click on save external tool button + Then I see the tool 'CY Test Tool 1' in external tools table + Then I see the tool 'CY Test Tool 1' is active in tools table + Then I see the tool 'CY Test Tool 2' in external tools table + When I click on edit button of tool 'CY Test Tool 2' + Then I see the external tools configuration page + Then I see the external tool configuration page title + Then I see the tool configuration infotext + Then I see tool 'CY Test Tool 2' is selected + When I activate the tool + Then I see the deactivate checkbox is 'not checked' + When I click on save external tool button + Then I see the tool 'CY Test Tool 2' in external tools table + Then I see the tool 'CY Test Tool 2' is active in tools table - # Teacher adds activated tool to course - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' - When I click on the tools tab - Then I see the tool 'CY Test Tool 1' in the tool overview - Then I see the tool 'CY Test Tool 1' is not marked as deactivated - Then I see the button to add a tool - When I click on the button to add a tool - Then I see the tool configuration page title - When I click on the tool configuration selection - When I select the tool 'CY Test Tool 2' from available tools - Then I see tool 'CY Test Tool 2' is selected - When I click on save external tool button - Then I see the tool 'CY Test Tool 2' in the tool overview + # Teacher adds activated tool to course + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course' + Then I see course page 'Cypress Test Course' + When I click on the tools tab + Then I see the tool 'CY Test Tool 1' in the tool overview + Then I see the tool 'CY Test Tool 1' is not marked as deactivated + Then I see the button to add a tool + When I click on the button to add a tool + Then I see the tool configuration page title + When I click on the tool configuration selection + When I select the tool 'CY Test Tool 2' from available tools + Then I see tool 'CY Test Tool 2' is selected + When I click on save external tool button + Then I see the tool 'CY Test Tool 2' in the tool overview - # Teacher adds activated tool to a board - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see the page Course Board details - Then I see an external tool element with tool 'CY Test Tool 1' - Then I see an external tool element with tool 'CY Test Tool 1' is not marked as deactivated - When I click on three dot menu in the card - When I select the option Edit in three dot menu on the card - When I click on plus icon to add content into card - When I select external tools from the menu - When I click on the tool configuration selection - When I select the tool 'CY Test Tool 2' from available tools - Then I see tool 'CY Test Tool 2' is selected - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 2' + # Teacher adds activated tool to a board + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see the page Course Board details + Then I see an external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool 'CY Test Tool 1' is not marked as deactivated + When I click on three dot menu in the card + When I select the option Edit in three dot menu on the card + When I click on plus icon to add content into card + When I select external tools from the element selection dialog box + When I click on the tool configuration selection + When I select the tool 'CY Test Tool 2' from available tools + Then I see tool 'CY Test Tool 2' is selected + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool 2' - # Student sees activated tools in course - Given I am logged in as a 'student2_nbc' at 'nbc' - When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' - When I click on the tools tab - Then I see the tool 'CY Test Tool 1' in the tool overview - Then I see the tool 'CY Test Tool 1' is not marked as deactivated - Then I see the tool 'CY Test Tool 2' in the tool overview - Then I see the tool 'CY Test Tool 2' is not marked as deactivated + # Student sees activated tools in course + Given I am logged in as a 'student2_nbc' at 'nbc' + When I go to courses overview + When I go to course 'Cypress Test Course' + Then I see course page 'Cypress Test Course' + When I click on the tools tab + Then I see the tool 'CY Test Tool 1' in the tool overview + Then I see the tool 'CY Test Tool 1' is not marked as deactivated + Then I see the tool 'CY Test Tool 2' in the tool overview + Then I see the tool 'CY Test Tool 2' is not marked as deactivated - # Student tries to launch a deactivated tool in board - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see the page Course Board details - Then I see an external tool element with tool 'CY Test Tool 1' - Then I see an external tool element with tool 'CY Test Tool 1' is not marked as deactivated - Then I see an external tool element with tool 'CY Test Tool 2' - Then I see an external tool element with tool 'CY Test Tool 2' is not marked as deactivated + # Student tries to launch a deactivated tool in board + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see the page Course Board details + Then I see an external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool 'CY Test Tool 1' is not marked as deactivated + Then I see an external tool element with tool 'CY Test Tool 2' + Then I see an external tool element with tool 'CY Test Tool 2' is not marked as deactivated - @unstable_test - Scenario: Post-test: Teacher deletes course, admin deletes external tools - Given I am logged in as a 'admin1_nbc' at 'nbc' - When I click on administration in menu - When I go to course administration page - When I click the delete button for course 'Cypress Test Course' in course table - Then I see the delete modal - When I click the confirmation button on the delete modal - Then I do not see course 'Cypress Test Course' in course table + @unstable_test + Scenario: Post-test: Teacher deletes course, admin deletes external tools + Given I am logged in as a 'admin1_nbc' at 'nbc' + When I click on administration in menu + When I go to course administration page + When I click the delete button for course 'Cypress Test Course' in course table + Then I see the delete modal + When I click the confirmation button on the delete modal + Then I do not see course 'Cypress Test Course' in course table - # Admin deletes external tools - When I click on administration in menu - When I navigate to new school admin page via sub menu - When I click on external tools panel - Then I see the external tools table - When I click on delete button of tool 'CY Test Tool 1' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool 2' - When I confirm deletion on deletion dialog + # Admin deletes external tools + When I click on administration in menu + When I navigate to new school admin page via sub menu + When I click on external tools panel + Then I see the external tools table + When I click on delete button of tool 'CY Test Tool 1' + When I confirm deletion on deletion dialog + When I click on delete button of tool 'CY Test Tool 2' + When I confirm deletion on deletion dialog diff --git a/cypress/e2e/course/shareCtlTools.feature b/cypress/e2e/course/shareCtlTools.feature index a409609b..d0b8bd28 100644 --- a/cypress/e2e/course/shareCtlTools.feature +++ b/cypress/e2e/course/shareCtlTools.feature @@ -70,7 +70,7 @@ Feature: Teacher can share a course When I click on the button FAB New Column Board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose multi-column board in the dialog box Then I see the page Course Board details Then I see the chip Draft in the course board @@ -79,7 +79,7 @@ Feature: Teacher can share a course # Pre-condition: teacher adds a tool with required parameter When I click on plus icon to add card in column When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I select the tool 'CY Test Tool Context Scope' from available tools When I enter 'test' in required custom parameter field 'searchparam' @@ -89,7 +89,7 @@ Feature: Teacher can share a course When I click on three dot menu in the card When I select the option Edit in three dot menu on the card When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools When I enter 'test' in required custom parameter field 'search' @@ -100,7 +100,7 @@ Feature: Teacher can share a course When I click on three dot menu in the card When I select the option Edit in three dot menu on the card When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I select the tool 'CY Test Tool Protected Parameter' from available tools When I enter 'test' in required custom parameter field 'search' diff --git a/cypress/e2e/course_board/changeBoardLayout.feature b/cypress/e2e/course_board/changeBoardLayout.feature index d0e618d3..14b57b83 100644 --- a/cypress/e2e/course_board/changeBoardLayout.feature +++ b/cypress/e2e/course_board/changeBoardLayout.feature @@ -31,7 +31,7 @@ Feature: Course Board - To change the board layout When I click on the button FAB New Column Board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose multi-column board in the dialog box Then I see the page Course Board details When I click on the button Add column in the course board @@ -47,16 +47,16 @@ Feature: Course Board - To change the board layout When I click on the option Change layout in three dot menu in course board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose single-column board in the dialog box Then I see the single-column board - # teacher changes board layout to multi column + # teacher changes board layout to multi-column When I click on three dot menu in the board header When I click on the option Change layout in three dot menu in course board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose multi-column board in the dialog box Then I see the multi-column board diff --git a/cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature b/cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature index b89451e8..30ed1195 100644 --- a/cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature +++ b/cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature @@ -62,7 +62,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on the button FAB New Column Board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose multi-column board in the dialog box Then I see the page Course Board details Then I see the chip Draft in the course board @@ -72,7 +72,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board # Teacher adds a tool without a custom parameter When I click on plus icon to add card in column When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I select the tool 'CY Test Tool 1' from available tools Then I see tool 'CY Test Tool 1' is selected @@ -86,7 +86,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on three dot menu in the card When I select the option Edit in three dot menu on the card When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I select the tool 'CY Test Tool 1' from available tools Then I see tool 'CY Test Tool 1' is selected @@ -98,7 +98,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on three dot menu in the card When I select the option Edit in three dot menu on the card When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I insert the external tool link 'https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823' Then I see tool 'OpenStreetMap' is selected @@ -112,7 +112,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on three dot menu in the card When I select the option Edit in three dot menu on the card When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I select the tool 'CY Test Tool Required Parameters' from available tools Then I see tool 'CY Test Tool Required Parameters' is selected @@ -128,7 +128,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on three dot menu in the card When I select the option Edit in three dot menu on the card When I click on plus icon to add content into card - When I select external tools from the menu + When I select external tools from the element selection dialog box When I click on the tool configuration selection When I select the tool 'CY Test Tool Optional Parameters' from available tools Then I see tool 'CY Test Tool Optional Parameters' is selected @@ -166,11 +166,11 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I select the option Edit in three dot menu on the card When I click on plus icon to add content into card Then I see preferred tool 'CY Test Tool Preferred' in the menu - When I select preferred tool 'CY Test Tool Preferred' from the menu + When I select preferred tool 'CY Test Tool Preferred' from the element selection dialog box Then I see an external tool element with tool 'CY Test Tool Preferred' When I click on plus icon to add content into card Then I see preferred tool 'CY Test Tool Preferred With Param' in the menu - When I select preferred tool 'CY Test Tool Preferred With Param' from the menu + When I select preferred tool 'CY Test Tool Preferred With Param' from the element selection dialog box Then I see tool 'CY Test Tool Preferred With Param' is selected When I enter 'test' in required custom parameter field 'contextParam' Then I see custom parameter input field 'contextParam' contains 'test' diff --git a/cypress/e2e/course_board/createEditDeleteMultiColumnInBoard.feature b/cypress/e2e/course_board/createEditDeleteMultiColumnInBoard.feature index 70564b1f..d734b235 100644 --- a/cypress/e2e/course_board/createEditDeleteMultiColumnInBoard.feature +++ b/cypress/e2e/course_board/createEditDeleteMultiColumnInBoard.feature @@ -41,7 +41,7 @@ Feature: Course Board - To create, edit and delete column in the course board When I click on the button FAB New Column Board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose multi-column board in the dialog box Then I see the page Course Board details When I click on the button three dot menu in course board diff --git a/cypress/e2e/course_board/createEditDeleteSingleColumnBoard.feature b/cypress/e2e/course_board/createEditDeleteSingleColumnBoard.feature index f37ecc8b..546d7957 100644 --- a/cypress/e2e/course_board/createEditDeleteSingleColumnBoard.feature +++ b/cypress/e2e/course_board/createEditDeleteSingleColumnBoard.feature @@ -1,10 +1,10 @@ @regression_test @stable_test -Feature: Course Board - To create, edit and delete a single column course board +Feature: Course Board - To create, edit and delete a single-column course board - As a teacher I want to create, edit and delete a single column course board so that I can use this option. + As a teacher I want to create, edit and delete a single-column course board so that I can use this option. - Scenario Outline: user creation, course creation, and creating single column board, adding a card with text and whiteboard, deleting the single column board in the course + Scenario Outline: user creation, course creation, and creating single-column board, adding a card with text and whiteboard, deleting the single-column board in the course # pre-condition: teacher and admin log in to create their account in a same school Given I am logged in as a '' at '' @@ -24,7 +24,7 @@ Feature: Course Board - To create, edit and delete a single column course board # Note: this step is not applicable for the admin user #Then I see the course 'CypressAut Test Creation and Deletion' on the course overview page - # teacher adds a new single column Board + # teacher adds a new single-column Board Given I am logged in as a '' at '' When I go to courses overview When I go to course '' @@ -33,7 +33,7 @@ Feature: Course Board - To create, edit and delete a single column course board When I click on the button FAB New Column Board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose single-column board in the dialog box Then I see the page Course Board details When I click on the button three dot menu in course board @@ -43,7 +43,7 @@ Feature: Course Board - To create, edit and delete a single column course board # Then I see the course Board name '' Then I see the chip Draft in the course board - # student does not see the single column board + # student does not see the single-column board Given I am logged in as a '' at '' When I go to courses overview When I go to course '' @@ -66,27 +66,27 @@ Feature: Course Board - To create, edit and delete a single column course board Then I click on the button with the Icon Plus to add a new card in the column When I enter '' to board card text element When I click on plus icon to add content into card - When I select whiteboard from the menu + When I select 'drawing-element' from the element selection dialog box Then I see a whiteboard on the board Then I see '' in board card text element - # teacher edits the column in the single column board + # teacher edits the column in the single-column board When I click on three dot menu in the column When I select the three dot menu action 'rename' Then I enter the title name '' in the column When I click on the page outside of the column Then I see my column named '' - # student sees the single column board + # student sees the single-column board Given I am logged in as a '' at '' When I go to courses overview When I go to course '' - Then I can see board on course page + Then I can see board '' on course page When I click on card Course Board Then I see a whiteboard on the board Then I see '' in board card text element - # # teacher deletes the column in the single column board + # # teacher deletes the column in the single-column board Given I am logged in as a '' at '' When I go to courses overview When I go to course '' diff --git a/cypress/e2e/course_board/openDrawingElementOnBoard.feature b/cypress/e2e/course_board/openDrawingElementOnBoard.feature index 5c5cc851..ca6b409c 100644 --- a/cypress/e2e/course_board/openDrawingElementOnBoard.feature +++ b/cypress/e2e/course_board/openDrawingElementOnBoard.feature @@ -35,7 +35,7 @@ Feature: Course Board - Opening a drawing element on a course page When I click on the button FAB New Column Board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose multi-column board in the dialog box Then I see the page Course Board details When I click on the button three dot menu in course board @@ -51,7 +51,7 @@ Feature: Course Board - Opening a drawing element on a course page When I click on the page outside of the column When I click on plus icon to add card in column When I click on plus icon to add content into card - Then I select whiteboard from the menu + Then I select 'drawing-element' from the element selection dialog box # teacher is able to open a drawing element to the course board Given I am logged in as a '' at '' diff --git a/cypress/e2e/course_board/shareBoardCardLink.feature b/cypress/e2e/course_board/shareBoardCardLink.feature index cdcbd835..6975f015 100644 --- a/cypress/e2e/course_board/shareBoardCardLink.feature +++ b/cypress/e2e/course_board/shareBoardCardLink.feature @@ -32,7 +32,7 @@ Feature: Course Board - To share a board card link When I click on the button FAB New Column Board Then I see a dialog box for column board Then I see in dialog box option for multi-column board - Then I see in dialog box option for single column board + Then I see in dialog box option for single-column board When I choose multi-column board in the dialog box Then I see the page Course Board details Then I see the chip Draft in the course board diff --git a/cypress/e2e/room_board/addDeleteBBBToolInRoomBoard.feature b/cypress/e2e/room_board/addDeleteBBBToolInRoomBoard.feature new file mode 100644 index 00000000..bc3ee18f --- /dev/null +++ b/cypress/e2e/room_board/addDeleteBBBToolInRoomBoard.feature @@ -0,0 +1,65 @@ +@regression_test +@stable_test +Feature: Room - Add BBB Tool in the Room Board + + As a teacher, I want to add a BBB (BigBlueButton) Tool to the room board so that I can manage video conferencing effectively. + + Scenario: Add BBB Tool to the Room Board, including pre & post conditions + + # pre-condition: creating accounts + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # pre-condition: admin enable the video conference in school settings page + Given admin enables video conference for the school in the school settings page + + # pre-condition: room and boards are existing + Given I am logged in as a '' at '' + Given a room named '' exists + Given a multi-column board named '' exists in the room + Given the multi-column board has a column with a card + + # teacher adds BBB Tool to the multi-column board + When I click on the three dot on the card + When I click on the option edit in the three dot menu on the card + When I click on plus icon to add content into card + Then I see the dialog box to select element for the card + When I click on the button Close on the element selection dialogue box + Then I do not see the element selection dialogue box + When I click on plus icon to add content into card + Then I see the dialog box to select element for the card + When I select 'video-conference' from the element selection dialog box + When I enter the video conference title '' + When I click on the save button or press the button enter key + Then I see the video conference element added in the card + When I click on the video conference element in the card + Then I see the modal to start the video conference + Then I see the moderator approval checkbox is checked in the video conference start modal + Then I see the button create in the video conference creation modal to start the call + Then I click on the button cancel in the video conference creation modal to go back to the card + + # student can see the video confernce in the multi-column board + # note: this scenario can not be defined as adding the student to the room feature is not yet implementred. + + # teacher deletes the BBB Tool from the multi-column board card + When I click on the three dot on the card + When I click on the option edit in the three dot menu on the card + When I click on the three-dot menu in the video conference element + When I click on the delete option in the three-dot menu + Then I see the delete confirmation dialog + When I click on the delete button in the confirmation dialog + Then I do not see the video conference element + + # post-condition: delete the room + Given I navigate to the room detail page from the board page + Given the room named '' is deleted + + @school_api_test + Examples: + | teacher | admin | namespace | room_name | board_title | video_conference_title | + | teacher1_dbc | admin1_dbc | dbc | Cypress Room Name | Board Cy Title | Cy BBB Tool | + + @staging_test + Examples: + | teacher | admin | namespace | room_name | board_title | video_conference_title | + | teacher1_dbc | admin1_dbc | dbc | Cypress Room Name | Board Cy Title | Cy BBB Tool | \ No newline at end of file diff --git a/cypress/e2e/room_board/copyMultiSingleColumnBoardsInRoom.feature b/cypress/e2e/room_board/copyMultiSingleColumnBoardsInRoom.feature index 7e258dd4..06341f28 100644 --- a/cypress/e2e/room_board/copyMultiSingleColumnBoardsInRoom.feature +++ b/cypress/e2e/room_board/copyMultiSingleColumnBoardsInRoom.feature @@ -9,8 +9,12 @@ Feature: Room - Copy multi-column and single-column boards in the room # pre-condition: room and boards are existing Given I am logged in as a '' at '' Given a room named '' exists - Given a multi-column board named '' exists in the room - Given a single-column board named '' exists in the room + Given a multi-column board named '' exists in the room + # this step is needed to navigate back to the room details page after creating multi-column board + Given I navigate to the room detail page from the board page + Given a single-column board named '' exists in the room + # this step is needed to navigate back to the room details page after creating single-column board + Given I navigate to the room detail page from the board page # teacher copies the multi-column board When I click on the multi-column board in the room detail page @@ -45,11 +49,11 @@ Feature: Room - Copy multi-column and single-column boards in the room @school_api_test Examples: - | teacher | namespace | room_name | new_board_title | - | teacher1_brb | brb | Cypress Room Name | Board Cy Title | + | teacher | namespace | room_name | board_title | + | teacher1_brb | brb | Cypress Room Name | Board Cy Title | @staging_test Examples: - | teacher | namespace | room_name | new_board_title | - | teacher1_brb | brb | Cypress Room Name | Board Cy Title | + | teacher | namespace | room_name | board_title | + | teacher1_brb | brb | Cypress Room Name | Board Cy Title | diff --git a/cypress/e2e/room_board/createEditDeleteMultiAndSingleColumnBoardInRoom.feature b/cypress/e2e/room_board/createEditDeleteMultiAndSingleColumnBoardInRoom.feature index 3d01abe8..2123f2ba 100644 --- a/cypress/e2e/room_board/createEditDeleteMultiAndSingleColumnBoardInRoom.feature +++ b/cypress/e2e/room_board/createEditDeleteMultiAndSingleColumnBoardInRoom.feature @@ -15,7 +15,7 @@ Feature: Room - Add, edit and delete board in room When I click on the button to save the room Then I see the detail page of room '' - # teacher creates a new multi column board in the room + # teacher creates a new multi-column board in the room Given I am logged in as a '' at '' When I go to room overview When I go to room '' @@ -23,32 +23,32 @@ Feature: Room - Add, edit and delete board in room Then I see the button to add board When I click on the fab button to add a Board Then I see the dialog box to select the Board type - When I click on button to add multi column board + When I click on button to add multi-column board Then I see the page board details - # teacher edits the default title of the new multi column board + # teacher edits the default title of the new multi-column board When I click on the three dot menu in room board When I select the three dot menu action 'rename' - Then I change the default room board title to '' + Then I change the default room board title to '' When I click on the page outside of the title of the board - Then I see my room board is named '' + Then I see my room board is named '' - # cancel delete-process of the new multi column board + # cancel delete-process of the new multi-column board When I click on the three dot menu in room board When I select the three dot menu action 'delete' Then I see the button to cancel the dialog When I click on the button to cancel the deletion Then I see the page board details - Then I see the board '' on the room overview page + Then I see the board '' on the room overview page - # confirm delete-process of the new multi column board + # confirm delete-process of the new multi-column board When I click on the three dot menu in room board When I select the three dot menu action 'delete' Then I see the button to confirm the dialog Then I click on the button to confirm the deletion - Then I do not see the board '' in the room + Then I do not see the board '' in the room - # teacher creates a new single column board in the room + # teacher creates a new single-column board in the room Given I am logged in as a '' at '' When I go to room overview When I go to room '' @@ -56,17 +56,17 @@ Feature: Room - Add, edit and delete board in room Then I see the button to add board When I click on the fab button to add a Board Then I see the dialog box to select the Board type - When I click on button to add single column board + When I click on button to add single-column board Then I see the page board details - # teacher edits the default title of the new single column board + # teacher edits the default title of the new single-column board When I click on the three dot menu in room board When I select the three dot menu action 'rename' - Then I change the default room board title to '' + Then I change the default room board title to '' When I click on the page outside of the title of the board - Then I see my room board is named '' + Then I see my room board is named '' - # confirm delete-process of single column board + # confirm delete-process of single-column board When I click on the three dot menu in room board When I click on delete in board menu Then I see the button to confirm the dialog @@ -83,10 +83,10 @@ Feature: Room - Add, edit and delete board in room @school_api_test Examples: - | teacher | namespace | room_name | new_board_title | - | teacher1_brb | brb | Cypress Room Name | Board Cy Title | + | teacher | namespace | room_name | board_title | + | teacher1_brb | brb | Cypress Room Name | Board Cy Title | @staging_test Examples: - | teacher | namespace | room_name | new_board_title | - | teacher1_brb | brb | Cypress Room Name | Board Cy Title | + | teacher | namespace | room_name | board_title | + | teacher1_brb | brb | Cypress Room Name | Board Cy Title | diff --git a/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature b/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature index 7bcdbfef..1463a94e 100644 --- a/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature +++ b/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature @@ -36,7 +36,7 @@ Feature: Room Board - To share a board card link Then I see the button to add board When I click on the fab button to add a Board Then I see the dialog box to select the Board type - When I click on button to add multi column board + When I click on button to add multi-column board Then I see the page board details Then I see the chip Draft in the course board When I click on three dot menu in the board header @@ -71,13 +71,13 @@ Feature: Room Board - To share a board card link @school_api_test Examples: - | teacher_1 | teacher_2 | namespace | name_teacher_1 | name_teacher_2 | room_name | role_name | school_name | - | teacher1_nbc | teacher2_nbc | nbc | teacher_1 | teacher_2 | Cypress Test Room | Lehrkraft | cypress-automated-tests | + | teacher_1 | teacher_2 | namespace | name_teacher_1 | name_teacher_2 | room_name | role_name | school_name | + | teacher1_nbc | teacher2_nbc | nbc | teacher_1 | teacher_2 | Cypress Test Room | Lehrkraft | cypress-automated-tests | @staging_test Examples: - | teacher_1 | teacher_2 | namespace | name_teacher_1 | name_teacher_2 | room_name | role_name | school_name | - | teacher1_nbc | teacher2_nbc | nbc | Herzog | Hande | Cypress Test Room | Lehrkraft | Felix Mendelssohn-Gymnasium | + | teacher_1 | teacher_2 | namespace | name_teacher_1 | name_teacher_2 | room_name | role_name | school_name | + | teacher1_nbc | teacher2_nbc | nbc | Herzog | Hande | Cypress Test Room | Lehrkraft | Felix Mendelssohn-Gymnasium | diff --git a/cypress/e2e/room/addDeleteParticipants.feature b/cypress/e2e/rooms/addDeleteParticipants.feature similarity index 100% rename from cypress/e2e/room/addDeleteParticipants.feature rename to cypress/e2e/rooms/addDeleteParticipants.feature diff --git a/cypress/e2e/room/createEditDeleteRoom.feature b/cypress/e2e/rooms/createEditDeleteRoom.feature similarity index 100% rename from cypress/e2e/room/createEditDeleteRoom.feature rename to cypress/e2e/rooms/createEditDeleteRoom.feature diff --git a/cypress/e2e/tldraw/createTLdrawWithContent.feature b/cypress/e2e/tldraw/createTLdrawWithContent.feature index 6e4eb159..028e4837 100644 --- a/cypress/e2e/tldraw/createTLdrawWithContent.feature +++ b/cypress/e2e/tldraw/createTLdrawWithContent.feature @@ -13,12 +13,14 @@ Feature: TLDraw - Test tldraw on board # pre-condition: teacher creates a board with column and a card Given I am logged in as a '' at '' - Given a board exists in course '' - Given the board has a column with a card + Given a multi-column board exists in course '' + Given the multi-column board has a column with a card # teacher creates a whiteboard element in the card and draws on it + When I click on the three dot on the card + When I click on the option edit in the three dot menu on the card When I click on plus icon to add content into card - When I select whiteboard from the menu + When I select 'drawing-element' from the element selection dialog box When I click on the whiteboard element When I click on the pencil tool When I draw a line on the canvas with startpoint '100', '100' and endpoint '300', '300' @@ -42,10 +44,10 @@ Feature: TLDraw - Test tldraw on board @school_api_test Examples: - | namespace | admin | teacher | teacher_fullname | student | student_fullname | course_name | board_name | text_to_write | - | dbc | admin1_dbc | teacher1_dbc | cypress teacher_1 | student1_dbc | cypress student_1 | CypressAut TLDraw Course | CypressAut TLDraw Board | Hello World! | + | namespace | admin | teacher | teacher_fullname | student | student_fullname | course_name | board_name | text_to_write | + | dbc | admin1_dbc | teacher1_dbc | cypress teacher_1 | student1_dbc | cypress student_1 | CypressAut TLDraw Course | CypressAut TLDraw Board | Hello World! | @staging_test Examples: - | namespace | admin | teacher | teacher_fullname | student | student_fullname | course_name | board_name | text_to_write | - | brb | admin1_brb | teacher1_brb | Karl Herzog | student1_brb | Herbert Kraft | CypressAut TLDraw Course | CypressAut TLDraw Board | Hello World! | + | namespace | admin | teacher | teacher_fullname | student | student_fullname | course_name | board_name | text_to_write | + | brb | admin1_brb | teacher1_brb | Karl Herzog | student1_brb | Herbert Kraft | CypressAut TLDraw Course | CypressAut TLDraw Board | Hello World! | diff --git a/cypress/support/pages/course/pageCourses.js b/cypress/support/pages/course/pageCourses.js index 38bc9b4d..f5b61f3d 100644 --- a/cypress/support/pages/course/pageCourses.js +++ b/cypress/support/pages/course/pageCourses.js @@ -30,7 +30,7 @@ class Courses { static #backToDraftButtonInDotMenuOfTopic = '[data-testid="lesson-card-menu-action-revert-0"]'; static #taskCardTitleInCoursePageWithIndex = '[data-testid="task-title-0"]'; - static #boardCardTitleInCoursePageWithIndex = '[data-testid="board-card-title-0"]'; + static #boardCardTitleInCoursePageWithIndex = '[data-testid="board-title-0"]'; static #taskCardThreeDotMenuInCoursePageWithIndex = '[data-testid="task-card-menu-0"]'; static #taskCardInCoursePageWithIndex = '[data-testid="room-task-card-0"]'; @@ -458,20 +458,25 @@ class Courses { seeTaskOnCoursePage(taskTitle) { // no cy.wait('@rooms_api') here as the reload takes care of this - cy.reload(); // Reload is necessary because after deletion of a content element a message window with its title stays hidden in the DOM + // Reload is necessary because after deletion of a content element a message window with its title stays hidden in the DOM + cy.reload(); cy.get(Courses.#taskCardTitleInCoursePageWithIndex) .contains(taskTitle) .should("be.visible"); } - seeBoardOnCoursePage() { + seeBoardOnCoursePage(boardTitle) { // no cy.wait('@rooms_api') here as the reload takes care of this - cy.reload(); // Reload is necessary because after deletion of a content element a message window with its title stays hidden in the DOM - cy.get(Courses.#boardCardTitleInCoursePageWithIndex).should("be.visible"); + // Reload is necessary because after deletion of a content element a message window with its title stays hidden in the DOM + cy.reload(); + cy.get(Courses.#boardCardTitleInCoursePageWithIndex) + .contains(boardTitle) + .should("be.visible"); } contentIsNotVisibleOnCoursePage(contentTitle) { - cy.reload(); // Reload is necessary because after deletion of a content element a message window with its title stays hidden in the DOM + // Reload is necessary because after deletion of a content element a message window with its title stays hidden in the DOM + cy.reload(); cy.contains(contentTitle).should("not.exist"); } diff --git a/cypress/support/pages/course_board/pageBoard.js b/cypress/support/pages/course_board/pageBoard.js index 1820603d..dd1ed3b6 100644 --- a/cypress/support/pages/course_board/pageBoard.js +++ b/cypress/support/pages/course_board/pageBoard.js @@ -27,13 +27,13 @@ class Board { static #draftChipInCourseBoardName = '[data-testid="board-draft-chip"]'; static #addCardInColumnButton = '[data-testid="column-0-add-card-btn"]'; static #addContentIntoCardButton = '[data-testid="add-element-btn"]'; - static #selectWhiteboardFromMenu = '[data-testid="create-element-drawing-element"]'; static #selectExternalToolsFromMenu = '[data-testid="create-element-external-tool-container"]'; static #externalToolElement = '[data-testid="board-external-tool-element"]'; static #deletedElement = '[data-testid="board-deleted-element"]'; static #boardMenuActionPublish = '[data-testid="kebab-menu-action-publish"]'; - static #boardMenuActionChangeLayout = '[data-testid="board-menu-action-change-layout"]'; + static #boardMenuActionChangeLayout = + '[data-testid="board-menu-action-change-layout"]'; static #boardLayoutDialogBoxTitle = '[data-testid="board-layout-dialog-title"]'; static #multiColumnBoardOptionInDialogBox = '[data-testid="dialog-add-multi-column-board"]'; @@ -44,7 +44,7 @@ class Board { '[data-testid="board-external-tool-element-alert"]'; static #boardCard = '[data-testid="board-card-0-0"]'; static #copyBoardCardLinkButton = '[data-testid="board-menu-action-share-link"]'; - static #firstBoardColumn = '[data-testid="board-column-0"]' + static #firstBoardColumn = '[data-testid="board-column-0"]'; clickPlusIconToAddCardInColumn() { cy.get(Board.#addCardInColumnButton).click(); @@ -54,8 +54,8 @@ class Board { cy.get(Board.#addContentIntoCardButton).click(); } - selectWhiteboardFromMenu() { - cy.get(Board.#selectWhiteboardFromMenu).click(); + selectCardElementFromMenu(cardElementName) { + cy.get(`[data-testid="create-element-${cardElementName}"]`).click(); } seeWhiteboardOnPage() { @@ -400,21 +400,23 @@ class Board { cy.get(Board.#boardCard).should("be.visible"); } - selectCopyLinkToCardInThreeDotMenu(){ + selectCopyLinkToCardInThreeDotMenu() { cy.get(Board.#copyBoardCardLinkButton).click(); - cy.window().then((win) => { - return win.navigator.clipboard.readText(); - }).then((link) => { - cy.wrap(link).as("boardCardLink"); + cy.window() + .then((win) => { + return win.navigator.clipboard.readText(); + }) + .then((link) => { + cy.wrap(link).as("boardCardLink"); - cy.url().then((currentUrl) => { - expect(link).to.include(currentUrl); + cy.url().then((currentUrl) => { + expect(link).to.include(currentUrl); + }); }); - }); } - openBoardCardLink(){ + openBoardCardLink() { cy.get("@boardCardLink").then((link) => { cy.visit(link); }); @@ -428,13 +430,13 @@ class Board { cy.get(Board.#boardCard).should("be.focused"); } - seeSingleColumnBoard(){ + seeSingleColumnBoard() { cy.get(Board.#firstBoardColumn) .should("have.class", "d-flex flex-column align-stretch my-0") .should("not.have.attr", "style", "min-width: 400px; max-width: 400px;"); } - seeMultiColumnBoard(){ + seeMultiColumnBoard() { cy.get(Board.#firstBoardColumn) .should("have.class", "px-4") .should("have.attr", "style", "min-width: 400px; max-width: 400px;"); diff --git a/cypress/support/pages/room_board/pageRoomBoards.js b/cypress/support/pages/room_board/pageRoomBoards.js index 90bd3ab5..7f4d9b47 100644 --- a/cypress/support/pages/room_board/pageRoomBoards.js +++ b/cypress/support/pages/room_board/pageRoomBoards.js @@ -19,6 +19,106 @@ class RoomBoards { static #singleColumnBoardSelector = '[data-testid="board-tile-title-1"]'; static #multiColumnCopiedBoardSelector = '[data-testid="board-tile-title-2"]'; static #singleColumnCopiedBoardSelector = '[data-testid="board-tile-title-3"]'; + static #elementSelectionDialog = '[data-testid="element-type-selection"]'; + static #closeDialogButton = '[data-testid="dialog-close"]'; + static #videoConferenceTitleInput = '[data-testid="video-conference-element-title"]'; + static #saveButton = '[data-testid="save-video-conference-title-button"]'; + static #videoConferenceElement = '[data-testid="board-video-conference-element"]'; + static #videoConferenceModal = '[data-testid="video-conference-config-dialog"]'; + static #createVideoConferenceButton = '[data-testid="dialog-create"]'; + static #moderatorApprovalCheckbox = + '[data-testid="moderator-must-approve-join-requests"]'; + static #cancelButtonInVideoConferenceModal = '[data-testid="dialog-cancel"]'; + static #globalCommonThreeDotButton = '[data-testid="board-menu-icon"]'; + static #deleteOptionOnVideoConferenceElementDialog = + '[data-testid="kebab-menu-action-delete"]'; + static #deleteConfirmationDialogForVideoConferenceElement = + '[data-testid="dialog-title"]'; + static #deleteButtonOnVideoConferenceElementDialog = '[data-testid="dialog-confirm"]'; + static #threeDotButtonInCard = '[data-testid="card-menu-btn-0-0"]'; + static #editOptionInCardThreeDot = '[data-testid="kebab-menu-action-edit"]'; + + clickOnThreeDotInCard() { + cy.get(RoomBoards.#threeDotButtonInCard) + //three dot has same data-testid and needs to be located inside the parent element + .find(RoomBoards.#globalCommonThreeDotButton) + .click(); + } + + clickEditOptionInCardThreeDot() { + cy.get(RoomBoards.#editOptionInCardThreeDot).click(); + } + + clickThreeDotMenuInVideoConferenceElement() { + cy.get(RoomBoards.#videoConferenceElement) + //three dot has same data-testid and needs to be located inside the parent element + .find(RoomBoards.#globalCommonThreeDotButton) + .click(); + } + + clickDeleteOptionInThreeDotMenu() { + cy.get(RoomBoards.#deleteOptionOnVideoConferenceElementDialog).click(); + } + + verifyDeleteConfirmationDialogVisible() { + cy.get(RoomBoards.#deleteConfirmationDialogForVideoConferenceElement).should( + "be.visible" + ); + } + + clickDeleteButtonInConfirmationDialog() { + cy.get(RoomBoards.#deleteButtonOnVideoConferenceElementDialog).click(); + } + + verifyVideoConferenceElementNotVisible() { + cy.get(RoomBoards.#videoConferenceElement).should("not.exist"); + } + + clickCancelButtonInVideoConferenceCreationModal() { + cy.get(RoomBoards.#cancelButtonInVideoConferenceModal).click(); + } + + verifyModeratorApprovalCheckboxCheckedInBBBModal() { + cy.get(RoomBoards.#moderatorApprovalCheckbox) + .find('input[type="checkbox"]') // Find the checkbox inside the parent options + .should("be.checked"); + } + + seeElementSelectionDialog() { + cy.get(RoomBoards.#elementSelectionDialog).should("be.visible"); + } + + clickCloseButtonOnElementSelectionDialog() { + cy.get(RoomBoards.#closeDialogButton).click(); + } + + doNotSeeElementSelectionDialog() { + cy.get(RoomBoards.#elementSelectionDialog).should("not.exist"); + } + + enterVideoConferenceTitle(videoConferenceTitle) { + cy.get(RoomBoards.#videoConferenceTitleInput).clear().type(videoConferenceTitle); + } + + clickSaveButtonOrPressEnterToSaveVideoConferenceTitle() { + cy.get(RoomBoards.#saveButton).click(); + } + + verifyVideoConferenceElementAddedInCard() { + cy.get(RoomBoards.#videoConferenceElement).should("be.visible"); + } + + clickVideoConferenceElementInCard() { + cy.get(RoomBoards.#videoConferenceElement).click(); + } + + seeVideoConferenceStartDaialog() { + cy.get(RoomBoards.#videoConferenceModal).should("be.visible"); + } + + seeCreateButtonInVideoConferenceDialog() { + cy.get(RoomBoards.#createVideoConferenceButton).should("be.visible"); + } verifyMultiColumnCopiedBoardTileVisibleOnRoomDetailsPage() { cy.get(RoomBoards.#multiColumnCopiedBoardSelector).should("be.visible"); @@ -84,8 +184,9 @@ class RoomBoards { } enterRoomBoardTitle(boardTitle) { cy.get(RoomBoards.#roomBoardTitleOnPage).within(() => { - this.clearAndType("input", boardTitle); // Clear and type the new title - cy.get("input").type("{esc}"); // Press Esc after typing, it works this way to save the title in a stable way. + this.clearAndType("input", boardTitle); + // Press Esc after typing, it works this way to save the title in a stable way. + cy.get("input").type("{esc}"); cy.wait(1000); }); } diff --git a/cypress/support/pages/room/pageRooms.js b/cypress/support/pages/rooms/pageRooms.js similarity index 100% rename from cypress/support/pages/room/pageRooms.js rename to cypress/support/pages/rooms/pageRooms.js diff --git a/cypress/support/step_definition/common_helper/prePostConditionSteps.spec.js b/cypress/support/step_definition/common_helper/prePostConditionSteps.spec.js index 5cebfd35..c86ded20 100644 --- a/cypress/support/step_definition/common_helper/prePostConditionSteps.spec.js +++ b/cypress/support/step_definition/common_helper/prePostConditionSteps.spec.js @@ -2,12 +2,22 @@ import { Given } from "@badeball/cypress-cucumber-preprocessor"; import Board from "../../pages/course_board/pageBoard"; import Courses from "../../pages/course/pageCourses"; import RoomBoards from "../../pages/room_board/pageRoomBoards"; -import Rooms from "../../pages/room/pageRooms"; +import Rooms from "../../pages/rooms/pageRooms"; +import Management from "../../pages/admin/pageAdministration"; const roomBoards = new RoomBoards(); const rooms = new Rooms(); const courses = new Courses(); const board = new Board(); +const management = new Management(); + +Given("admin enables video conference for the school in the school settings page", () => { + management.openAdministrationInMenu(); + management.clickOnSchoolAdministrationInSideMenu(); + management.clickGeneralSettingsPanel(); + management.enableTeamsVideoConferenceByAdmin(); + management.clickOnAdminSettingsSave(); +}); Given("the room named {string} is deleted", (room_name) => { rooms.openThreeDotMenuForRoom(); @@ -29,7 +39,7 @@ Given("a room named {string} exists", (room_name) => { rooms.seeRoomDetailPage(room_name); }); -Given("a multi-column board named {string} exists in the room", (new_board_title) => { +Given("a multi-column board named {string} exists in the room", (board_title) => { rooms.clickOnAddContentButton(); rooms.seeFabButtonToAddBoard(); rooms.clickOnFabButtonToAddBoard(); @@ -38,13 +48,12 @@ Given("a multi-column board named {string} exists in the room", (new_board_title roomBoards.seeNewRoomBoardCreatePage(); roomBoards.clickOnThreeDotMenuInRoomBoardTitle(); roomBoards.clickOnEditInBoardMenu(); - roomBoards.enterRoomBoardTitle(new_board_title); + roomBoards.enterRoomBoardTitle(board_title); roomBoards.clickOutsideTheTitleToSaveTheModifiedTitle(); - roomBoards.seeUpdatedRoomBoardTitle(new_board_title); - roomBoards.clickOnBreadcrumbToNavigateToRoomDetail(); + roomBoards.seeUpdatedRoomBoardTitle(board_title); }); -Given("a single-column board named {string} exists in the room", (new_board_title) => { +Given("a single-column board named {string} exists in the room", (board_title) => { rooms.clickOnAddContentButton(); rooms.seeFabButtonToAddBoard(); rooms.clickOnFabButtonToAddBoard(); @@ -53,9 +62,12 @@ Given("a single-column board named {string} exists in the room", (new_board_titl roomBoards.seeNewRoomBoardCreatePage(); roomBoards.clickOnThreeDotMenuInRoomBoardTitle(); roomBoards.clickOnEditInBoardMenu(); - roomBoards.enterRoomBoardTitle(new_board_title); + roomBoards.enterRoomBoardTitle(board_title); roomBoards.clickOutsideTheTitleToSaveTheModifiedTitle(); - roomBoards.seeUpdatedRoomBoardTitle(new_board_title); + roomBoards.seeUpdatedRoomBoardTitle(board_title); +}); + +Given("I navigate to the room detail page from the board page", () => { roomBoards.clickOnBreadcrumbToNavigateToRoomDetail(); }); @@ -73,7 +85,7 @@ Given( } ); -Given("a board exists in course {string}", (courseName) => { +Given("a multi-column board exists in course {string}", (courseName) => { courses.navigateToCoursesOverview(); courses.navigateToCoursePage(courseName); courses.clickOnCreateContentFAB(); @@ -83,10 +95,11 @@ Given("a board exists in course {string}", (courseName) => { board.clickPublishOptionInThreeDotMenuInCourseBoard(); }); -Given("the board has a column with a card", (columnName) => { +Given("the multi-column board has a column with a card", () => { board.clickOnAddNewColumnButton(); board.clickOutsideTheColumnToSaveTheColumn(); board.clickPlusIconToAddCardInColumn(); + board.clickOutsideTheCardToSaveTheCard(); }); Given("course with name {string} is deleted", (courseName) => { diff --git a/cypress/support/step_definition/course/commonCourseSteps.spec.js b/cypress/support/step_definition/course/commonCourseSteps.spec.js index 94e73ec8..9bd10b30 100644 --- a/cypress/support/step_definition/course/commonCourseSteps.spec.js +++ b/cypress/support/step_definition/course/commonCourseSteps.spec.js @@ -89,8 +89,8 @@ When("I can see task {string} on course page", (taskTitle) => { courses.seeTaskOnCoursePage(taskTitle); }); -When("I can see board on course page", () => { - courses.seeBoardOnCoursePage(); +Then("I can see board {string} on course page", (boardTitle) => { + courses.seeBoardOnCoursePage(boardTitle); }); When("I can not see content {string}", (contentTitle) => { diff --git a/cypress/support/step_definition/course_board/commonBoardSteps.spec.js b/cypress/support/step_definition/course_board/commonBoardSteps.spec.js index 209c7214..d98a5e43 100644 --- a/cypress/support/step_definition/course_board/commonBoardSteps.spec.js +++ b/cypress/support/step_definition/course_board/commonBoardSteps.spec.js @@ -79,8 +79,8 @@ Then("I see a whiteboard on the board", () => { board.seeWhiteboardOnPage(); }); -Then("I select whiteboard from the menu", () => { - board.selectWhiteboardFromMenu(); +Then("I select {string} from the element selection dialog box", (cardElementName) => { + board.selectCardElementFromMenu(cardElementName); }); Then("I see a board card", () => { @@ -97,4 +97,4 @@ When("I click on the page outside of the card", () => { Then("I see the focused board card", () => { board.seeFocusedBoardCard(); -}); \ No newline at end of file +}); diff --git a/cypress/support/step_definition/course_board/courseBoardSteps.spec.js b/cypress/support/step_definition/course_board/courseBoardSteps.spec.js index 7c0ef79a..37d28970 100644 --- a/cypress/support/step_definition/course_board/courseBoardSteps.spec.js +++ b/cypress/support/step_definition/course_board/courseBoardSteps.spec.js @@ -83,7 +83,7 @@ Then("I see in dialog box option for multi-column board", () => { board.seeMultiColumnBoardOptionInDialogBox(); }); -Then("I see in dialog box option for single column board", () => { +Then("I see in dialog box option for single-column board", () => { board.seeSingleColumnBoardOptionInDialogBox(); }); @@ -111,7 +111,7 @@ When("I click on three dot menu of external tool element {string}", (toolName) = board.clickThreeDotMenuOnExternalToolElementWithTool(toolName); }); -When("I select external tools from the menu", () => { +When("I select external tools from the element selection dialog box", () => { board.selectExternalToolsFromMenu(); }); @@ -119,9 +119,12 @@ Then("I see preferred tool {string} in the menu", (toolName) => { board.seePreferredExternalToolInMenu(toolName); }); -Then("I select preferred tool {string} from the menu", (toolName) => { - board.selectPreferredExternalToolFromMenu(toolName); -}); +Then( + "I select preferred tool {string} from the element selection dialog box", + (toolName) => { + board.selectPreferredExternalToolFromMenu(toolName); + } +); Then("I do not see preferred tool {string} in the menu", (toolName) => { board.preferredExternalToolIsNotVisibleInMenu(toolName); diff --git a/cypress/support/step_definition/room_boards/roomBoardSteps.spec.js b/cypress/support/step_definition/room_boards/roomBoardSteps.spec.js index bca622f5..d7fba780 100644 --- a/cypress/support/step_definition/room_boards/roomBoardSteps.spec.js +++ b/cypress/support/step_definition/room_boards/roomBoardSteps.spec.js @@ -3,6 +3,91 @@ import RoomBoards from "../../pages/room_board/pageRoomBoards"; const roomBoards = new RoomBoards(); +When("I click on the option edit in the three dot menu on the card", () => { + roomBoards.clickEditOptionInCardThreeDot(); +}); + +When("I click on the three dot on the card", () => { + roomBoards.clickOnThreeDotInCard(); +}); + +When("I click on the three-dot menu in the video conference element", () => { + roomBoards.clickThreeDotMenuInVideoConferenceElement(); +}); + +When("I click on the delete option in the three-dot menu", () => { + roomBoards.clickDeleteOptionInThreeDotMenu(); +}); + +Then("I see the delete confirmation dialog", () => { + roomBoards.verifyDeleteConfirmationDialogVisible(); +}); + +When("I click on the delete button in the confirmation dialog", () => { + roomBoards.clickDeleteButtonInConfirmationDialog(); +}); + +Then("I do not see the video conference element", () => { + roomBoards.verifyVideoConferenceElementNotVisible(); +}); + +Then( + "I see the moderator approval checkbox is checked in the video conference start modal", + () => { + roomBoards.verifyModeratorApprovalCheckboxCheckedInBBBModal(); + } +); + +Then("I see the dialog box for element selection", () => { + roomBoards.seeElementSelectionDialog(); +}); + +When("I click on the button Close on the element selection dialogue box", () => { + roomBoards.clickCloseButtonOnElementSelectionDialog(); +}); + +Then("I do not see the element selection dialogue box", () => { + roomBoards.doNotSeeElementSelectionDialog(); +}); + +Then("I see the dialog box to select element for the card", () => { + roomBoards.seeElementSelectionDialog(); +}); + +When("I enter the video conference title {string}", (videoConferenceTitle) => { + roomBoards.enterVideoConferenceTitle(videoConferenceTitle); +}); + +When("I click on the save button or press the button enter key", () => { + roomBoards.clickSaveButtonOrPressEnterToSaveVideoConferenceTitle(); +}); + +Then("I see the video conference element added in the card", () => { + roomBoards.verifyVideoConferenceElementAddedInCard(); +}); + +When("I click on the video conference element in the card", () => { + roomBoards.clickVideoConferenceElementInCard(); +}); + +Then("I see the modal to start the video conference", () => { + roomBoards.seeVideoConferenceStartDaialog(); +}); + +Then( + "I see the button create in the video conference creation modal to start the call", + () => { + roomBoards.seeCreateButtonInVideoConferenceDialog(); + } +); + +Then( + "I click on the button cancel in the video conference creation modal to go back to the card", + () => { + roomBoards.clickCancelButtonInVideoConferenceCreationModal(); + } +); + Then("I see copied multi-column board tile in the rooms details page", () => { roomBoards.verifyMultiColumnCopiedBoardTileVisibleOnRoomDetailsPage(); }); @@ -35,11 +120,11 @@ Then("I see the dialog box to select the Board type", () => { roomBoards.seeColumnBoardDialogBox(); }); -When("I click on button to add multi column board", () => { +When("I click on button to add multi-column board", () => { roomBoards.clickOnButtonToAddMultiColumnBoard(); }); -When("I click on button to add single column board", () => { +When("I click on button to add single-column board", () => { roomBoards.clickOnButtonToAddSingleColumnBoard(); }); diff --git a/cypress/support/step_definition/room/roomSteps.spec.js b/cypress/support/step_definition/rooms/roomSteps.spec.js similarity index 97% rename from cypress/support/step_definition/room/roomSteps.spec.js rename to cypress/support/step_definition/rooms/roomSteps.spec.js index 896aea38..9468882c 100644 --- a/cypress/support/step_definition/room/roomSteps.spec.js +++ b/cypress/support/step_definition/rooms/roomSteps.spec.js @@ -1,5 +1,5 @@ const { When, Then } = require("@badeball/cypress-cucumber-preprocessor"); -import Rooms from "../../pages/room/pageRooms"; +import Rooms from "../../pages/rooms/pageRooms"; import RoomBoards from "../../pages/room_board/pageRoomBoards"; const rooms = new Rooms(); @@ -138,8 +138,6 @@ Then("I see the button to add board", () => { rooms.seeFabButtonToAddBoard(); }); -When ("I click on the fab button to add a Board", () => { +When("I click on the fab button to add a Board", () => { rooms.clickOnFabButtonToAddBoard(); }); - -