From 288eb4ad04213e750b3152fc885fce4d45513929 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 6 Dec 2024 13:37:36 +0100 Subject: [PATCH 01/23] adjust media shelf test --- .../noAvailableToolsInMediaShelf.feature | 19 +- cypress/e2e/mediashelf/useMediaShelf.feature | 274 +++++++++--------- 2 files changed, 146 insertions(+), 147 deletions(-) diff --git a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature index a8b26b00..9e4f2dd2 100644 --- a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature @@ -2,14 +2,14 @@ @stable_test Feature: No available tools in media shelf - As a User I want to see the no longer available chip on media element in media shelf + As a user I want to see the no longer available chip on media element in media shelf @stable_test Scenario Outline: User sees no longer available chip on media element in media shelf + Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: admin adds a tool - Given I am logged in as a '' at '' + # Pre-condition: Admin adds a tool 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 @@ -23,7 +23,8 @@ Feature: No available tools in media shelf When I click on save external tool button Then I see the tool 'CY Test Tool 1' in external tools table - # Admin moves tool in first media line + # Teacher moves tool in first media line + Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title Then I see the available media line @@ -34,15 +35,18 @@ Feature: No available tools in media shelf Then I see tool 'CY Test Tool 1' in the first media line # Admin deletes tool + Given I am logged in as a '' at '' 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table Then I see the external tools table is empty - # Teacher sees no longer available chip on media element + # Teacher sees 'no longer available' chip on media element + Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title Then I see tool 'CY Test Tool 1' in the first media line @@ -56,11 +60,10 @@ Feature: No available tools in media shelf Then I see the first media line has been deleted Then I see the no available media infotext - @staging_test Examples: - | admin | namespace | - | admin1_nbc | nbc | + | admin | teacher | namespace | + | admin1_nbc | teacher1_nbc | nbc | # @school_api_test # This feature is not executable with the school_api \ No newline at end of file diff --git a/cypress/e2e/mediashelf/useMediaShelf.feature b/cypress/e2e/mediashelf/useMediaShelf.feature index 6ea26dfb..6b6b7a78 100644 --- a/cypress/e2e/mediashelf/useMediaShelf.feature +++ b/cypress/e2e/mediashelf/useMediaShelf.feature @@ -1,149 +1,145 @@ -@unstable_test +@regression_test +@stable_test Feature: Media Shelf - To show media shelf with respective functionality - As an teacher I want to use the media shelf + As a teacher I want to use the media shelf - @unstable_test - Scenario: Pre-test: 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 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 - When I click the add external tool button - When I select the tool 'CY Test Tool 2' 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 2' in external tools table + @stable_test + Scenario: Teacher uses the media shelf + Given I am logged in as a 'teacher1_nbc' at 'nbc' + Given I am logged in as a 'admin1_nbc' at 'nbc' - @unstable_test - Scenario: Teacher opens media shelf - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to media shelf - Then I see the media shelf page title - Then I see the available media line - Then I see 2 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 2' in the available media line - Then I see the thumbnail, title and description of media element 'CY Test Tool 1' - When I click on grid layout button - Then I see the grid layout - When I click on list layout button - Then I see the list layout - # Teachers tests available media line - When I click on collapse available media line button - Then I see the available media line is collapsed - When I click on collapse available media line button - Then I see the available media line is not collapsed - When I click on three dot menu button on available media line - Then I see the available media line menu - When I click on color picker button - Then I see the available background colors - When I select the background color - Then I see the available media line has background color 'rgb(251, 233, 231)' - # Teachers tests first media line - When I click add media line button - Then I see the first media line - When I double click on the title of the first median line - When I edit the title of the first median line to 'Test Abschnitt' - Then I see the first media line with title 'Test Abschnitt' - When I click the collapse button on the first media line - Then I see the first media line is collapsed - When I click the collapse button on the first media line - Then I see the first media line is not collapsed - When I click the three dot menu button on the first media line - Then I see the media line menu - When I click on edit title button - When I edit the title of the first median line to 'Favoriten' - Then I see the first media line with title 'Favoriten' - When I click the three dot menu button on the first media line - Then I see the media line menu - When I click on color picker button - Then I see the available background colors - When I select the background color - Then I see the first media line has background color 'rgb(251, 233, 231)' - When I click the three dot menu button on the first media line - Then I see the media line menu - When I click on delete media line button - Then I see the first media line has been deleted + # Pre-condition: Admin adds external tools to school + 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 + When I click the add external tool button + When I select the tool 'CY Test Tool 2' 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 2' in external tools table - # Test Drag & Drop in media shelf - # Drag & Drop tool in new Line - When I move tool 'CY Test Tool 1' in to ghost media line - Then I see the first media line - Then I see tool 'CY Test Tool 1' in the first media line - # Launch tool in available media line - When I launch tool 'CY Test Tool 2' in the available media line with given url 'https://google.com/' - Then I see tool 'CY Test Tool 2' on media element was launched - # Launch tool in first media line - When I launch tool 'CY Test Tool 1' in the first media line with given url 'https://google.com/' - Then I see tool 'CY Test Tool 1' on media element was launched - # Drag & Drop tool from one line to another line - When I move tool 'CY Test Tool 2' in the first media line - Then I see tool 'CY Test Tool 2' in the first media line - # Drag & Drop tool in available line - When I move tool 'CY Test Tool 2' to the empty available media line - Then I see tool 'CY Test Tool 2' in the available media line - # Delete line with tool - When I click the three dot menu button on the first media line - Then I see the media line menu - When I click on delete media line button - Then I see the first media line has been deleted - Then I see tool 'CY Test Tool 1' in the available media line - Then I see the first media line has been deleted + # Teacher opens media shelf + Given I am logged in as a 'teacher1_nbc' at 'nbc' + When I go to media shelf + Then I see the media shelf page title + Then I see the available media line + Then I see 2 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 2' in the available media line + Then I see the thumbnail, title and description of media element 'CY Test Tool 1' + When I click on grid layout button + Then I see the grid layout + When I click on list layout button + Then I see the list layout + # Teacher tests available media line + When I click on collapse available media line button + Then I see the available media line is collapsed + When I click on collapse available media line button + Then I see the available media line is not collapsed + When I click on three dot menu button on available media line + Then I see the available media line menu + When I click on color picker button + Then I see the available background colors + When I select the background color + Then I see the available media line has background color 'rgb(251, 233, 231)' + # Teacher tests first media line + When I click add media line button + Then I see the first media line + When I double click on the title of the first median line + When I edit the title of the first median line to 'Test Abschnitt' + Then I see the first media line with title 'Test Abschnitt' + When I click the collapse button on the first media line + Then I see the first media line is collapsed + When I click the collapse button on the first media line + Then I see the first media line is not collapsed + When I click the three dot menu button on the first media line + Then I see the media line menu + When I click on edit title button + When I edit the title of the first median line to 'Favoriten' + Then I see the first media line with title 'Favoriten' + When I click the three dot menu button on the first media line + Then I see the media line menu + When I click on color picker button + Then I see the available background colors + When I select the background color + Then I see the first media line has background color 'rgb(251, 233, 231)' + When I click the three dot menu button on the first media line + Then I see the media line menu + When I click on delete media line button + Then I see the first media line has been deleted - When I move tool 'CY Test Tool 1' in to ghost media line - Then I see the first media line - Then I see tool 'CY Test Tool 1' in the first media line - When I move tool 'CY Test Tool 2' in the first media line - Then I see tool 'CY Test Tool 2' in the first media line + # Test Drag & Drop in media shelf + # Teacher drags & drops tool in new Line + When I move tool 'CY Test Tool 1' in to ghost media line + Then I see the first media line + Then I see tool 'CY Test Tool 1' in the first media line + # Teacher launches tool in available media line + When I launch tool 'CY Test Tool 2' in the available media line with given url 'https://google.com/' + Then I see tool 'CY Test Tool 2' on media element was launched + # Teacher launches tool in first media line + When I launch tool 'CY Test Tool 1' in the first media line with given url 'https://google.com/' + Then I see tool 'CY Test Tool 1' on media element was launched + # Teacher drags & drops tool from one line to another line + When I move tool 'CY Test Tool 2' in the first media line + Then I see tool 'CY Test Tool 2' in the first media line + # Teacher drags & drops tool in available line + When I move tool 'CY Test Tool 2' to the empty available media line + Then I see tool 'CY Test Tool 2' in the available media line + # Teacher deletes line with tool + When I click the three dot menu button on the first media line + Then I see the media line menu + When I click on delete media line button + Then I see the first media line has been deleted + Then I see tool 'CY Test Tool 1' in the available media line + Then I see the first media line has been deleted - # Teacher deletes tool - When I click the three dot menu button on media element 'CY Test Tool 1' - When I click on delete media element button - Then I see delete media element dialog - When I click confirm delete media element button - Then I see tool 'CY Test Tool 1' in the available media line + # Teacher deletes tool + When I move tool 'CY Test Tool 1' in to ghost media line + Then I see the first media line + Then I see tool 'CY Test Tool 1' in the first media line + When I move tool 'CY Test Tool 2' in the first media line + Then I see tool 'CY Test Tool 2' in the first media line + When I click the three dot menu button on media element 'CY Test Tool 1' + When I click on delete media element button + Then I see delete media element dialog + When I click confirm delete media element button + Then I see tool 'CY Test Tool 1' in the available media line - # Deleting a tool from another location - # Admin deletes tool from school admin page - 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 - When I click on delete button of tool 'CY Test Tool 2' - When I confirm deletion on deletion dialog - # Teachers removes deleted media element placeholder - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to media shelf - Then I see the no longer available chip on media element 'CY Test Tool 2' - When I click the three dot menu button on media element 'CY Test Tool 2' - When I click on delete media element button - Then I see delete media element dialog - When I click confirm delete media element button - Then I do not see tool 'CY Test Tool 2' in the available media line + # Post-condition: Teacher resets media shelf + When I click the three dot menu button on the first media line + Then I see the media line menu + When I click on delete media line button + Then I see the first media line has been deleted + Then I see tool 'CY Test Tool 2' in the available media line + When I click on three dot menu button on available media line + Then I see the available media line menu + When I click on color picker button + Then I see the available background colors + When I select default line color + Then I see the available media line has background color 'rgb(255, 255, 255)' - # Post Test: Reset Media Shelf - When I click the three dot menu button on the first media line - Then I see the media line menu - When I click on delete media line button - Then I see the first media line has been deleted - When I click on three dot menu button on available media line - Then I see the available media line menu - When I click on color picker button - Then I see the available background colors - When I select default line color - Then I see the available media line has background color 'rgb(255, 255, 255)' + # Post-condition: Admin deletes external 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 + When I click on delete button of tool 'CY Test Tool 1' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool 1' in external tools table + When I click on delete button of tool 'CY Test Tool 2' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I see the external tools table is empty - @unstable_test - Scenario: Post-test: Admin deletes external 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 - When I click on delete button of tool 'CY Test Tool 1' - When I confirm deletion on deletion dialog + @staging_test + Examples: + | admin | teacher | namespace | + | admin1_nbc | teacher1_nbc | nbc | + + # @school_api_test + # This feature is not executable with the school_api From 5bf37c518cda156b0c713e71d79ac82987fa9e04 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 6 Dec 2024 13:38:13 +0100 Subject: [PATCH 02/23] adjust administrateCtlTools test --- .../e2e/admin/administrateCtlTools.feature | 44 ++++++++++++------- .../support/pages/admin/pageAdministration.js | 2 +- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/cypress/e2e/admin/administrateCtlTools.feature b/cypress/e2e/admin/administrateCtlTools.feature index a4525c84..beba09a6 100644 --- a/cypress/e2e/admin/administrateCtlTools.feature +++ b/cypress/e2e/admin/administrateCtlTools.feature @@ -1,11 +1,14 @@ -@unstable_test -Feature: Admin CTL Tools - To add, edit and delete CTL tools by the admin +@regression_test +@stable_test +Feature: Admin adds, edits and deletes CTL tools in school As an admin I want to administrate the CTL tools used in the school - @unstable_test - Scenario: Admin adds, edits and deletes external tools - Given I am logged in as a 'admin1_nbc' at 'nbc' + @stable_test + Scenario Outline: Admin adds, edits and deletes external tools + Given I am logged in as a '' at '' + + # Admin tries to find a hidden external tool 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 @@ -14,16 +17,15 @@ Feature: Admin CTL Tools - To add, edit and delete CTL tools by the admin 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 find a hidden external tool Then I do not see external tool 'CY Test Tool Hidden' in the tool selection - # Admin adds a tool + # 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 - # Admin adds a tool with required custom parameter + # Admin adds a tool with required custom parameter 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 @@ -35,17 +37,17 @@ Feature: Admin CTL Tools - To add, edit and delete CTL tools by the admin When I click on save external tool button Then I see the tool 'CY Test Tool Required Parameters' in external tools table - # Admin adds a tool via tool link with parameter + # Admin adds a tool via tool link with parameter 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 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 + Then I see tool 'CY Test Tool OpenStreetMap' is selected When I click on save external tool button - Then I see the tool 'OpenStreetMap' in external tools table + Then I see the tool 'CY Test Tool OpenStreetMap' in external tools table - # Admin adds a tool with optional custom parameter + # Admin adds a tool with optional custom parameter 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 @@ -57,7 +59,7 @@ Feature: Admin CTL Tools - To add, edit and delete CTL tools by the admin When I click on save external tool button Then I see the tool 'CY Test Tool Optional Parameters' in external tools table - # Admin edits a tool + # Admin edits a tool When I click on edit button of tool 'CY Test Tool Optional Parameters' Then I see the external tools configuration page Then I see the external tool configuration page title @@ -71,7 +73,7 @@ Feature: Admin CTL Tools - To add, edit and delete CTL tools by the admin Then I see the external tools configuration page Then I see custom parameter input field 'schoolParam' contains 'updated test' - # Admin deletes tools + # Admin deletes 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 @@ -79,6 +81,7 @@ Feature: Admin CTL Tools - To add, edit and delete CTL tools by the admin Then I see the tool 'CY Test Tool 1' in external tools table Then I see the tool 'CY Test Tool Required Parameters' in external tools table Then I see the tool 'CY Test Tool Optional Parameters' in external tools table + Then I see the tool 'CY Test Tool OpenStreetMap' in external tools table When I click on delete button of tool 'CY Test Tool 1' Then I see the external tool deletion dialog title Then I see the external tool deletion dialog information text @@ -93,9 +96,18 @@ Feature: Admin CTL Tools - To add, edit and delete CTL tools by the admin Then I see the external tool deletion dialog title Then I see the external tool deletion dialog information text When I confirm deletion on deletion dialog - When I click on delete button of tool 'OpenStreetMap' + Then I do not see the tool 'CY Test Tool Optional Parameters' in external tools table + When I click on delete button of tool 'CY Test Tool OpenStreetMap' Then I see the external tool deletion dialog title Then I see the external tool deletion dialog information text When I confirm deletion on deletion dialog - Then I do not see the tool 'OpenStreetMap' in external tools table + Then I do not see the tool 'CY Test Tool OpenStreetMap' in external tools table Then I see the external tools table is empty + + @staging_test + Examples: + | admin | namespace | + | admin1_nbc | nbc | + + # @school_api_test + # This feature is not executable with the school_api \ No newline at end of file diff --git a/cypress/support/pages/admin/pageAdministration.js b/cypress/support/pages/admin/pageAdministration.js index 06994c73..9de96ba8 100644 --- a/cypress/support/pages/admin/pageAdministration.js +++ b/cypress/support/pages/admin/pageAdministration.js @@ -1018,7 +1018,7 @@ class Management { insertToolLink(toolLink) { cy.get(Management.#toolSelection).click().type(toolLink); - cy.get(Management.#toolConfigurationSelectItem).contains("OpenStreetMap").click(); + cy.get(Management.#toolConfigurationSelectItem).contains("CY Test Tool OpenStreetMap").click(); } checkConfiguration(key, value) { From f89a175edf13e0e44e335f50839c6c70afb67819 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 6 Dec 2024 13:38:29 +0100 Subject: [PATCH 03/23] adjust ctl tools in course test --- cypress/e2e/course/addEditDeleteCtlToolInCourse.feature | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature index 68245be8..cbe83843 100644 --- a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature +++ b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature @@ -69,14 +69,12 @@ Feature: Course - To add, edit and delete a ctl tool in a course When I lauch tool 'CY Test Tool 1' with given url 'https://google.com/' Then I see tool 'CY Test Tool 1' was launched - # Teacher adds a tool twice with different name + # Teacher adds a tool twice but with a different name 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 an error alert When I enter 'CY Test Tool 1 New' in display name field When I click on save external tool button Then I see the tool 'CY Test Tool 1 New' in the tool overview @@ -173,12 +171,17 @@ Feature: Course - To add, edit and delete a ctl tool in a course 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table When I click on delete button of tool 'CY Test Tool Required Parameters' When I confirm deletion on deletion dialog + Then I do not see the tool 'Y Test Tool Required Parameters' in external tools table When I click on delete button of tool 'CY Test Tool Optional Parameters' When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Optional Parameters' in external tools table When I click on delete button of tool 'CY Test Tool OpenStreetMap' When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I see the external tools table is empty @staging_test Examples: From c739deb05efe4a5d0acedef3ef046390c0ef4d4f Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 6 Dec 2024 13:39:06 +0100 Subject: [PATCH 04/23] adjust deactivation of ctls tools test --- .../e2e/course/deactivationOfCtlTools.feature | 261 ------------------ .../deactivationOfCtlToolsInCourse.feature | 195 +++++++++++++ .../deactivationOfCtlToolsInBoard.feature | 206 ++++++++++++++ ...deactivationOfCtlToolsInMediaShelf.feature | 4 +- 4 files changed, 404 insertions(+), 262 deletions(-) delete mode 100644 cypress/e2e/course/deactivationOfCtlTools.feature create mode 100644 cypress/e2e/course/deactivationOfCtlToolsInCourse.feature create mode 100644 cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature diff --git a/cypress/e2e/course/deactivationOfCtlTools.feature b/cypress/e2e/course/deactivationOfCtlTools.feature deleted file mode 100644 index ec63681f..00000000 --- a/cypress/e2e/course/deactivationOfCtlTools.feature +++ /dev/null @@ -1,261 +0,0 @@ -@unstable_test -Feature: Deactivation of ctl tools - - 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: 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 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' - - # 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 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 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 - - # 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' - - - # 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 - - @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 diff --git a/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature new file mode 100644 index 00000000..50f9c6e2 --- /dev/null +++ b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature @@ -0,0 +1,195 @@ +@regression_test +@stable_test +Feature: Deactivation of ctl tools in course + + As a user I want to see deactivated und activated tools in a course + + @stable_test + Scenario Outline: Users see deactivated tool in course + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # Pre-condition: Admin creates a course + When I go to courses overview + 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 '' 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 select '' from field student + 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 tries to add an deactivated external tool + 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 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 + 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 tries to add a deactivated tool in course + Given I am logged in as a '' at '' + 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 + 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 + + # Admin deactivates an existing tool + Given I am logged in as a '' at '' + 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 '' at '' + 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 sees that a tool is marked as deactivated in course + Given I am logged in as a '' at '' + 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 + # Student tries to launch a deactivated tool in course + 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 + + # Admin activates existing deactivated tools + Given I am logged in as a '' at '' + 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 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 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 '' at '' + 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 + + # Student sees activated tools in course + Given I am logged in as a '' at '' + 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 + + # Post-condition: Admin deletes course + Given I am logged in as a '' at '' + 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 + + # Post-condition: 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table + When I click on delete button of tool 'CY Test Tool 2' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | student | namespace | fullname_teacher | fullname_student | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | + + # @school_api_test + # This feature is not executable with the school_api \ No newline at end of file diff --git a/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature new file mode 100644 index 00000000..c5d51357 --- /dev/null +++ b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature @@ -0,0 +1,206 @@ +@regression_test +@stable_test +Feature: Deactivation of ctl tools in board + + As a user I want to see deactivated und activated tools in a board + + @stable_test + Scenario Outline: Users see deactivated tool in board + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # Pre-condition: Admin creates a course + When I go to courses overview + 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 '' 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 select '' from field student + 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 + + # Pre-condition: Admin adds a tool + 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 + 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 + # Pre-condition: Admin adds a tool and deactivates it + When I click the add external tool button + Then I see the external tools configuration page + 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 tries to add a deactivated tool in board + Given I am logged in as a '' at '' + 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 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 + 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 '' at '' + 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 sees that a tool is marked as deactivated in board + Given I am logged in as a '' at '' + 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 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 a deactivated tool + When I click on external tool element with tool 'CY Test Tool 1' + # Then nothing should happen + + # Student sees that a tool is marked as deactivated in board + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course 'Cypress Test Course' + Then I see course page 'Cypress Test Course' + 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 a deactivated 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 '' at '' + 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 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 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 a board + Given I am logged in as a '' at '' + 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 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' + + # Student sees activated tools in board + Given I am logged in as a '' at '' + 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 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 + + # Post-condition: Admin deletes course + Given I am logged in as a '' at '' + 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 + + # Post-condition: 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table + When I click on delete button of tool 'CY Test Tool 2' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | student | namespace | fullname_teacher | fullname_student | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | + + # @school_api_test + # This feature is not executable with the school_api diff --git a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature index e3e08aa6..00ad2194 100644 --- a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature @@ -11,7 +11,6 @@ Feature: Deactivation of ctl tools in media shelf Given I am logged in as a '' at '' # Admin adds a tool - Given I am logged in as a '' at '' 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 @@ -118,8 +117,11 @@ Feature: Deactivation of ctl tools in media shelf 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table When I click on delete button of tool 'CY Test Tool 2' When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I see the external tools table is empty @staging_test Examples: From b70fc73ddc6257c78b6a7e0e08a04d78273c3451 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 11 Dec 2024 16:00:48 +0100 Subject: [PATCH 05/23] adjust addEditDeleteCtlToolInBoard.feature --- .../addEditDeleteCtlToolInCourse.feature | 1 - ...re => addEditDeleteCtlToolInBoard.feature} | 97 ++++++++----------- .../support/pages/course_board/pageBoard.js | 2 +- 3 files changed, 41 insertions(+), 59 deletions(-) rename cypress/e2e/course_board/{createEditDeleteCtlToolInBoard.feature => addEditDeleteCtlToolInBoard.feature} (74%) diff --git a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature index cbe83843..e41db029 100644 --- a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature +++ b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature @@ -40,7 +40,6 @@ Feature: Course - To add, edit and delete a ctl tool in a course When I select the tool 'CY Test Tool Optional Parameters' from available tools When I click on save external tool button Then I see the tool 'CY Test Tool Optional Parameters' in external tools table - # Pre-condition: Admin adds tools via tool link When I click on administration in menu When I navigate to new school admin page via sub menu diff --git a/cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature similarity index 74% rename from cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature rename to cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature index b89451e8..abc4b05a 100644 --- a/cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature @@ -1,13 +1,16 @@ -@unstable_test +@regression_test +@stable_test Feature: Course Board - To add, edit and delete a ctl tool in a board - As a teacher I want to add, edit and delete a ctl tool in my course Board + As a teacher I want to add, edit and delete a ctl tool in my course board - @unstable_test - Scenario: Pre-test: Admin creates a course and adds external tools to school - Given I am logged in as a 'admin1_nbc' at 'nbc' + @stable_test + Scenario Outline: Teacher adds, edits and deletes tools in a course board + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # Pre-condition: Admin creates a course When I go to courses overview - # 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' @@ -18,7 +21,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board 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 via selection + # Pre-condition: Admin adds tools via selection 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 @@ -35,26 +38,16 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I select the tool 'CY Test Tool Optional Parameters' from available tools When I click on save external tool button Then I see the tool 'CY Test Tool Optional Parameters' in external tools table - When I click the add external tool button - When I select the tool 'CY Test Tool Preferred' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Preferred' in external tools table - When I click the add external tool button - When I select the tool 'CY Test Tool Preferred With Param' from available tools - When I click on save external tool button - Then I see the tool 'CY Test Tool Preferred With Param' in external tools table - # Admin adds tools via tool link 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 insert the external tool link 'https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823' When I click on save external tool button - Then I see the tool 'OpenStreetMap' in external tools table + Then I see the tool 'CY Test Tool OpenStreetMap' in external tools table - @unstable_test - Scenario: Teacher adds, edits and deletes tools in a column board - Given I am logged in as a 'teacher1_nbc' at 'nbc' + # Teacher adds a tool without a custom parameter + Given I am logged in as a '' at '' 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 @@ -68,8 +61,6 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board 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 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 @@ -78,11 +69,11 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board 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 launches tool + # Teacher launches tool When I launch tool 'CY Test Tool 1' on external tool element with given url 'https://google.com/' Then I see tool 'CY Test Tool 1' on external tool element was launched - # Teacher adds a tool twice with different name + # Teacher adds a tool twice but with a different name 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 @@ -94,21 +85,21 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on save external tool button Then I see an external tool element with tool 'CY Test Tool 1 New' - # Teacher adds tool via tool link + # Teacher adds tool via tool link 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 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 + Then I see tool 'CY Test Tool OpenStreetMap' is selected Then I see configuration 'mlat' is filled below with '52.40847' Then I see configuration 'mlon' is filled below with '9.80823' Then I see configuration 'zoom' is filled below with '19' When I click on save external tool button - Then I see an external tool element with tool 'OpenStreetMap' + Then I see an external tool element with tool 'CY Test Tool OpenStreetMap' - # Teacher adds tool with a required custom parameter + # Teacher adds tool with a required custom 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 @@ -116,7 +107,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board 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 - # when required field is empty + # When required field is empty When I click on save external tool button Then I see an error alert When I enter 'test' in required custom parameter field 'contextParam' @@ -124,7 +115,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on save external tool button Then I see an external tool element with tool 'CY Test Tool Required Parameters' - # Teacher adds a tool with an optional custom parameter + # Teacher adds a tool with an optional custom 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 @@ -137,7 +128,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board When I click on save external tool button Then I see an external tool element with tool 'CY Test Tool Optional Parameters' - # Teacher edits a tool + # Teacher edits a tool 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 Parameters' @@ -154,32 +145,15 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board Then I see custom parameter input field 'contextParam' contains 'updated test' When I click on save external tool button - # Teacher deletes tools from board + # Teacher deletes tools from 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 three dot menu of external tool element 'CY Test Tool Optional Parameters' When I click the delete button in three dot menu on the element When I click on the button Remove on the Modal - # Add preferred tools - 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 - Then I see preferred tool 'CY Test Tool Preferred' in the menu - When I select preferred tool 'CY Test Tool Preferred' from the menu - 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 - 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' - When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Preferred With Param' - - @unstable_test - Scenario: Post-test: Admin deletes a course and external tools - Given I am logged in as a 'admin1_nbc' at 'nbc' + # Post-condition: Admin deletes course + Given I am logged in as a '' at '' 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 @@ -187,20 +161,29 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board 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 + # Post-condition: Admin deletes 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 Preferred' - When I confirm deletion on deletion dialog - When I click on delete button of tool 'CY Test Tool Preferred With Param' - When I confirm deletion on deletion dialog When I click on delete button of tool 'CY Test Tool 1' When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool 1' in external tools table When I click on delete button of tool 'CY Test Tool Required Parameters' When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Required Parameters' in external tools table When I click on delete button of tool 'CY Test Tool Optional Parameters' When I confirm deletion on deletion dialog - When I click on delete button of tool 'OpenStreetMap' + Then I do not see the tool 'CY Test Tool Optional Parameters' in external tools table + When I click on delete button of tool 'CY Test Tool OpenStreetMap' When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | namespace | fullname_teacher | + | admin1_nbc | teacher1_nbc | nbc | Karl Herzog | + + # @school_api_test + # This feature is not executable with the school_api diff --git a/cypress/support/pages/course_board/pageBoard.js b/cypress/support/pages/course_board/pageBoard.js index 4ac04c31..6b1b206c 100644 --- a/cypress/support/pages/course_board/pageBoard.js +++ b/cypress/support/pages/course_board/pageBoard.js @@ -256,7 +256,7 @@ class Board { clickThreeDotMenuOnExternalToolElementWithTool(toolName) { cy.get(`[data-testid="board-external-tool-element-${toolName}"]`) - .find('[data-testid="board-menu-button"]') + .find('[data-testid*="element-menu-button"]') .click(); } From 3128df9711183dc60fa27ec19729d7578684d585 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 11 Dec 2024 16:01:22 +0100 Subject: [PATCH 06/23] add new feature addPreferredCtlToolInBoard --- .../addPreferredCtlToolInBoard.feature | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 cypress/e2e/course_board/addPreferredCtlToolInBoard.feature diff --git a/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature new file mode 100644 index 00000000..9603bf40 --- /dev/null +++ b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature @@ -0,0 +1,99 @@ +# @regression_test +# @stable_test +# Note: The test was set to unstable because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging +@unstable_test +Feature: Course Board - To add a preferred tool in a board + + As a teacher I want to add a preferred tool in my course board + + # @stable_test + @unstable_test + Scenario Outline: Teacher adds, edits and deletes tools in a course board + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # Pre-condition: Admin creates a course + When I go to courses overview + 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 + + # Pre-condition: Admin adds preferred 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 Preferred' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Preferred' in external tools table + When I click the add external tool button + When I select the tool 'CY Test Tool Preferred With Param' from available tools + When I click on save external tool button + Then I see the tool 'CY Test Tool Preferred With Param' in external tools table + + # Teacher adds a preferred tool without a custom parameter + Given I am logged in as a '' at '' + 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 + Then I see preferred tool 'CY Test Tool Preferred' in the menu + When I select preferred tool 'CY Test Tool Preferred' from the menu + Then I see an external tool element with tool 'CY Test Tool Preferred' + + # Teacher adds a preferred tool with a custom parameter + 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 + 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' + When I click on save external tool button + Then I see an external tool element with tool 'CY Test Tool Preferred With Param' + + # Post-condition: Admin deletes course + Given I am logged in as a '' at '' + 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 + + # Post-condition: Admin deletes 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 Preferred With Param' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Preferred With Param' in external tools table + When I click on delete button of tool 'CY Test Tool Preferred' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Preferred' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | namespace | fullname_teacher | + | admin1_nbc | teacher1_nbc | nbc | Karl Herzog | + + # @school_api_test + # This feature is not executable with the school_api From cbe5998d4b99d83d1d857f5a55dd048d95f98ed5 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 11 Dec 2024 17:15:26 +0100 Subject: [PATCH 07/23] add feature contextRestrictionOfCtlToolsInMediaShelf --- ...tRestrictionOfCtlToolsInMediaShelf.feature | 84 +++++++++++++++++++ cypress/e2e/mediashelf/useMediaShelf.feature | 13 ++- 2 files changed, 93 insertions(+), 4 deletions(-) create mode 100644 cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature diff --git a/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature b/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature new file mode 100644 index 00000000..d16a4bd8 --- /dev/null +++ b/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature @@ -0,0 +1,84 @@ +@regression_test +@stable_test +Feature: Media Shelf - Restrict CTL tools to context media-board + + As a teacher I want to add ctl tools with context restriction media-board + + @stable_test + Scenario: Teacher sees tools with context restriction media-board in the media shelf + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # Pre-condition: Admin adds external tools to school + 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 + + # Teacher sees tools with context restriction media-board in the media-shelf + Given I am logged in as a '' at '' + 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 + + # Post-condition: Admin deletes external tools + Given I am logged in as a '' at '' + 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table + When I click on delete button of tool 'CY Test Tool Course Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Course Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool Board-Element Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Board-Element Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool Media-Board Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Media-Board Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool All Restrictions' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool All Restrictions' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | namespace | + | admin1_nbc | teacher1_nbc | nbc | + + # @school_api_test + # This feature is not executable with the school_api diff --git a/cypress/e2e/mediashelf/useMediaShelf.feature b/cypress/e2e/mediashelf/useMediaShelf.feature index 6b6b7a78..ee47454d 100644 --- a/cypress/e2e/mediashelf/useMediaShelf.feature +++ b/cypress/e2e/mediashelf/useMediaShelf.feature @@ -6,8 +6,8 @@ Feature: Media Shelf - To show media shelf with respective functionality @stable_test Scenario: Teacher uses the media shelf - Given I am logged in as a 'teacher1_nbc' at 'nbc' - Given I am logged in as a 'admin1_nbc' at 'nbc' + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' # Pre-condition: Admin adds external tools to school When I click on administration in menu @@ -23,7 +23,7 @@ Feature: Media Shelf - To show media shelf with respective functionality Then I see the tool 'CY Test Tool 2' in external tools table # Teacher opens media shelf - Given I am logged in as a 'teacher1_nbc' at 'nbc' + Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title Then I see the available media line @@ -35,6 +35,7 @@ Feature: Media Shelf - To show media shelf with respective functionality Then I see the grid layout When I click on list layout button Then I see the list layout + # Teacher tests available media line When I click on collapse available media line button Then I see the available media line is collapsed @@ -46,6 +47,7 @@ Feature: Media Shelf - To show media shelf with respective functionality Then I see the available background colors When I select the background color Then I see the available media line has background color 'rgb(251, 233, 231)' + # Teacher tests first media line When I click add media line button Then I see the first media line @@ -77,18 +79,21 @@ Feature: Media Shelf - To show media shelf with respective functionality When I move tool 'CY Test Tool 1' in to ghost media line Then I see the first media line Then I see tool 'CY Test Tool 1' in the first media line + # Teacher launches tool in available media line When I launch tool 'CY Test Tool 2' in the available media line with given url 'https://google.com/' Then I see tool 'CY Test Tool 2' on media element was launched # Teacher launches tool in first media line When I launch tool 'CY Test Tool 1' in the first media line with given url 'https://google.com/' Then I see tool 'CY Test Tool 1' on media element was launched + # Teacher drags & drops tool from one line to another line When I move tool 'CY Test Tool 2' in the first media line Then I see tool 'CY Test Tool 2' in the first media line # Teacher drags & drops tool in available line When I move tool 'CY Test Tool 2' to the empty available media line Then I see tool 'CY Test Tool 2' in the available media line + # Teacher deletes line with tool When I click the three dot menu button on the first media line Then I see the media line menu @@ -123,7 +128,7 @@ Feature: Media Shelf - To show media shelf with respective functionality Then I see the available media line has background color 'rgb(255, 255, 255)' # Post-condition: Admin deletes external tools - Given I am logged in as a 'admin1_nbc' at 'nbc' + Given I am logged in as a '' at '' 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 From 41a15aa451cd538fb8b39b3bd3bc546fa4552a6b Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 11 Dec 2024 17:16:08 +0100 Subject: [PATCH 08/23] add feature contextRestrictionOfCtlToolsInBoard --- .../addEditDeleteCtlToolInBoard.feature | 2 +- ...ontextRestrictionOfCtlToolsInBoard.feature | 171 ++++++++++++++++++ 2 files changed, 172 insertions(+), 1 deletion(-) create mode 100644 cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature diff --git a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature index abc4b05a..25dc5344 100644 --- a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature @@ -21,7 +21,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board Then I see the section three area as the finish page When I click on button To Course Overview on the finish page - # Pre-condition: Admin adds tools via selection + # Pre-condition: Admin adds external tools to school 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 diff --git a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature new file mode 100644 index 00000000..90c1daa1 --- /dev/null +++ b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature @@ -0,0 +1,171 @@ +@regression_test +@stable_test +Feature: Media Shelf - Restrict CTL tools to context board-element + + As a teacher I want to add ctl tools with context restriction board-element + + @stable_test + Scenario: Teacher adds tools with context restriction board-element in a board + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # Pre-condition: Admin creates a course + When I go to courses overview + 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 + + # Pre-condition: Admin adds external tools to school + 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' + # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging + # 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' + + # Teacher tries to add a tool with context restriction course + Given I am logged in as a '' at '' + 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 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 + 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 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 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 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 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' + + # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging + # # Teacher tries to add a preferred tool with context restriction 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 + # Then I do not see preferred tool 'CY Test Tool Preferred Course Restriction' in the menu + + # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging + # # 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' + + # Post-condition: Admin deletes course + Given I am logged in as a '' at '' + 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 + + # Post-condition: 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table + When I click on delete button of tool 'CY Test Tool Course Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Course Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool Board-Element Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Board-Element Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool Media-Board Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Media-Board Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool All Restrictions' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool All Restrictions' in external tools table + # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging + # When I click on delete button of tool 'CY Test Tool Preferred Course Restriction' + # When I confirm deletion on deletion dialog + # Then I do not see the tool 'CY Test Tool Preferred Course Restriction' in external tools table + # When I click on delete button of tool 'CY Test Tool Preferred Board Restriction' + # When I confirm deletion on deletion dialog + # Then I do not see the tool 'CY Test Tool Preferred Board Restriction' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | namespace | + | admin1_nbc | teacher1_nbc | nbc | + + # @school_api_test + # This feature is not executable with the school_api From 50cd78ed3ce42363e53628f00ea082f04cbf4b43 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 11 Dec 2024 17:16:25 +0100 Subject: [PATCH 09/23] add feature contextRestrictionOfCtlToolsInCourse --- .../contextRestrictionOfCtlTools.feature | 188 ------------------ ...ntextRestrictionOfCtlToolsInCourse.feature | 130 ++++++++++++ 2 files changed, 130 insertions(+), 188 deletions(-) delete mode 100644 cypress/e2e/course/contextRestrictionOfCtlTools.feature create mode 100644 cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature diff --git a/cypress/e2e/course/contextRestrictionOfCtlTools.feature b/cypress/e2e/course/contextRestrictionOfCtlTools.feature deleted file mode 100644 index 4cd8f2c5..00000000 --- a/cypress/e2e/course/contextRestrictionOfCtlTools.feature +++ /dev/null @@ -1,188 +0,0 @@ -@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 - - @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 - - # 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 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 - - # 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/contextRestrictionOfCtlToolsInCourse.feature b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature new file mode 100644 index 00000000..9d2808f4 --- /dev/null +++ b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature @@ -0,0 +1,130 @@ +@regression_test +@stable_test +Feature: Media Shelf - Restrict CTL tools to context course + + As a teacher I want to add ctl tools with context restriction course + + @stable_test + Scenario: Teacher adds tools with context restriction course in a course + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # Pre-condition: Admin creates a course + When I go to courses overview + 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 external tools with context restriction to school + 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 + + # Teacher tries to a tool with context restriction board-element + Given I am logged in as a '' at '' + 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 + 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 + + # Post-condition: Admin deletes course + Given I am logged in as a '' at '' + 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 + + # Post-condition: 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 + Then I do not see the tool 'CY Test Tool 1' in external tools table + When I click on delete button of tool 'CY Test Tool Course Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Course Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool Board-Element Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Board-Element Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool Media-Board Restriction' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool Media-Board Restriction' in external tools table + When I click on delete button of tool 'CY Test Tool All Restrictions' + When I confirm deletion on deletion dialog + Then I do not see the tool 'CY Test Tool All Restrictions' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | namespace | + | admin1_nbc | teacher1_nbc | nbc | + + # @school_api_test + # This feature is not executable with the school_api From 5acbe1afaaf032f3b1edf54ee6af2dd796df30c9 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Tue, 21 Jan 2025 20:27:52 +0100 Subject: [PATCH 10/23] remove showToolOutdated test --- cypress/e2e/course/showToolOutdated.feature | 26 --------------------- 1 file changed, 26 deletions(-) delete mode 100644 cypress/e2e/course/showToolOutdated.feature diff --git a/cypress/e2e/course/showToolOutdated.feature b/cypress/e2e/course/showToolOutdated.feature deleted file mode 100644 index b9f85b67..00000000 --- a/cypress/e2e/course/showToolOutdated.feature +++ /dev/null @@ -1,26 +0,0 @@ -@unstable_test -Feature: Course - Show outdated tool - - As a student and teacher I want to see an outdated ctl tool to my course. - - @unstable_test - Scenario: Student can see outdated dialog for outdated tool - Given I am logged in as a 'student2_nbc' at 'nbc' - When I go to courses overview - When I go to course 'German' - When I click on the tools tab - Then I see the tool 'Cypress Test Tool School Scope' in the tool overview - When I click on the tool 'Cypress Test Tool School Scope' - Then I see the error dialog of 'Cypress Test Tool School Scope' - - @unstable_test - Scenario: Teacher can see outdated dialog for outdated tool - Given I am logged in as a 'teacher1_nbc' at 'nbc' - When I go to courses overview - When I go to course 'German' - When I click on the tools tab - Then I see the tool 'Cypress Test Tool School Scope' in the tool overview - When I click on the tool 'Cypress Test Tool School Scope' - Then I see the error dialog of 'Cypress Test Tool School Scope' - - From adc0b11fc0c08a5062488512e50fdda07c9319a2 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 22 Jan 2025 16:12:33 +0100 Subject: [PATCH 11/23] rename shareCtlTools test & set to stable --- .../course/shareCourseWithCtlTools.feature | 194 ++++++++++++++++++ cypress/e2e/course/shareCtlTools.feature | 175 ---------------- 2 files changed, 194 insertions(+), 175 deletions(-) create mode 100644 cypress/e2e/course/shareCourseWithCtlTools.feature delete mode 100644 cypress/e2e/course/shareCtlTools.feature diff --git a/cypress/e2e/course/shareCourseWithCtlTools.feature b/cypress/e2e/course/shareCourseWithCtlTools.feature new file mode 100644 index 00000000..2d49f34a --- /dev/null +++ b/cypress/e2e/course/shareCourseWithCtlTools.feature @@ -0,0 +1,194 @@ +@regression_test +@stable_test +Feature: Teacher can share a course with ctl tools + + As a teacher I want to share a course with ctl tools to other teachers from the same school + + @stable_test + Scenario: Teacher shares course with ctl tools + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # pre-condition: admin adds tools via selection + Given I am logged in as a '' at '' + 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 '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + When I click the add external tool button + When I select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + When I click the add external tool button + When I select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + + # pre-condition: teacher creates a course and adds tools to the course + Given I am logged in as a '' at '' + 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 '' + Then I see teacher '' 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 '' on the course overview page + When I go to course '' + Then I see course page '' + When I click on the tools tab + Then I see the button to add a tool + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I click on save external tool button + Then I see the tool '' in the tool overview + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I enter '' in optional custom parameter field '' + When I click on save external tool button + Then I see the tool '' in the tool overview + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I select '' in required protected custom parameter selection + When I click on save external tool button + Then I see the tool '' in the tool overview + + # pre-condition: 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 + # 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 click on the tool configuration selection + When I select the tool '' from available tools + When I enter '' in required custom parameter field '' + When I click on save external tool button + Then I see an external tool element with tool '' + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I enter '' in optional custom parameter field '' + When I click on save external tool button + Then I see an external tool element with tool '' + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I select '' in required protected custom parameter selection + When I click on save external tool button + Then I see an external tool element with tool '' + + # teacher shares the course with another teacher in the same school + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course page '' + When I click on share course button + Then I see the share course dialog box + Then I see the info text in the share course dialog + Then I see the school internal checkbox as checked + Then I see the expiry date checkbox as checked + When I click on the continue button in the share course dialog + Then I see the import share course url in the share course result dialog + Then I see the mail button in the share course result dialog + Then I see the copy link button in the share course result dialog + Then I see the mail QR-Code button in the share course result dialog + When I save the import share course url + # switch teacher to import shared course + Given I am logged in as a '' at '' + When I go to courses overview + When I visit the saved import url of the shared course + Then I see the import share course dialog + Then I see the import share course tools info + Then I see '' in the course name field + When I enter '' in the course name field + When I click on the import course button + When I go to course '' + Then I see course page '' + # teacher sees marked tools in tools tab + When I click on the tools tab + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' is marked as incomplete operational + Then I see the tool '' in the tool overview + Then I see the tool '' is marked as incomplete + # teacher sees marked tools in board + When I go to the tab contents in course detail page + When I click on card Course Board + Then I see an external tool element with tool '' + Then I see an external tool element with tool '' + Then I see external tool element with tool '' is marked as incomplete operational + Then I see an external tool element with tool '' + Then I see external tool element with tool '' is marked as incomplete + + # post-condition: admin deletes courses + Given I am logged in as a '' at '' + When I click on administration in menu + When I go to course administration page + When I click the delete button for course '' 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 '' 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 '' in course table + Then I do not see course '' in course table + + # post-condition: 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 '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher_1 | teacher_2 | namespace | fullname_teacher_1 | course_name_share | course_name_import | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | + | admin1_nbc | teacher1_nbc | teacher2_nbc | nbc | Karl Herzog | Cypress Test Course Share | Cypress Test Course Import | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | + + # @school_api_test + # This feature is not executable with the school_api diff --git a/cypress/e2e/course/shareCtlTools.feature b/cypress/e2e/course/shareCtlTools.feature deleted file mode 100644 index a409609b..00000000 --- a/cypress/e2e/course/shareCtlTools.feature +++ /dev/null @@ -1,175 +0,0 @@ -@unstable_test -Feature: Teacher can share a course - - As a teacher I want to share a course with other teachers from the same school - - @unstable_test - Scenario: Pre-condition: admin adds external tools to school and teacher sets up a course with ctl 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 - 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 - - # Pre-condition: 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 Share' - 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 Share' on the course overview page - When I go to course 'Cypress Test Course Share' - Then I see course page 'Cypress Test Course Share' - When I click on the tools tab - Then I see the button to add a tool - # Pre-condition: 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 - # Pre-condition: 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 - # Pre-condition: 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 - - # Pre-condition: 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 - # 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 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' - # Pre-condition: 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' - # Pre-condition: 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 shares the course with another teacher in the same school - 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 Share' - Then I see course page 'Cypress Test Course Share' - When I click on share course button - Then I see the share course dialog box - Then I see the info text in the share course dialog - Then I see the school internal checkbox as checked - Then I see the expiry date checkbox as checked - When I click on the continue button in the share course dialog - Then I see the import share course url in the share course result dialog - Then I see the mail button in the share course result dialog - Then I see the copy link button in the share course result dialog - Then I see the mail QR-Code button in the share course result dialog - When I save the import share course url - # Switch teacher to import shared course - Given I am logged in as a 'teacher2_nbc' at 'nbc' - When I go to courses overview - When I visit the saved import url of the shared course - Then I see the import share course dialog - Then I see the import share course tools info - Then I see 'Cypress Test Course Share' in the course name field - When I enter 'Cypress Test Course Import' in the course name field - When I click on the import course button - When I go to course 'Cypress Test Course Import' - Then I see course page 'Cypress Test Course Import' - # Teacher sees marked tools in tools tab - When I click on the tools tab - Then I see the tool 'CY Test Tool Context Scope' 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 Optional Protected Parameter' is marked as incomplete operational - Then I see the tool 'CY Test Tool Protected Parameter' in the tool overview - Then I see the tool 'CY Test Tool Protected Parameter' is marked as incomplete - # Teacher sees marked tools in board - When I go to the tab contents in course detail page - When I click on card Course Board - Then I see an external tool element with tool 'CY Test Tool Context Scope' - Then I see an external tool element with tool 'CY Test Tool Optional Protected Parameter' - Then I see external tool element with tool 'CY Test Tool Optional Protected Parameter' is marked as incomplete operational - Then I see an external tool element with tool 'CY Test Tool Protected Parameter' - Then I see external tool element with tool 'CY Test Tool Protected Parameter' is marked as incomplete - # Post-condition: admin deletes courses - 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 Share' 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 Import' 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 Share' in course table - Then I do not see course 'Cypress Test Course Import' in course table - # Post-condition: 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 From e17dda7bfda88e1cc6d3ec60fb88f0e2aaaee706 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 22 Jan 2025 16:14:52 +0100 Subject: [PATCH 12/23] rename & adjust copyCtlTools --- .../e2e/course/copyCourseWithCtlTools.feature | 189 ++++++++++++ cypress/e2e/course/copyCtlTools.feature | 270 ------------------ .../copyCourseWithCtlToolsInBoard.feature | 211 ++++++++++++++ 3 files changed, 400 insertions(+), 270 deletions(-) create mode 100644 cypress/e2e/course/copyCourseWithCtlTools.feature delete mode 100644 cypress/e2e/course/copyCtlTools.feature create mode 100644 cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature diff --git a/cypress/e2e/course/copyCourseWithCtlTools.feature b/cypress/e2e/course/copyCourseWithCtlTools.feature new file mode 100644 index 00000000..4f2c0a20 --- /dev/null +++ b/cypress/e2e/course/copyCourseWithCtlTools.feature @@ -0,0 +1,189 @@ +@regression_test +@stable_test +Feature: Course - Copy course with CTL tools + + As a Teacher I want to be able to copy ctl tools, when I copy a course + + @stable_test + Scenario: Teacher copies a course with ctl tools + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # pre-condition: admin creates a course, assign it to teacher and student + When I go to courses overview + 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 '' + When I select '' 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 + + # pre-condition: admin adds tools via selection + 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 '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + When I click the add external tool button + When I select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + When I click the add external tool button + When I select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + + # pre-condition: teacher adds a tool with required parameter + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course page '' + 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 + When I select the tool '' from available tools + When I enter '' in required custom parameter field '' + When I click on save external tool button + Then I see the tool '' in the tool overview + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I enter '' in optional custom parameter field '' + When I click on save external tool button + Then I see the tool '' in the tool overview + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I select '' in required protected custom parameter selection + When I click on save external tool button + Then I see the tool '' in the tool overview + + # teacher copies the course + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course page '' + 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 '' + Then I see course page '' + # 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 '' to the course + When I click on button Save changes in page Edit course + When I click on the tools tab + Then I see 3 tools + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' is not marked as incomplete + # teacher sees marked tool as incomplete operational + Then I see the tool '' is marked as incomplete operational + # teacher sees marked tool as incomplete + Then I see the tool '' is marked as incomplete + # teacher launches incomplete operational tool + When I lauch tool '' with given url '' + Then I see tool '' was launched + # teacher tries to launch incomplete tool + When I click on the tool '' + Then I see an error dialog + When I close the dialog + + # student sees marked tool as incomplete + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course page '' + When I click on the tools tab + Then I see 3 tools + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' is not marked as incomplete + Then I see the tool '' is not marked as incomplete operational + Then I see the tool '' is marked as incomplete + # student launches incomplete operational tool + When I lauch tool '' with given url '' + Then I see tool '' was launched + # student tries to launch incomplete tool + When I click on the tool '' + Then I see an error dialog + When I close the dialog + + # teacher fixes the incomplete tools in course + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course page '' + When I click on the tools tab + When I click on three dot menu of the tool '' + When I click on the tool edit button of '' + Then I see the tool configuration page title + When I select '' in required protected custom parameter selection + When I confirm the update + When I click on three dot menu of the tool '' + When I click on the tool edit button of '' + Then I see the tool configuration page title + When I enter '' in optional custom parameter field '' + When I confirm the update + Then I see course page '' + Then I see the tool '' is not marked as incomplete + Then I see the tool '' is not marked as incomplete operational + + # post-condition: admin deletes course + Given I am logged in as a '' at '' + When I click on administration in menu + When I go to course administration page + When I click the delete button for course '' 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 '' 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 '' in course table + Then I do not see course '' in course table + + # post-condition: admin deletes 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 '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | student | namespace | course_name | course_name_copy | fullname_teacher | name_student | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | ctl_tool_launch_url | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Cypress Test Course (1) | Karl Herzog | Kraft | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | https://google.com/ | + + + # @school_api_test + # This feature is not executable with the school_api diff --git a/cypress/e2e/course/copyCtlTools.feature b/cypress/e2e/course/copyCtlTools.feature deleted file mode 100644 index 6120ef5a..00000000 --- a/cypress/e2e/course/copyCtlTools.feature +++ /dev/null @@ -1,270 +0,0 @@ -@unstable_test -Feature: Course - Copy CTL tools - - 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 - - # 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' - - @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 - - # 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 - - # 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 - - @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 diff --git a/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature new file mode 100644 index 00000000..25412e8f --- /dev/null +++ b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature @@ -0,0 +1,211 @@ +@regression_test +@stable_test +Feature: Course Board - Copy course with a board wich has CTL tools + + As a Teacher I want to be able to copy ctl tools, when I copy a course with ctl tools within a board + + @stable_test + Scenario: Teacher copies a course with a board that has ctl tools + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + Given I am logged in as a '' at '' + + # pre-condition: admin creates a course, assign it to teacher and student + When I go to courses overview + 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 '' + When I select '' 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 + + # pre-condition: admin adds tools via selection + 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 '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + When I click the add external tool button + When I select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + When I click the add external tool button + When I select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + + # pre-condition: teacher creates a board + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course 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 + # 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 click on the tool configuration selection + When I select the tool '' from available tools + When I enter '' in required custom parameter field '' + When I click on save external tool button + Then I see an external tool element with tool '' + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I enter '' in optional custom parameter field '' + When I click on save external tool button + Then I see an external tool element with tool '' + # pre-condition: 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 '' from available tools + When I enter '' in required custom parameter field '' + When I select '' in required protected custom parameter selection + When I click on save external tool button + Then I see an external tool element with tool '' + + # teacher copies the course + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course page '' + 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 '' + Then I see course page '' + # 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 '' to the course + When I click on button Save changes in page Edit course + 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 '' + Then I see an external tool element with tool '' + Then I see an external tool element with tool '' + Then I see external tool element with tool '' is not marked as incomplete + # teacher sees marked tool as incomplete operational + Then I see external tool element with tool '' is marked as incomplete operational + # teacher sees marked tool as incomplete + Then I see external tool element with tool '' is marked as incomplete + # teacher launches incomplete operational tool + When I launch tool '' on external tool element with given url '' + Then I see tool '' on external tool element was launched + # teacher tries to launch incomplete tool + When I click on external tool element with tool '' + # Then nothing should happen + + # student sees marked tool as incomplete + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course 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 '' + Then I see an external tool element with tool '' + Then I see an external tool element with tool '' + Then I see external tool element with tool '' is not marked as incomplete + Then I see external tool element with tool '' is not marked as incomplete operational + Then I see external tool element with tool '' is marked as incomplete + # student launches incomplete operational tool + When I launch tool '' on external tool element with given url '' + Then I see tool '' on external tool element was launched + # student tries to launch incomplete tool + When I click on external tool element with tool '' + # Then nothing should happen + + # teacher fixes the incomplete tools in board + Given I am logged in as a '' at '' + When I go to courses overview + When I go to course '' + Then I see course page '' + 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 '' + When I click the edit button in three dot menu on the element + Then I see tool '' is selected + When I select '' in required protected custom parameter selection + When I click on save external tool button + Then I see external tool element with tool '' 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 '' + When I click the edit button in three dot menu on the element + Then I see tool '' is selected + When I enter '' in optional custom parameter field '' + When I click on save external tool button + Then I see external tool element with tool '' is not marked as incomplete operational + + # post-condition: admin deletes course + Given I am logged in as a '' at '' + When I click on administration in menu + When I go to course administration page + When I click the delete button for course '' 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 '' 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 '' in course table + Then I do not see course '' in course table + + # post-condition: admin deletes 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 '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + Then I see the external tools table is empty + + @staging_test + Examples: + | admin | teacher | student | namespace | course_name | course_name_copy | fullname_teacher | name_student | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | ctl_tool_launch_url | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Cypress Test Course (1) | Karl Herzog | Kraft | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | https://google.com/ | + + + # @school_api_test + # This feature is not executable with the school_api \ No newline at end of file From f53d369edf0d77d2f4fa2f3e7888c0765602eb69 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 22 Jan 2025 16:15:47 +0100 Subject: [PATCH 13/23] add examples to media shelf test --- ...tRestrictionOfCtlToolsInMediaShelf.feature | 70 +++++------ ...deactivationOfCtlToolsInMediaShelf.feature | 88 +++++++------- .../noAvailableToolsInMediaShelf.feature | 36 +++--- cypress/e2e/mediashelf/useMediaShelf.feature | 113 +++++++++--------- 4 files changed, 153 insertions(+), 154 deletions(-) diff --git a/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature b/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature index d16a4bd8..7778ee2f 100644 --- a/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature @@ -9,76 +9,76 @@ Feature: Media Shelf - Restrict CTL tools to context media-board Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin adds external tools to school + # pre-condition: Admin adds external tools to school 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 select the tool '' 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 + Then I see the tool '' in external tools table + Then I see the tool '' 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 select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool Board-Element Restriction' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool Media-Board Restriction' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool All Restrictions' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - # Teacher sees tools with context restriction media-board in the media-shelf + # teacher sees tools with context restriction media-board in the media-shelf Given I am logged in as a '' at '' 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 + Then I see tool '' in the available media line + Then I see tool '' in the available media line + Then I see tool '' in the available media line + Then I do not see tool '' in the available media line + Then I do not see tool '' in the available media line - # Post-condition: Admin deletes external tools + # post-condition: admin deletes external tools Given I am logged in as a '' at '' 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool Course Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Course Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool Board-Element Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Board-Element Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool Media-Board Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Media-Board Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool All Restrictions' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool All Restrictions' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | namespace | - | admin1_nbc | teacher1_nbc | nbc | + | admin | teacher | namespace | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | context_course | context_board_element | context_media_board | context_all | + | admin1_nbc | teacher1_nbc | nbc | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | # @school_api_test # This feature is not executable with the school_api diff --git a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature index 00ad2194..e75dc49b 100644 --- a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature @@ -10,7 +10,7 @@ Feature: Deactivation of ctl tools in media shelf Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Admin adds a tool + # admin adds a tool 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 @@ -19,74 +19,74 @@ Feature: Deactivation of ctl tools in media shelf 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 1' from available tools - Then I see tool 'CY Test Tool 1' is selected + When I select the tool '' from available tools + Then I see tool '' 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 + Then I see the tool '' in external tools table + Then I see the tool '' 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 select the tool '' from available tools + Then I see tool '' is selected When I deactivate the tool - Then I see the deactivate checkbox is 'checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is deactivated in external tools table - # Teacher can not see a deactivated tool in media shelf + # teacher can not see a deactivated tool in media shelf Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title Then I see the available media line - Then I do not see tool 'CY Test Tool 2' in the available media line + Then I do not see tool '' in the available media line Then I see 1 tools in the available media line - Then I see tool 'CY Test Tool 1' in the available media line - When I move tool 'CY Test Tool 1' in to ghost media line + Then I see tool '' in the available media line + When I move tool '' in to ghost media line Then I see the first media line - Then I see tool 'CY Test Tool 1' in the first media line + Then I see tool '' in the first media line - # Student can not see a deactivated tool in media shelf + # student can not see a deactivated tool in media shelf Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title Then I see the available media line - Then I do not see tool 'CY Test Tool 2' in the available media line + Then I do not see tool '' in the available media line Then I see 1 tools in the available media line - Then I see tool 'CY Test Tool 1' in the available media line - When I move tool 'CY Test Tool 1' in to ghost media line + Then I see tool '' in the available media line + When I move tool '' in to ghost media line Then I see the first media line - Then I see tool 'CY Test Tool 1' in the first media line + Then I see tool '' in the first media line - # Admin deactivates an existing tool + # admin deactivates an existing tool Given I am logged in as a '' at '' 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 tool '' in external tools table + When I click on edit button of tool '' 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 + Then I see tool '' is selected When I deactivate the tool - Then I see the deactivate checkbox is 'checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is deactivated in external tools table - # Teacher sees a deactivated tool in media shelf + # teacher sees a deactivated tool in media shelf Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title - Then I see tool 'CY Test Tool 1' in the first media line - Then I see the deactivated chip on media element 'CY Test Tool 1' - # Teacher tries to launch a deactivated tool in media shelf - When I try to launch tool 'CY Test Tool 1' in the first media line + Then I see tool '' in the first media line + Then I see the deactivated chip on media element '' + # teacher tries to launch a deactivated tool in media shelf + When I try to launch tool '' in the first media line # Then nothing should happen When I click the three dot menu button on the first media line Then I see the media line menu @@ -94,13 +94,13 @@ Feature: Deactivation of ctl tools in media shelf Then I see the first media line has been deleted Then I see the no available media infotext - # Student sees a deactivated tool in media shelf + # student sees a deactivated tool in media shelf Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title - Then I see tool 'CY Test Tool 1' in the first media line - Then I see the deactivated chip on media element 'CY Test Tool 1' - # Student tries to launch a deactivated tool in media shelf + Then I see tool '' in the first media line + Then I see the deactivated chip on media element '' + # student tries to launch a deactivated tool in media shelf When I try to launch tool 'CY Test Tool 1' in the first media line # Then nothing should happen When I click the three dot menu button on the first media line @@ -109,24 +109,24 @@ Feature: Deactivation of ctl tools in media shelf Then I see the first media line has been deleted Then I see the no available media infotext - # Post-condition: Admin deletes tools + # post-condition: admin deletes tools Given I am logged in as a '' at '' 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool 2' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | student | namespace | - | admin1_nbc | teacher1_nbc | student1_nbc | nbc | + | admin | teacher | student | namespace | ctl_tool_1 | ctl_tool_2 | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | CY Test Tool 1 | CY Test Tool 2 | # @school_api_test # This feature is not executable with the school_api diff --git a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature index 9e4f2dd2..8b66b722 100644 --- a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature @@ -9,7 +9,7 @@ Feature: No available tools in media shelf Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin adds a tool + # pre-condition: admin adds a tool 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 @@ -18,41 +18,41 @@ Feature: No available tools in media shelf 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 1' from available tools - Then I see tool 'CY Test Tool 1' is selected + When I select the tool '' from available tools + Then I see tool '' 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 '' in external tools table - # Teacher moves tool in first media line + # teacher moves tool in first media line Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title Then I see the available media line Then I see 1 tools in the available media line - Then I see tool 'CY Test Tool 1' in the available media line - When I move tool 'CY Test Tool 1' in to ghost media line + Then I see tool '' in the available media line + When I move tool '' in to ghost media line Then I see the first media line - Then I see tool 'CY Test Tool 1' in the first media line + Then I see tool '' in the first media line - # Admin deletes tool + # admin deletes tool Given I am logged in as a '' at '' 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty - # Teacher sees 'no longer available' chip on media element + # teacher sees 'no longer available' chip on media element Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title - Then I see tool 'CY Test Tool 1' in the first media line - Then I see the no longer available chip on media element 'CY Test Tool 1' - # Teacher tries to launch tool - When I try to launch tool 'CY Test Tool 1' in the first media line + Then I see tool '' in the first media line + Then I see the no longer available chip on media element '' + # teacher tries to launch tool + When I try to launch tool '' in the first media line # Then nothing should happen When I click the three dot menu button on the first media line Then I see the media line menu @@ -62,8 +62,8 @@ Feature: No available tools in media shelf @staging_test Examples: - | admin | teacher | namespace | - | admin1_nbc | teacher1_nbc | nbc | + | admin | teacher | namespace | ctl_tool_1 | + | admin1_nbc | teacher1_nbc | nbc | CY Test Tool 1 | # @school_api_test # This feature is not executable with the school_api \ No newline at end of file diff --git a/cypress/e2e/mediashelf/useMediaShelf.feature b/cypress/e2e/mediashelf/useMediaShelf.feature index ee47454d..6e94a464 100644 --- a/cypress/e2e/mediashelf/useMediaShelf.feature +++ b/cypress/e2e/mediashelf/useMediaShelf.feature @@ -9,34 +9,34 @@ Feature: Media Shelf - To show media shelf with respective functionality Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin adds external tools to school + # pre-condition: admin adds external tools to school 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 select the tool '' 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 2' from available tools + When I select the tool '' 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 2' in external tools table + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table - # Teacher opens media shelf + # teacher opens media shelf Given I am logged in as a '' at '' When I go to media shelf Then I see the media shelf page title Then I see the available media line Then I see 2 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 2' in the available media line - Then I see the thumbnail, title and description of media element 'CY Test Tool 1' + Then I see tool '' in the available media line + Then I see tool '' in the available media line + Then I see the thumbnail, title and description of media element '' When I click on grid layout button Then I see the grid layout When I click on list layout button Then I see the list layout - # Teacher tests available media line + # teacher tests available media line When I click on collapse available media line button Then I see the available media line is collapsed When I click on collapse available media line button @@ -46,14 +46,14 @@ Feature: Media Shelf - To show media shelf with respective functionality When I click on color picker button Then I see the available background colors When I select the background color - Then I see the available media line has background color 'rgb(251, 233, 231)' + Then I see the available media line has background color '' - # Teacher tests first media line + # teacher tests first media line When I click add media line button Then I see the first media line When I double click on the title of the first median line - When I edit the title of the first median line to 'Test Abschnitt' - Then I see the first media line with title 'Test Abschnitt' + When I edit the title of the first median line to '' + Then I see the first media line with title '' When I click the collapse button on the first media line Then I see the first media line is collapsed When I click the collapse button on the first media line @@ -61,90 +61,89 @@ Feature: Media Shelf - To show media shelf with respective functionality When I click the three dot menu button on the first media line Then I see the media line menu When I click on edit title button - When I edit the title of the first median line to 'Favoriten' - Then I see the first media line with title 'Favoriten' + When I edit the title of the first median line to '' + Then I see the first media line with title '' When I click the three dot menu button on the first media line Then I see the media line menu When I click on color picker button Then I see the available background colors When I select the background color - Then I see the first media line has background color 'rgb(251, 233, 231)' + Then I see the first media line has background color '' When I click the three dot menu button on the first media line Then I see the media line menu When I click on delete media line button Then I see the first media line has been deleted - # Test Drag & Drop in media shelf - # Teacher drags & drops tool in new Line - When I move tool 'CY Test Tool 1' in to ghost media line + # test drag & drop in media shelf + # teacher drags & drops tool in new Line + When I move tool '' in to ghost media line Then I see the first media line - Then I see tool 'CY Test Tool 1' in the first media line - - # Teacher launches tool in available media line - When I launch tool 'CY Test Tool 2' in the available media line with given url 'https://google.com/' - Then I see tool 'CY Test Tool 2' on media element was launched - # Teacher launches tool in first media line - When I launch tool 'CY Test Tool 1' in the first media line with given url 'https://google.com/' - Then I see tool 'CY Test Tool 1' on media element was launched - - # Teacher drags & drops tool from one line to another line - When I move tool 'CY Test Tool 2' in the first media line - Then I see tool 'CY Test Tool 2' in the first media line - # Teacher drags & drops tool in available line - When I move tool 'CY Test Tool 2' to the empty available media line - Then I see tool 'CY Test Tool 2' in the available media line - - # Teacher deletes line with tool + Then I see tool '' in the first media line + + # teacher launches tool in available media line + When I launch tool '' in the available media line with given url '' + Then I see tool '' on media element was launched + # teacher launches tool in first media line + When I launch tool '' in the first media line with given url '' + Then I see tool '' on media element was launched + + # teacher drags & drops tool from one line to another line + When I move tool '' in the first media line + Then I see tool '' in the first media line + # teacher drags & drops tool in available line + When I move tool '' to the empty available media line + Then I see tool '' in the available media line + + # teacher deletes line with tool When I click the three dot menu button on the first media line Then I see the media line menu When I click on delete media line button Then I see the first media line has been deleted - Then I see tool 'CY Test Tool 1' in the available media line + Then I see tool '' in the available media line Then I see the first media line has been deleted - # Teacher deletes tool - When I move tool 'CY Test Tool 1' in to ghost media line + # teacher deletes tool + When I move tool '' in to ghost media line Then I see the first media line - Then I see tool 'CY Test Tool 1' in the first media line - When I move tool 'CY Test Tool 2' in the first media line - Then I see tool 'CY Test Tool 2' in the first media line - When I click the three dot menu button on media element 'CY Test Tool 1' + Then I see tool '' in the first media line + When I move tool '' in the first media line + Then I see tool '' in the first media line + When I click the three dot menu button on media element '' When I click on delete media element button - Then I see delete media element dialog - When I click confirm delete media element button - Then I see tool 'CY Test Tool 1' in the available media line + Then I see tool '' in the available media line - # Post-condition: Teacher resets media shelf + # post-condition: teacher resets media shelf When I click the three dot menu button on the first media line Then I see the media line menu When I click on delete media line button Then I see the first media line has been deleted - Then I see tool 'CY Test Tool 2' in the available media line + Then I see tool '' in the available media line When I click on three dot menu button on available media line Then I see the available media line menu When I click on color picker button Then I see the available background colors When I select default line color - Then I see the available media line has background color 'rgb(255, 255, 255)' + Then I see the available media line has background color '' - # Post-condition: Admin deletes external tools + # post-condition: admin deletes external tools Given I am logged in as a '' at '' 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool 2' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | namespace | - | admin1_nbc | teacher1_nbc | nbc | + | admin | teacher | namespace | ctl_tool_hidden | ctl_tool_1 | ctl_tool_2 | color_white | color_grey | section_title | section_title_updated | ctl_tool_launch_url | + | admin1_nbc | teacher1_nbc | nbc | CY Test Tool Hidden | CY Test Tool 1 | CY Test Tool 2 | rgb(255, 255, 255) | rgb(251, 233, 231) | Test Abschnitt | Favoriten | https://google.com/ | + # @school_api_test # This feature is not executable with the school_api From bc878b3133b3801286853e69bb97692b7b29c876 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 22 Jan 2025 16:16:21 +0100 Subject: [PATCH 14/23] add examples to course board test --- .../addEditDeleteCtlToolInBoard.feature | 134 +++++++-------- .../addPreferredCtlToolInBoard.feature | 69 ++++---- ...ontextRestrictionOfCtlToolsInBoard.feature | 159 +++++++++-------- .../deactivationOfCtlToolsInBoard.feature | 160 +++++++++--------- 4 files changed, 259 insertions(+), 263 deletions(-) diff --git a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature index 25dc5344..64f4e344 100644 --- a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature @@ -9,47 +9,47 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin creates a course + # pre-condition: admin creates a course When I go to courses overview 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 enter the course title '' + When I select '' 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 - # Pre-condition: Admin adds external tools to school + # pre-condition: admin adds external tools to school 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 select the tool '' 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 '' in external tools table When I click the add external tool button - When I select the tool 'CY Test Tool Required Parameters' from available tools - When I enter 'test' in required custom parameter input field 'schoolParam' + When I select the tool '' from available tools + When I enter '' in required custom parameter input field '' When I click on save external tool button - Then I see the tool 'CY Test Tool Required Parameters' in external tools table + Then I see the tool '' in external tools table When I click the add external tool button - When I select the tool 'CY Test Tool Optional Parameters' from available tools + When I select the tool '' from available tools When I click on save external tool button - Then I see the tool 'CY Test Tool Optional Parameters' in external tools table + Then I see the tool '' in external tools table 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 insert the external tool link 'https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823' + When I insert the external tool link '' When I click on save external tool button - Then I see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I see the tool '' in external tools table - # Teacher adds a tool without a custom parameter + # teacher adds a tool without a custom parameter Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' + When I go to 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 @@ -65,125 +65,125 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board 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 1' from available tools - Then I see tool 'CY Test Tool 1' is selected + When I select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 1' - # Teacher launches tool - When I launch tool 'CY Test Tool 1' on external tool element with given url 'https://google.com/' - Then I see tool 'CY Test Tool 1' on external tool element was launched + Then I see an external tool element with tool '' + # teacher launches tool + When I launch tool '' on external tool element with given url '' + Then I see tool '' on external tool element was launched - # Teacher adds a tool twice but with a different name + # teacher adds a tool twice but with a different name 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 1' from available tools - Then I see tool 'CY Test Tool 1' is selected - When I enter 'CY Test Tool 1 New' in display name field + When I select the tool '' from available tools + Then I see tool '' is selected + When I enter '' in display name field When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 1 New' + Then I see an external tool element with tool '' - # Teacher adds tool via tool link + # teacher adds tool via tool link 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 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 'CY Test Tool OpenStreetMap' is selected + When I insert the external tool link '' + Then I see tool '' is selected Then I see configuration 'mlat' is filled below with '52.40847' Then I see configuration 'mlon' is filled below with '9.80823' Then I see configuration 'zoom' is filled below with '19' When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool OpenStreetMap' + Then I see an external tool element with tool '' - # Teacher adds tool with a required custom parameter + # teacher adds tool with a required custom 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 Required Parameters' from available tools - Then I see tool 'CY Test Tool Required Parameters' is selected - # When required field is empty + When I select the tool '' from available tools + Then I see tool '' is selected + # when required field is empty When I click on save external tool button Then I see an error alert - When I enter 'test' in required custom parameter field 'contextParam' - Then I see custom parameter input field 'contextParam' contains 'test' + When I enter '' in required custom parameter field '' + Then I see custom parameter input field '' contains '' When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Required Parameters' + Then I see an external tool element with tool '' - # Teacher adds a tool with an optional custom parameter + # teacher adds a tool with an optional custom 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 Parameters' from available tools - Then I see tool 'CY Test Tool Optional Parameters' is selected - When I enter 'test' in optional custom parameter field 'contextParam' - Then I see custom parameter input field 'contextParam' contains 'test' + When I select the tool '' from available tools + Then I see tool '' is selected + When I enter '' in optional custom parameter field '' + Then I see custom parameter input field '' contains '' When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Optional Parameters' + Then I see an external tool element with tool '' - # Teacher edits a tool + # teacher edits a tool 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 Parameters' + When I click on three dot menu of external tool element '' When I click the edit button in three dot menu on the element - Then I see tool 'CY Test Tool Optional Parameters' is selected - Then I see custom parameter input field 'contextParam' contains 'test' - When I enter 'updated test' in optional custom parameter field 'contextParam' - Then I see custom parameter input field 'contextParam' contains 'updated test' + Then I see tool '' is selected + Then I see custom parameter input field '' contains '' + When I enter '' in optional custom parameter field '' When I click on save external tool button 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 Parameters' + When I click on three dot menu of external tool element '' When I click the edit button in three dot menu on the element - Then I see custom parameter input field 'contextParam' contains 'updated test' + Then I see custom parameter input field '' contains '' When I click on save external tool button - # Teacher deletes tools from board + # teacher deletes tools from 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 three dot menu of external tool element 'CY Test Tool Optional Parameters' + When I click on three dot menu of external tool element '' When I click the delete button in three dot menu on the element When I click on the button Remove on the Modal - # Post-condition: Admin deletes course + # post-condition: admin deletes course Given I am logged in as a '' at '' 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 + When I click the delete button for 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 + Then I do not see course '' in course table - # Post-condition: Admin deletes tools + # post-condition: admin deletes 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool Required Parameters' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Required Parameters' in external tools table - When I click on delete button of tool 'CY Test Tool Optional Parameters' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Optional Parameters' in external tools table - When I click on delete button of tool 'CY Test Tool OpenStreetMap' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | namespace | fullname_teacher | - | admin1_nbc | teacher1_nbc | nbc | Karl Herzog | + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_1_new | ctl_tool_required_param | school_param_name | context_param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | ctl_tool_launch_url | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool 1 | CY Test Tool 1 New | CY Test Tool Required Parameters | schoolParam | contextParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | https://google.com/ | + # @school_api_test # This feature is not executable with the school_api diff --git a/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature index 9603bf40..94d51f8a 100644 --- a/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature @@ -1,46 +1,44 @@ -# @regression_test -# @stable_test -# Note: The test was set to unstable because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging -@unstable_test +@regression_test +@stable_test + Feature: Course Board - To add a preferred tool in a board As a teacher I want to add a preferred tool in my course board - # @stable_test - @unstable_test + @stable_test Scenario Outline: Teacher adds, edits and deletes tools in a course board Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin creates a course + # pre-condition: admin creates a course When I go to courses overview 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 enter the course title '' + When I select '' 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 - # Pre-condition: Admin adds preferred tools + # pre-condition: admin adds preferred 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 Preferred' from available tools + When I select the tool '' from available tools When I click on save external tool button - Then I see the tool 'CY Test Tool Preferred' in external tools table + Then I see the tool '' in external tools table When I click the add external tool button - When I select the tool 'CY Test Tool Preferred With Param' from available tools + When I select the tool '' from available tools When I click on save external tool button - Then I see the tool 'CY Test Tool Preferred With Param' in external tools table + Then I see the tool '' in external tools table - # Teacher adds a preferred tool without a custom parameter + # teacher adds a preferred tool without a custom parameter Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' + When I go to 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 @@ -54,46 +52,47 @@ Feature: Course Board - To add a preferred tool in a 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 - Then I see preferred tool 'CY Test Tool Preferred' in the menu - When I select preferred tool 'CY Test Tool Preferred' from the menu - Then I see an external tool element with tool 'CY Test Tool Preferred' + Then I see preferred tool '' in the menu + When I select preferred tool '' from the menu + Then I see an external tool element with tool '' - # Teacher adds a preferred tool with a custom parameter + # teacher adds a preferred tool with a custom parameter 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 - Then I see tool 'CY Test Tool Preferred With Param' is selected + Then I see preferred tool '' in the menu + When I select preferred tool '' from the menu + Then I see tool '' is selected When I enter 'test' in required custom parameter field 'contextParam' - Then I see custom parameter input field 'contextParam' contains 'test' + Then I see custom parameter input field '' contains '' When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool Preferred With Param' + Then I see an external tool element with tool '' - # Post-condition: Admin deletes course + # post-condition: admin deletes course Given I am logged in as a '' at '' 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 + When I click the delete button for 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 + Then I do not see course '' in course table - # Post-condition: Admin deletes tools + # post-condition: admin deletes 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 Preferred With Param' + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Preferred With Param' in external tools table - When I click on delete button of tool 'CY Test Tool Preferred' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Preferred' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | namespace | fullname_teacher | - | admin1_nbc | teacher1_nbc | nbc | Karl Herzog | + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_preferred_param | ctl_tool_preferred | param_name | param_value | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool Preferred With Param | CY Test Tool Preferred | contextParam | test | + # @school_api_test # This feature is not executable with the school_api diff --git a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature index 90c1daa1..ebedacf8 100644 --- a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature @@ -9,64 +9,63 @@ Feature: Media Shelf - Restrict CTL tools to context board-element Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin creates a course + # pre-condition: admin creates a course When I go to courses overview 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 enter the course title '' + When I select '' 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 - # Pre-condition: Admin adds external tools to school + # pre-condition: admin adds external tools to school 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 select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has no context restriction + When I click the add external tool button + When I select the tool '' 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 + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has 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 select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool Board-Element Restriction' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool Media-Board Restriction' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool All Restrictions' from available tools + When I select the tool '' 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' - # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging - # 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' + When I click the add external tool button + When I select the tool '' from available tools + When I click on save external tool button + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' - # Teacher tries to add a tool with context restriction course + # teacher tries to add a tool with context restriction course Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course 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 @@ -81,91 +80,89 @@ Feature: Media Shelf - Restrict CTL tools to context board-element 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 - 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 + Then I do not see tool '' in the tool selection + # teacher tries to add a tool with context restriction media-board + Then I do not see tool '' 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 + # teacher adds a tool with context restriction board-element + When I select the tool '' from available tools + Then I see tool '' 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' + Then I see an external tool element with tool '' - # Teacher adds a tool with all context restrictions + # teacher adds a tool with all context restrictions 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 the tool 'CY Test Tool All Restrictions' from available tools - Then I see tool 'CY Test Tool All Restrictions' is selected + When I select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool All Restrictions' + Then I see an external tool element with tool '' - # Teacher adds a tool without any context restriction + # teacher adds a tool without any context restriction 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 the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected + Then I see tool '' is selected When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool '' - # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging - # # Teacher tries to add a preferred tool with context restriction 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 - # Then I do not see preferred tool 'CY Test Tool Preferred Course Restriction' in the menu + # teacher tries to add a preferred tool with context restriction 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 + Then I do not see preferred tool '' in the menu - # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging - # # 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 a preferred tool with context restriction board + Then I see preferred tool '' in the menu + When I select preferred tool '' from the menu + Then I see an external tool element with tool '' - # Post-condition: Admin deletes course + # post-condition: admin deletes course Given I am logged in as a '' at '' 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 + When I click the delete button for 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 + Then I do not see course '' in course table - # Post-condition: Admin deletes external tools + # post-condition: 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 click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool Course Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Course Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool Board-Element Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Board-Element Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool Media-Board Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Media-Board Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool All Restrictions' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool All Restrictions' in external tools table - # Note: This steps are commented out because the required feature flag (FEATURE_PREFERRED_CTL_TOOLS_ENABLED) is not yet activated in staging - # When I click on delete button of tool 'CY Test Tool Preferred Course Restriction' - # When I confirm deletion on deletion dialog - # Then I do not see the tool 'CY Test Tool Preferred Course Restriction' in external tools table - # When I click on delete button of tool 'CY Test Tool Preferred Board Restriction' - # When I confirm deletion on deletion dialog - # Then I do not see the tool 'CY Test Tool Preferred Board Restriction' in external tools table + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' + When I confirm deletion on deletion dialog + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | namespace | - | admin1_nbc | teacher1_nbc | nbc | + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | ctl_tool_preferred_restriction_course | ctl_tool_preferred_restriction_board_element | context_course | context_board_element | context_media_board | context_all | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | CY Test Tool Preferred Course Restriction | CY Test Tool Preferred Board Restriction | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | + # @school_api_test # This feature is not executable with the school_api diff --git a/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature index c5d51357..5b4143ba 100644 --- a/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature @@ -10,11 +10,11 @@ Feature: Deactivation of ctl tools in board Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin creates a course + # pre-condition: admin creates a course When I go to courses overview 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 enter the course title '' When I select '' 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 @@ -23,34 +23,34 @@ Feature: Deactivation of ctl tools in board Then I see the section three area as the finish page When I click on button To Course Overview on the finish page - # Pre-condition: Admin adds a tool + # pre-condition: admin adds a tool 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 - When I select the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected + When I select the tool '' from available tools + Then I see tool '' 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 - # Pre-condition: Admin adds a tool and deactivates it + Then I see the tool '' in external tools table + Then I see the tool '' is active in tools table + # pre-condition: admin adds a tool and deactivates it When I click the add external tool button Then I see the external tools configuration page - When I select the tool 'CY Test Tool 2' from available tools - Then I see tool 'CY Test Tool 2' is selected + When I select the tool '' from available tools + Then I see tool '' is selected When I deactivate the tool - Then I see the deactivate checkbox is 'checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is deactivated in external tools table - # Teacher tries to add a deactivated tool in board + # teacher tries to add a deactivated tool in board Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course 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 @@ -66,141 +66,141 @@ Feature: Deactivation of ctl tools in board 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 - Then I do not see tool 'CY Test Tool 2' in the tool selection - # Teacher adds a activated tool + Then I do not see tool '' 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 select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool '' - # Admin deactivates an existing tool + # admin deactivates an existing tool Given I am logged in as a '' at '' 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 tool '' in external tools table + When I click on edit button of tool '' 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 + Then I see tool '' is selected When I deactivate the tool - Then I see the deactivate checkbox is 'checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is deactivated in external tools table - # Teacher sees that a tool is marked as deactivated in board + # teacher sees that a tool is marked as deactivated in board Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course 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 a deactivated tool - When I click on external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool '' + Then I see an external tool element with tool '' is marked as deactivated + # teacher tries to launch a deactivated tool + When I click on external tool element with tool '' # Then nothing should happen - # Student sees that a tool is marked as deactivated in board + # student sees that a tool is marked as deactivated in board Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 a deactivated tool - When I click on external tool element with tool 'CY Test Tool 1' + Then I see an external tool element with tool '' + Then I see an external tool element with tool '' is marked as deactivated + # student tries to launch a deactivated tool + When I click on external tool element with tool '' # Then nothing should happen - # Admin activates existing deactivated tools + # admin activates existing deactivated tools Given I am logged in as a '' at '' 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 tool '' in external tools table + When I click on edit button of tool '' Then I see the external tools configuration page - Then I see tool 'CY Test Tool 1' is selected + Then I see tool '' is selected When I activate the tool - Then I see the deactivate checkbox is 'not checked' + 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 tool '' in external tools table + Then I see the tool '' is active in tools table + Then I see the tool '' in external tools table + When I click on edit button of tool '' Then I see the tool configuration infotext - Then I see tool 'CY Test Tool 2' is selected + Then I see tool '' is selected When I activate the tool - Then I see the deactivate checkbox is 'not checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is active in tools table - # Teacher adds activated tool to a board + # teacher adds activated tool to a board Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course 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 '' + Then I see an external tool element with tool '' 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 select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see an external tool element with tool 'CY Test Tool 2' + Then I see an external tool element with tool '' - # Student sees activated tools in board + # student sees activated tools in board Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course 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 + Then I see an external tool element with tool '' + Then I see an external tool element with tool '' is not marked as deactivated + Then I see an external tool element with tool '' + Then I see an external tool element with tool '' is not marked as deactivated - # Post-condition: Admin deletes course + # post-condition: admin deletes course Given I am logged in as a '' at '' 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 + When I click the delete button for 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 + Then I do not see course '' in course table - # Post-condition: Admin deletes external tools + # post-condition: 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool 2' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | student | namespace | fullname_teacher | fullname_student | - | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | + | admin | teacher | student | namespace | fullname_teacher | fullname_student | course_name | ctl_tool_1 | ctl_tool_2 | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | Cypress Test Course | CY Test Tool 1 | CY Test Tool 2 | # @school_api_test # This feature is not executable with the school_api From aeead97b80a3ddc15cd37bb808c3939face54da6 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 22 Jan 2025 16:16:47 +0100 Subject: [PATCH 15/23] add examples to ctl test --- .../e2e/admin/administrateCtlTools.feature | 89 +++++----- .../addEditDeleteCtlToolInCourse.feature | 158 ++++++++--------- ...ntextRestrictionOfCtlToolsInCourse.feature | 107 ++++++------ .../deactivationOfCtlToolsInCourse.feature | 161 +++++++++--------- 4 files changed, 257 insertions(+), 258 deletions(-) diff --git a/cypress/e2e/admin/administrateCtlTools.feature b/cypress/e2e/admin/administrateCtlTools.feature index beba09a6..88f68d07 100644 --- a/cypress/e2e/admin/administrateCtlTools.feature +++ b/cypress/e2e/admin/administrateCtlTools.feature @@ -7,8 +7,6 @@ Feature: Admin adds, edits and deletes CTL tools in school @stable_test Scenario Outline: Admin adds, edits and deletes external tools Given I am logged in as a '' at '' - - # Admin tries to find a hidden external tool 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 @@ -17,97 +15,96 @@ Feature: Admin adds, edits and deletes CTL tools in school 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 do not see external tool 'CY Test Tool Hidden' in the tool selection + # admin tries to find a hidden external tool + Then I do not see 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 + # admin adds a tool + When I select the tool '' from available tools + Then I see tool '' 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 '' in external tools table - # Admin adds a tool with required custom parameter + # admin adds a tool with required custom parameter 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 Required Parameters' from available tools - Then I see tool 'CY Test Tool Required Parameters' is selected - When I enter 'test' in required custom parameter input field 'schoolParam' - Then I see custom parameter input field 'schoolParam' contains 'test' + When I select the tool '' from available tools + Then I see tool '' is selected + When I enter '' in required custom parameter input field '' + Then I see custom parameter input field '' contains '' When I click on save external tool button - Then I see the tool 'CY Test Tool Required Parameters' in external tools table + Then I see the tool '' in external tools table - # Admin adds a tool via tool link with parameter + # admin adds a tool via tool link with parameter 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 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 'CY Test Tool OpenStreetMap' is selected + When I insert the external tool link '' + Then I see tool '' is selected When I click on save external tool button - Then I see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I see the tool '' in external tools table - # Admin adds a tool with optional custom parameter + # admin adds a tool with optional custom parameter 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 Optional Parameters' from available tools - Then I see tool 'CY Test Tool Optional Parameters' is selected - When I enter 'test' in optional custom parameter input field 'schoolParam' - Then I see custom parameter input field 'schoolParam' contains 'test' + When I select the tool '' from available tools + Then I see tool '' is selected + When I enter '' in optional custom parameter input field '' + Then I see custom parameter input field '' contains '' When I click on save external tool button - Then I see the tool 'CY Test Tool Optional Parameters' in external tools table + Then I see the tool '' in external tools table - # Admin edits a tool - When I click on edit button of tool 'CY Test Tool Optional Parameters' + # admin edits a tool + When I click on edit button of tool '' 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 Optional Parameters' is selected - When I enter 'updated test' in optional custom parameter input field 'schoolParam' - Then I see custom parameter input field 'schoolParam' contains 'updated test' + Then I see tool '' is selected + When I enter '' in optional custom parameter input field '' When I click on save external tool button - Then I see the tool 'CY Test Tool Optional Parameters' in external tools table - When I click on edit button of tool 'CY Test Tool Optional Parameters' + When I click on edit button of tool '' Then I see the external tools configuration page - Then I see custom parameter input field 'schoolParam' contains 'updated test' + Then I see custom parameter input field '' contains '' - # Admin deletes tools + # admin deletes 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 - Then I see the tool 'CY Test Tool 1' in external tools table - Then I see the tool 'CY Test Tool Required Parameters' in external tools table - Then I see the tool 'CY Test Tool Optional Parameters' in external tools table - Then I see the tool 'CY Test Tool OpenStreetMap' in external tools table - When I click on delete button of tool 'CY Test Tool 1' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table + When I click on delete button of tool '' Then I see the external tool deletion dialog title Then I see the external tool deletion dialog information text When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool Required Parameters' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' Then I see the external tool deletion dialog title Then I see the external tool deletion dialog information text When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Required Parameters' in external tools table - When I click on delete button of tool 'CY Test Tool Optional Parameters' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' Then I see the external tool deletion dialog title Then I see the external tool deletion dialog information text When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Optional Parameters' in external tools table - When I click on delete button of tool 'CY Test Tool OpenStreetMap' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' Then I see the external tool deletion dialog title Then I see the external tool deletion dialog information text When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | namespace | - | admin1_nbc | nbc | + | admin | namespace | ctl_tool_hidden | ctl_tool_1 | ctl_tool_required_param | param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | + | admin1_nbc | nbc | CY Test Tool Hidden | CY Test Tool 1 | CY Test Tool Required Parameters | schoolParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | # @school_api_test # This feature is not executable with the school_api \ No newline at end of file diff --git a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature index a8472e02..2db024c6 100644 --- a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature +++ b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature @@ -10,11 +10,11 @@ Feature: Course - To add, edit and delete a ctl tool in a course Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin creates a course, assign it to teacher and student + # pre-condition: admin creates a course, assign it to teacher and student When I go to courses overview 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 enter the course title '' When I select '' 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 @@ -23,169 +23,169 @@ Feature: Course - To add, edit and delete a ctl tool in a course Then I see the section three area as the finish page When I click on button To Course Overview on the finish page - # Pre-condition: Admin adds tools via selection + # pre-condition: admin adds tools via selection 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 select the tool '' 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 '' in external tools table When I click the add external tool button - When I select the tool 'CY Test Tool Required Parameters' from available tools - When I enter 'test' in required custom parameter input field 'schoolParam' + When I select the tool '' from available tools + When I enter '' in required custom parameter input field '' When I click on save external tool button - Then I see the tool 'CY Test Tool Required Parameters' in external tools table + Then I see the tool '' in external tools table When I click the add external tool button - When I select the tool 'CY Test Tool Optional Parameters' from available tools + When I select the tool '' from available tools When I click on save external tool button - Then I see the tool 'CY Test Tool Optional Parameters' in external tools table - # Pre-condition: Admin adds tools via tool link + Then I see the tool '' in external tools table + # pre-condition: admin adds tools via tool link 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 insert the external tool link 'https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823' + When I insert the external tool link '' When I click on save external tool button - Then I see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I see the tool '' in external tools table - # Teacher adds a tool without a custom parameter + # teacher adds a tool without a custom parameter Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 - When I select the tool 'CY Test Tool 1' from available tools - Then I see tool 'CY Test Tool 1' is selected + When I select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in the tool overview + Then I see the tool '' in the tool overview - # Teacher launches tool - When I lauch tool 'CY Test Tool 1' with given url 'https://google.com/' - Then I see tool 'CY Test Tool 1' was launched + # teacher launches tool + When I lauch tool '' with given url '' + Then I see tool '' was launched - # Teacher adds a tool twice but with a different name + # teacher adds a tool twice but with a different name 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 enter 'CY Test Tool 1 New' in display name field + When I select the tool '' from available tools + Then I see tool '' is selected + When I enter '' in display name field When I click on save external tool button - Then I see the tool 'CY Test Tool 1 New' in the tool overview + Then I see the tool '' in the tool overview - # Teacher adds tool via tool link + # teacher adds tool via tool link 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 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 'CY Test Tool OpenStreetMap' is selected + When I insert the external tool link '' + Then I see tool '' is selected Then I see configuration 'mlat' is filled below with '52.40847' Then I see configuration 'mlon' is filled below with '9.80823' Then I see configuration 'zoom' is filled below with '19' When I click on save external tool button - # Teacher adds tool with a required custom parameter + # teacher adds tool with a required custom 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 Required Parameters' from available tools - Then I see tool 'CY Test Tool Required Parameters' is selected - # When required field is empty + When I select the tool '' from available tools + Then I see tool '' is selected + # when required field is empty When I click on save external tool button Then I see an error alert - When I enter 'test' in required custom parameter field 'contextParam' - Then I see custom parameter input field 'contextParam' contains 'test' + When I enter '' in required custom parameter field '' + Then I see custom parameter input field '' contains '' When I click on save external tool button - Then I see the tool 'CY Test Tool Required Parameters' in the tool overview + Then I see the tool '' in the tool overview - # Teacher adds a tool with an optional custom parameter + # teacher adds a tool with an optional custom 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 Parameters' from available tools - Then I see tool 'CY Test Tool Optional Parameters' is selected - When I enter 'test' in optional custom parameter field 'contextParam' - Then I see custom parameter input field 'contextParam' contains 'test' + When I select the tool '' from available tools + Then I see tool '' is selected + When I enter '' in optional custom parameter field '' + Then I see custom parameter input field '' contains '' When I click on save external tool button - Then I see the tool 'CY Test Tool Optional Parameters' in the tool overview + Then I see the tool '' in the tool overview - # Teacher edits a tool - When I click on three dot menu of the tool 'CY Test Tool Optional Parameters' - When I click on the tool edit button of 'CY Test Tool Optional Parameters' + # teacher edits a tool + When I click on three dot menu of the tool '' + When I click on the tool edit button of '' Then I see the tool configuration page title - When I enter 'updated test' in optional custom parameter field 'contextParam' - Then I see custom parameter input field 'contextParam' contains 'updated test' + When I enter '' in optional custom parameter field '' When I confirm the update - Then I see course page 'Cypress Test Course' - When I click on three dot menu of the tool 'CY Test Tool Optional Parameters' - When I click on the tool edit button of 'CY Test Tool Optional Parameters' + Then I see course page '' + When I click on three dot menu of the tool '' + When I click on the tool edit button of '' Then I see the tool configuration page title - Then I see custom parameter input field 'contextParam' contains 'updated test' + Then I see custom parameter input field '' contains '' - # Student sees course tools but does not see the button to add a tool + # sudent sees course tools but does not see the button to add a tool Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' When I click on the tools tab Then I do not see the button to add a tool Then I see 5 tools - Then I see the tool 'CY Test Tool 1' in the tool overview - Then I see the tool 'CY Test Tool 1 New' in the tool overview - Then I see the tool 'CY Test Tool Required Parameters' in the tool overview - Then I see the tool 'CY Test Tool Optional Parameters' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview + Then I see the tool '' in the tool overview - # Teacher deletes tools from a course + # teacher deletes tools from a course Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' When I click on the tools tab Then I see 5 tools - When I click on three dot menu of the tool 'CY Test Tool Optional Parameters' - When I click on the tool delete of 'CY Test Tool Optional Parameters' + When I click on three dot menu of the tool '' + When I click on the tool delete of '' Then I see the delete tool dialog When I confirm the delete tool dialog - Then I do not see tool 'CY Test Tool Optional Parameters' in the tool overview + Then I do not see tool '' in the tool overview Then I see 4 tools - # Post-condition: Admin deletes course + # post-condition: admin deletes course Given I am logged in as a '' at '' 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 + When I click the delete button for 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 + Then I do not see course '' in course table - # Post-condition: Admin deletes tools + # post-condition: admin deletes 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool Required Parameters' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'Y Test Tool Required Parameters' in external tools table - When I click on delete button of tool 'CY Test Tool Optional Parameters' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Optional Parameters' in external tools table - When I click on delete button of tool 'CY Test Tool OpenStreetMap' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool OpenStreetMap' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | student | namespace | fullname_teacher | fullname_student | - | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | + | admin | teacher | student | namespace | course_name | fullname_teacher | fullname_student | ctl_tool_1 | ctl_tool_1_new | ctl_tool_required_param | school_param_name | context_param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | ctl_tool_launch_url | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Karl Herzog | Herbert Kraft | CY Test Tool 1 | CY Test Tool 1 New | CY Test Tool Required Parameters | schoolParam | contextParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | https://google.com/ | + # @school_api_test # This feature is not executable with the school_api diff --git a/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature index 9d2808f4..6232727e 100644 --- a/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature +++ b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature @@ -9,122 +9,123 @@ Feature: Media Shelf - Restrict CTL tools to context course Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin creates a course + # pre-condition: admin creates a course When I go to courses overview 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 enter the course title '' + When I select '' 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 external tools with context restriction to school + # admin adds external tools with context restriction to school 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 select the tool '' 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 + Then I see the tool '' in external tools table + Then I see the tool '' 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 select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool Board-Element Restriction' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool Media-Board Restriction' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - When I select the tool 'CY Test Tool All Restrictions' from available tools + When I select the tool '' 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' + Then I see the tool '' in external tools table + Then I see the tool '' in external tools table has context restriction '' When I click the add external tool button - # Teacher tries to a tool with context restriction board-element + # teacher tries to a tool with context restriction board-element Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 - 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 + Then I do not see tool '' in the tool selection + # teacher tries to a tool with context restriction media-board + Then I do not see tool '' 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 + # teacher adds a tool with context restriction course + When I select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see the tool 'CY Test Tool Course Restriction' in the tool overview + Then I see the tool '' in the tool overview - # Teacher adds a tool with all context restrictions + # 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 select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see the tool 'CY Test Tool All Restrictions' in the tool overview + Then I see the tool '' in the tool overview - # Teacher adds a tool without any context restriction + # 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 select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in the tool overview + Then I see the tool '' in the tool overview - # Post-condition: Admin deletes course + # post-condition: admin deletes course Given I am logged in as a '' at '' 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 + When I click the delete button for 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 + Then I do not see course '' in course table - # Post-condition: Admin deletes external tools + # post-condition: 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool Course Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Course Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool Board-Element Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Board-Element Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool Media-Board Restriction' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool Media-Board Restriction' in external tools table - When I click on delete button of tool 'CY Test Tool All Restrictions' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool All Restrictions' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | namespace | - | admin1_nbc | teacher1_nbc | nbc | + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | context_course | context_board_element | context_media_board | context_all | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | + # @school_api_test # This feature is not executable with the school_api diff --git a/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature index 50f9c6e2..e1d6b12e 100644 --- a/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature +++ b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature @@ -10,11 +10,11 @@ Feature: Deactivation of ctl tools in course Given I am logged in as a '' at '' Given I am logged in as a '' at '' - # Pre-condition: Admin creates a course + # pre-condition: admin creates a course When I go to courses overview 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 enter the course title '' When I select '' 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 @@ -23,7 +23,7 @@ Feature: Deactivation of ctl tools in course Then I see the section three area as the finish page When I click on button To Course Overview on the finish page - # Admin tries to add an deactivated external tool + # admin tries to add an deactivated external tool 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 @@ -31,165 +31,166 @@ Feature: Deactivation of ctl tools in course When I click the add external tool button Then I see the external tools configuration page 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 + # admin adds a tool + When I select the tool '' from available tools + Then I see tool '' 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 + Then I see the tool '' in external tools table + Then I see the tool '' 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 - When I select the tool 'CY Test Tool 2' from available tools - Then I see tool 'CY Test Tool 2' is selected + When I select the tool '' from available tools + Then I see tool '' is selected When I deactivate the tool - Then I see the deactivate checkbox is 'checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is deactivated in external tools table - # Teacher tries to add a deactivated tool in course + # teacher tries to add a deactivated tool in course Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 - Then I do not see tool 'CY Test Tool 2' in the tool selection - # Teacher adds a activated tool + Then I do not see tool '' 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 select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see the tool 'CY Test Tool 1' in the tool overview + Then I see the tool '' in the tool overview - # Admin deactivates an existing tool + # admin deactivates an existing tool Given I am logged in as a '' at '' 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 tool '' in external tools table + When I click on edit button of tool '' 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 + Then I see tool '' is selected When I deactivate the tool - Then I see the deactivate checkbox is 'checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is deactivated in external tools table - # Teacher tries to launch a deactivated tool in course + # teacher tries to launch a deactivated tool in course Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 the tool '' in the tool overview + Then I see the tool '' is marked as deactivated + When I click on the tool '' Then I see an error dialog When I close the dialog Then I see 1 tools - # Student sees that a tool is marked as deactivated in course + # student sees that a tool is marked as deactivated in course Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 - # Student tries to launch a deactivated tool in course - When I click on the tool 'CY Test Tool 1' + Then I see the tool '' in the tool overview + Then I see the tool '' is marked as deactivated + # student tries to launch a deactivated tool in course + When I click on the tool '' Then I see an error dialog When I close the dialog Then I see 1 tools - # Admin activates existing deactivated tools + # admin activates existing deactivated tools Given I am logged in as a '' at '' 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 tool '' in external tools table + When I click on edit button of tool '' Then I see the external tools configuration page - Then I see tool 'CY Test Tool 1' is selected + Then I see tool '' is selected When I activate the tool - Then I see the deactivate checkbox is 'not checked' + 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 tool '' in external tools table + Then I see the tool '' is active in tools table + Then I see the tool '' in external tools table + When I click on edit button of tool '' Then I see the tool configuration infotext - Then I see tool 'CY Test Tool 2' is selected + Then I see tool '' is selected When I activate the tool - Then I see the deactivate checkbox is 'not checked' + 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 + Then I see the tool '' in external tools table + Then I see the tool '' is active in tools table - # Teacher adds activated tool to course + # teacher adds activated tool to course Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 '' in the tool overview + Then I see the tool '' 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 select the tool '' from available tools + Then I see tool '' is selected When I click on save external tool button - Then I see the tool 'CY Test Tool 2' in the tool overview + Then I see the tool '' in the tool overview - # Student sees activated tools in course + # student sees activated tools in course Given I am logged in as a '' at '' When I go to courses overview - When I go to course 'Cypress Test Course' - Then I see course page 'Cypress Test Course' + When I go to course '' + Then I see course page '' 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 + Then I see the tool '' in the tool overview + Then I see the tool '' is not marked as deactivated + Then I see the tool '' in the tool overview + Then I see the tool '' is not marked as deactivated - # Post-condition: Admin deletes course + # post-condition: admin deletes course Given I am logged in as a '' at '' 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 + When I click the delete button for 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 + Then I do not see course '' in course table - # Post-condition: Admin deletes external tools + # post-condition: 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 click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 1' in external tools table - When I click on delete button of tool 'CY Test Tool 2' + Then I do not see the tool '' in external tools table + When I click on delete button of tool '' When I confirm deletion on deletion dialog - Then I do not see the tool 'CY Test Tool 2' in external tools table + Then I do not see the tool '' in external tools table Then I see the external tools table is empty @staging_test Examples: - | admin | teacher | student | namespace | fullname_teacher | fullname_student | - | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | + | admin | teacher | student | namespace | fullname_teacher | fullname_student | course_name | ctl_tool_1 | ctl_tool_2 | + | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | Cypress Test Course | CY Test Tool 1 | CY Test Tool 2 | + # @school_api_test # This feature is not executable with the school_api \ No newline at end of file From a5ada39f293260556466a36938440c2ee2474b9f Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 22 Jan 2025 16:17:44 +0100 Subject: [PATCH 16/23] adjust steps & methods --- cypress/support/pages/admin/pageAdministration.js | 6 ++++-- cypress/support/pages/course/pageCourses.js | 9 ++++----- cypress/support/pages/course_board/pageBoard.js | 4 ++++ cypress/support/pages/mediashelf/pageMediaShelf.js | 2 +- .../admin/administrateCtlToolSteps.spec.js | 13 ++++++------- 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/cypress/support/pages/admin/pageAdministration.js b/cypress/support/pages/admin/pageAdministration.js index 9de96ba8..9497ed0e 100644 --- a/cypress/support/pages/admin/pageAdministration.js +++ b/cypress/support/pages/admin/pageAdministration.js @@ -1038,17 +1038,19 @@ class Management { cy.get(Management.#toolErrorAlert).should("be.visible"); } - seeDeactivatedCheckBox(value) { + seeDeactivatedCheckBox() { cy.get(Management.#isDeactivatedCheckBox).should("be.visible"); } - seeDeactivatedCheckBoxIsChecked(value) { + seeDeactivatedCheckBoxIsChecked() { + cy.get(Management.#isDeactivatedCheckBox).should("be.visible"); cy.get(Management.#isDeactivatedCheckBox) .find('input[type="checkbox"]') .should("be.checked"); } seeDeactivatedCheckBoxIsNotChecked() { + cy.get(Management.#isDeactivatedCheckBox).should("be.visible"); cy.get(Management.#isDeactivatedCheckBox) .find('input[type="checkbox"]') .should("not.be.checked"); diff --git a/cypress/support/pages/course/pageCourses.js b/cypress/support/pages/course/pageCourses.js index 19c90932..e264621f 100644 --- a/cypress/support/pages/course/pageCourses.js +++ b/cypress/support/pages/course/pageCourses.js @@ -838,10 +838,10 @@ class Courses { } seeCopyResultNotification() { - cy.get(Courses.#copyResultNotification).should("exist"); + cy.get(Courses.#copyResultNotification).should("be.visible"); cy.get(Courses.#dialogTitle).siblings("div").should("have.length", "3"); - cy.get(Courses.#dialogTitle).should("exist"); - cy.get(Courses.#warningTitle).should("have.length", "2"); + cy.get(Courses.#dialogTitle).should("be.visible"); + cy.get(Courses.#warningTitle).should("have.length", "1"); cy.get(Courses.#dialogTitle) .next() .find("p") @@ -1012,8 +1012,7 @@ class Courses { .click() .type(searchString) .type("{enter}"); - cy.get(Courses.#chooseStudentSelectionBox).contains("Amelia").should("exist"); - cy.get(Courses.#btnSubmit).click(); + cy.get(Courses.#chooseStudentSelectionBox).contains(searchString).should("exist"); } seeTitleInSyncedGroupDialog() { diff --git a/cypress/support/pages/course_board/pageBoard.js b/cypress/support/pages/course_board/pageBoard.js index 2a6eb092..b4f93310 100644 --- a/cypress/support/pages/course_board/pageBoard.js +++ b/cypress/support/pages/course_board/pageBoard.js @@ -396,6 +396,10 @@ class Board { cy.get(Board.#deletedElement).contains(name).should("be.visible"); } + selectEditInThreeDotMenu() { + cy.get(Board.#editOptionThreeDot).click(); + } + seeBoardCard() { cy.get(Board.#boardCard).should("be.visible"); } diff --git a/cypress/support/pages/mediashelf/pageMediaShelf.js b/cypress/support/pages/mediashelf/pageMediaShelf.js index 5df75696..cab78b5d 100644 --- a/cypress/support/pages/mediashelf/pageMediaShelf.js +++ b/cypress/support/pages/mediashelf/pageMediaShelf.js @@ -29,7 +29,7 @@ class MediaShelf { static #mediaElementNoLongerAvailableChip = '[data-testid="warning-chip-no-longer-available"]'; static #threeDotMenuOnMediaElement = '[data-testid="board-menu-icon"]'; - static #deleteMediaElementButton = '[data-testid="board-menu-action-delete"]'; + static #deleteMediaElementButton = '[data-testid="kebab-menu-action-delete"]'; static #createLineButton = '[data-testid="create-line-button"]'; static #emptyStateSign = '[data-testid="empty-state"]'; static #emptyStateInfoText = '[data-testid="emptyTaskMessage"]'; diff --git a/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js b/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js index 48450bb3..4dbc3f85 100644 --- a/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js +++ b/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js @@ -51,13 +51,12 @@ Then("I do not see external tool {string} in the tool selection", (toolName) => management.externalToolIsNotVisibleInToolSelection(toolName); }); -Then("I see the deactivate checkbox is {string}", (value) => { - management.seeDeactivatedCheckBox(value); - if(value === "checked"){ - management.seeDeactivatedCheckBoxIsChecked() - } else if(value === "not checked"){ - management.seeDeactivatedCheckBoxIsNotChecked() - } +Then("I see the deactivate checkbox is checked", () => { + management.seeDeactivatedCheckBoxIsChecked() +}); + +Then("I see the deactivate checkbox is not checked", () => { + management.seeDeactivatedCheckBoxIsNotChecked() }); When("I click the add external tool button", () => { From fb9562e7bbd3399335e9592f4d7a943f167746ee Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 24 Jan 2025 12:27:13 +0100 Subject: [PATCH 17/23] adjust test --- .../e2e/admin/administrateCtlTools.feature | 35 ++++++++----------- .../addEditDeleteCtlToolInCourse.feature | 35 ++++++++----------- ...ntextRestrictionOfCtlToolsInCourse.feature | 9 ++--- .../e2e/course/copyCourseWithCtlTools.feature | 21 +++++------ .../deactivationOfCtlToolsInCourse.feature | 22 +++++------- .../course/shareCourseWithCtlTools.feature | 12 ++----- .../addEditDeleteCtlToolInBoard.feature | 13 +++---- ...ontextRestrictionOfCtlToolsInBoard.feature | 1 - .../copyCourseWithCtlToolsInBoard.feature | 3 -- .../deactivationOfCtlToolsInBoard.feature | 16 ++++----- ...deactivationOfCtlToolsInMediaShelf.feature | 15 ++++---- .../noAvailableToolsInMediaShelf.feature | 5 ++- 12 files changed, 72 insertions(+), 115 deletions(-) diff --git a/cypress/e2e/admin/administrateCtlTools.feature b/cypress/e2e/admin/administrateCtlTools.feature index 88f68d07..9115cc03 100644 --- a/cypress/e2e/admin/administrateCtlTools.feature +++ b/cypress/e2e/admin/administrateCtlTools.feature @@ -12,11 +12,10 @@ Feature: Admin adds, edits and deletes CTL tools in school 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 + Then I see the school external tool configuration page + Then I see the school external tool configuration infotext # admin tries to find a hidden external tool - Then I do not see external tool '' in the tool selection + Then I do not see tool '' in the tool selection # admin adds a tool When I select the tool '' from available tools @@ -26,21 +25,19 @@ Feature: Admin adds, edits and deletes CTL tools in school # admin adds a tool with required custom parameter 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 + Then I see the school external tool configuration page + Then I see the school external tool configuration infotext When I select the tool '' from available tools Then I see tool '' is selected - When I enter '' in required custom parameter input field '' + When I enter '' in required custom parameter field '' Then I see custom parameter input field '' contains '' When I click on save external tool button Then I see the tool '' in external tools table # admin adds a tool via tool link with parameter 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 + Then I see the school external tool configuration page + Then I see the school external tool configuration infotext When I insert the external tool link '' Then I see tool '' is selected When I click on save external tool button @@ -48,26 +45,24 @@ Feature: Admin adds, edits and deletes CTL tools in school # admin adds a tool with optional custom parameter 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 + Then I see the school external tool configuration page + Then I see the school external tool configuration infotext When I select the tool '' from available tools Then I see tool '' is selected - When I enter '' in optional custom parameter input field '' + When I enter '' in optional custom parameter field '' Then I see custom parameter input field '' contains '' When I click on save external tool button Then I see the tool '' in external tools table # admin edits a tool When I click on edit button of tool '' - 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 the school external tool configuration page + Then I see the school external tool configuration infotext Then I see tool '' is selected - When I enter '' in optional custom parameter input field '' + When I enter '' in optional custom parameter field '' When I click on save external tool button When I click on edit button of tool '' - Then I see the external tools configuration page + Then I see the school external tool configuration page Then I see custom parameter input field '' contains '' # admin deletes tools diff --git a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature index 2db024c6..903c9fe1 100644 --- a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature +++ b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature @@ -33,7 +33,7 @@ Feature: Course - To add, edit and delete a ctl tool in a course Then I see the tool '' in external tools table When I click the add external tool button When I select the tool '' from available tools - When I enter '' in required custom parameter input field '' + When I enter '' in required custom parameter field '' When I click on save external tool button Then I see the tool '' in external tools table When I click the add external tool button @@ -57,8 +57,7 @@ Feature: Course - To add, edit and delete a ctl tool in a 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 + Then I see the context external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button @@ -70,8 +69,7 @@ Feature: Course - To add, edit and delete a ctl tool in a course # teacher adds a tool twice but with a different name 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 + Then I see the context external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I enter '' in display name field @@ -80,19 +78,17 @@ Feature: Course - To add, edit and delete a ctl tool in a course # teacher adds tool via tool link 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 + Then I see the context external tool configuration page When I insert the external tool link '' Then I see tool '' is selected - Then I see configuration 'mlat' is filled below with '52.40847' - Then I see configuration 'mlon' is filled below with '9.80823' - Then I see configuration 'zoom' is filled below with '19' + Then I see custom parameter input field 'mlat' contains '52.40847' + Then I see custom parameter input field 'mlon' contains '9.80823' + Then I see custom parameter input field 'zoom' contains '19' When I click on save external tool button # teacher adds tool with a required custom 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 + Then I see the context external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected # when required field is empty @@ -105,8 +101,7 @@ Feature: Course - To add, edit and delete a ctl tool in a course # teacher adds a tool with an optional custom 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 + Then I see the context external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I enter '' in optional custom parameter field '' @@ -116,14 +111,14 @@ Feature: Course - To add, edit and delete a ctl tool in a course # teacher edits a tool When I click on three dot menu of the tool '' - When I click on the tool edit button of '' - Then I see the tool configuration page title + When I click on the tool edit button + Then I see the context external tool configuration page When I enter '' in optional custom parameter field '' - When I confirm the update + When I click on save external tool button Then I see course page '' When I click on three dot menu of the tool '' - When I click on the tool edit button of '' - Then I see the tool configuration page title + When I click on the tool edit button + Then I see the context external tool configuration page Then I see custom parameter input field '' contains '' # sudent sees course tools but does not see the button to add a tool @@ -147,7 +142,7 @@ Feature: Course - To add, edit and delete a ctl tool in a course When I click on the tools tab Then I see 5 tools When I click on three dot menu of the tool '' - When I click on the tool delete of '' + When I click on the tool delete Then I see the delete tool dialog When I confirm the delete tool dialog Then I do not see tool '' in the tool overview diff --git a/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature index 6232727e..df722417 100644 --- a/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature +++ b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature @@ -60,8 +60,7 @@ Feature: Media Shelf - Restrict CTL tools to context 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 + Then I see the context external tool configuration page Then I do not see tool '' in the tool selection # teacher tries to a tool with context restriction media-board Then I do not see tool '' in the tool selection @@ -74,8 +73,7 @@ Feature: Media Shelf - Restrict CTL tools to context course # 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 + Then I see the context external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button @@ -83,8 +81,7 @@ Feature: Media Shelf - Restrict CTL tools to context course # 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 + Then I see the context external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button diff --git a/cypress/e2e/course/copyCourseWithCtlTools.feature b/cypress/e2e/course/copyCourseWithCtlTools.feature index 4f2c0a20..e1fd6108 100644 --- a/cypress/e2e/course/copyCourseWithCtlTools.feature +++ b/cypress/e2e/course/copyCourseWithCtlTools.feature @@ -50,16 +50,14 @@ Feature: Course - Copy course with CTL tools 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 + Then I see the context external tool configuration page When I select the tool '' from available tools When I enter '' in required custom parameter field '' When I click on save external tool button Then I see the tool '' in the tool overview # pre-condition: 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 + Then I see the context external tool configuration page When I select the tool '' from available tools When I enter '' in required custom parameter field '' When I enter '' in optional custom parameter field '' @@ -67,8 +65,7 @@ Feature: Course - Copy course with CTL tools Then I see the tool '' in the tool overview # pre-condition: 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 + Then I see the context external tool configuration page When I select the tool '' from available tools When I enter '' in required custom parameter field '' When I select '' in required protected custom parameter selection @@ -137,15 +134,15 @@ Feature: Course - Copy course with CTL tools Then I see course page '' When I click on the tools tab When I click on three dot menu of the tool '' - When I click on the tool edit button of '' - Then I see the tool configuration page title + When I click on the tool edit button + Then I see the context external tool configuration page When I select '' in required protected custom parameter selection - When I confirm the update + When I click on save external tool button When I click on three dot menu of the tool '' - When I click on the tool edit button of '' - Then I see the tool configuration page title + When I click on the tool edit button + Then I see the context external tool configuration page When I enter '' in optional custom parameter field '' - When I confirm the update + When I click on save external tool button Then I see course page '' Then I see the tool '' is not marked as incomplete Then I see the tool '' is not marked as incomplete operational diff --git a/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature index e1d6b12e..76c3f93e 100644 --- a/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature +++ b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature @@ -29,8 +29,8 @@ Feature: Deactivation of ctl tools in course 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 do not see external tool 'CY Test Tool deactivated External Tool' in the tool selection + Then I see the school external tool configuration page + Then I do not see tool 'CY Test Tool deactivated External Tool' in the tool selection # admin adds a tool When I select the tool '' from available tools Then I see tool '' is selected @@ -39,7 +39,7 @@ Feature: Deactivation of ctl tools in course Then I see the tool '' 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 school external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I deactivate the tool @@ -56,11 +56,9 @@ Feature: Deactivation of ctl tools in 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 + Then I see the context external tool configuration page Then I do not see tool '' in the tool selection # teacher adds a activated tool - When I click on the tool configuration selection When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button @@ -74,9 +72,8 @@ Feature: Deactivation of ctl tools in course Then I see the external tools table Then I see the tool '' in external tools table When I click on edit button of tool '' - 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 the school external tool configuration page + Then I see the school external tool configuration infotext Then I see tool '' is selected When I deactivate the tool Then I see the deactivate checkbox is checked @@ -119,7 +116,7 @@ Feature: Deactivation of ctl tools in course Then I see the external tools table Then I see the tool '' in external tools table When I click on edit button of tool '' - Then I see the external tools configuration page + Then I see the school external tool configuration page Then I see tool '' is selected When I activate the tool Then I see the deactivate checkbox is not checked @@ -128,7 +125,7 @@ Feature: Deactivation of ctl tools in course Then I see the tool '' is active in tools table Then I see the tool '' in external tools table When I click on edit button of tool '' - Then I see the tool configuration infotext + Then I see the school external tool configuration infotext Then I see tool '' is selected When I activate the tool Then I see the deactivate checkbox is not checked @@ -146,8 +143,7 @@ Feature: Deactivation of ctl tools in course Then I see the tool '' 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 + Then I see the context external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button diff --git a/cypress/e2e/course/shareCourseWithCtlTools.feature b/cypress/e2e/course/shareCourseWithCtlTools.feature index 2d49f34a..48aa673b 100644 --- a/cypress/e2e/course/shareCourseWithCtlTools.feature +++ b/cypress/e2e/course/shareCourseWithCtlTools.feature @@ -44,16 +44,14 @@ Feature: Teacher can share a course with ctl tools Then I see the button to add a tool # pre-condition: 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 + Then I see the context external tool configuration page When I select the tool '' from available tools When I enter '' in required custom parameter field '' When I click on save external tool button Then I see the tool '' in the tool overview # pre-condition: 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 + Then I see the context external tool configuration page When I select the tool '' from available tools When I enter '' in required custom parameter field '' When I enter '' in optional custom parameter field '' @@ -61,8 +59,7 @@ Feature: Teacher can share a course with ctl tools Then I see the tool '' in the tool overview # pre-condition: 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 + Then I see the context external tool configuration page When I select the tool '' from available tools When I enter '' in required custom parameter field '' When I select '' in required protected custom parameter selection @@ -85,7 +82,6 @@ Feature: Teacher can share a course with ctl tools 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 '' from available tools When I enter '' in required custom parameter field '' When I click on save external tool button @@ -95,7 +91,6 @@ Feature: Teacher can share a course with ctl tools 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 '' from available tools When I enter '' in required custom parameter field '' When I enter '' in optional custom parameter field '' @@ -106,7 +101,6 @@ Feature: Teacher can share a course with ctl tools 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 '' from available tools When I enter '' in required custom parameter field '' When I select '' in required protected custom parameter selection diff --git a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature index 64f4e344..b37afeab 100644 --- a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature @@ -31,7 +31,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board Then I see the tool '' in external tools table When I click the add external tool button When I select the tool '' from available tools - When I enter '' in required custom parameter input field '' + When I enter '' in required custom parameter field '' When I click on save external tool button Then I see the tool '' in external tools table When I click the add external tool button @@ -64,7 +64,6 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board 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 '' from available tools Then I see tool '' is selected When I click on save external tool button @@ -78,7 +77,6 @@ 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 When I select external tools from the menu - When I click on the tool configuration selection When I select the tool '' from available tools Then I see tool '' is selected When I enter '' in display name field @@ -90,12 +88,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 When I select external tools from the menu - When I click on the tool configuration selection When I insert the external tool link '' Then I see tool '' is selected - Then I see configuration 'mlat' is filled below with '52.40847' - Then I see configuration 'mlon' is filled below with '9.80823' - Then I see configuration 'zoom' is filled below with '19' + Then I see custom parameter input field 'mlat' contains '52.40847' + Then I see custom parameter input field 'mlon' contains '9.80823' + Then I see custom parameter input field 'zoom' contains '19' When I click on save external tool button Then I see an external tool element with tool '' @@ -104,7 +101,6 @@ 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 When I select external tools from the menu - When I click on the tool configuration selection When I select the tool '' from available tools Then I see tool '' is selected # when required field is empty @@ -120,7 +116,6 @@ 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 When I select external tools from the menu - When I click on the tool configuration selection When I select the tool '' from available tools Then I see tool '' is selected When I enter '' in optional custom parameter field '' diff --git a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature index ebedacf8..6fc2e0f7 100644 --- a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature @@ -79,7 +79,6 @@ Feature: Media Shelf - Restrict CTL tools to context board-element 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 Then I do not see tool '' in the tool selection # teacher tries to add a tool with context restriction media-board Then I do not see tool '' in the tool selection diff --git a/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature index 25412e8f..c09233f1 100644 --- a/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature @@ -61,7 +61,6 @@ Feature: Course Board - Copy course with a board wich has CTL tools 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 '' from available tools When I enter '' in required custom parameter field '' When I click on save external tool button @@ -71,7 +70,6 @@ Feature: Course Board - Copy course with a board wich has CTL tools 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 '' from available tools When I enter '' in required custom parameter field '' When I enter '' in optional custom parameter field '' @@ -82,7 +80,6 @@ Feature: Course Board - Copy course with a board wich has CTL tools 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 '' from available tools When I enter '' in required custom parameter field '' When I select '' in required protected custom parameter selection diff --git a/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature index 5b4143ba..70cf4e90 100644 --- a/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature @@ -29,7 +29,7 @@ Feature: Deactivation of ctl tools in board 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 school external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button @@ -37,7 +37,7 @@ Feature: Deactivation of ctl tools in board Then I see the tool '' is active in tools table # pre-condition: 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 school external tool configuration page When I select the tool '' from available tools Then I see tool '' is selected When I deactivate the tool @@ -65,10 +65,8 @@ Feature: Deactivation of ctl tools in board 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 Then I do not see tool '' in the tool selection # teacher adds a activated tool - When I click on the tool configuration selection When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button @@ -82,9 +80,8 @@ Feature: Deactivation of ctl tools in board Then I see the external tools table Then I see the tool '' in external tools table When I click on edit button of tool '' - 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 the school external tool configuration page + Then I see the school external tool configuration infotext Then I see tool '' is selected When I deactivate the tool Then I see the deactivate checkbox is checked @@ -127,7 +124,7 @@ Feature: Deactivation of ctl tools in board Then I see the external tools table Then I see the tool '' in external tools table When I click on edit button of tool '' - Then I see the external tools configuration page + Then I see the school external tool configuration page Then I see tool '' is selected When I activate the tool Then I see the deactivate checkbox is not checked @@ -136,7 +133,7 @@ Feature: Deactivation of ctl tools in board Then I see the tool '' is active in tools table Then I see the tool '' in external tools table When I click on edit button of tool '' - Then I see the tool configuration infotext + Then I see the school external tool configuration infotext Then I see tool '' is selected When I activate the tool Then I see the deactivate checkbox is not checked @@ -157,7 +154,6 @@ Feature: Deactivation of ctl tools in 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 When I select external tools from the menu - When I click on the tool configuration selection When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button diff --git a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature index e75dc49b..df86e08c 100644 --- a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature @@ -16,9 +16,8 @@ Feature: Deactivation of ctl tools in media shelf 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 + Then I see the school external tool configuration page + Then I see the school external tool configuration infotext When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button @@ -26,9 +25,8 @@ Feature: Deactivation of ctl tools in media shelf Then I see the tool '' 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 + Then I see the school external tool configuration page + Then I see the school external tool configuration infotext When I select the tool '' from available tools Then I see tool '' is selected When I deactivate the tool @@ -69,9 +67,8 @@ Feature: Deactivation of ctl tools in media shelf Then I see the external tools table Then I see the tool '' in external tools table When I click on edit button of tool '' - 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 the school external tool configuration page + Then I see the school external tool configuration infotext Then I see tool '' is selected When I deactivate the tool Then I see the deactivate checkbox is checked diff --git a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature index 8b66b722..2e18aa35 100644 --- a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature @@ -15,9 +15,8 @@ Feature: No available tools in media shelf 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 + Then I see the school external tool configuration page + Then I see the school external tool configuration infotext When I select the tool '' from available tools Then I see tool '' is selected When I click on save external tool button From a9f51c10479fc6037d5a3e89a2b0cf22f9df78a7 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 24 Jan 2025 12:29:11 +0100 Subject: [PATCH 18/23] refactor functions --- .../support/pages/admin/pageAdministration.js | 205 ++++----------- .../pages/admin/pageToolConfiguration.js | 108 ++++++++ cypress/support/pages/course/pageCourses.js | 233 +++--------------- .../pages/course/pageImportCourseModal.js | 1 - .../pages/course/pageShareCourseModal.js | 1 - .../support/pages/course_board/pageBoard.js | 10 +- .../pages/mediashelf/pageMediaShelf.js | 189 +++++++------- 7 files changed, 294 insertions(+), 453 deletions(-) create mode 100644 cypress/support/pages/admin/pageToolConfiguration.js diff --git a/cypress/support/pages/admin/pageAdministration.js b/cypress/support/pages/admin/pageAdministration.js index 9497ed0e..77f47066 100644 --- a/cypress/support/pages/admin/pageAdministration.js +++ b/cypress/support/pages/admin/pageAdministration.js @@ -62,12 +62,6 @@ class Management { static #migrationFinishedTimestamp = '[data-testid="migration-finished-timestamp"]'; static #generalSettingsPanel = '[data-testid="general-settings-panel"]'; static #externalToolsPanel = '[data-testid="tools-panel"]'; - static #externalToolConfigInfotext = '[data-testid="tool-configuration-infotext"]'; - static #externalToolConfigPageTitle = - '[data-testid="school-external-tool-configurator-title"]'; - static #toolConfigurationSelectedItem = '[data-testid="configuration-selected-item"]'; - static #toolConfigurationSelectItem = '[data-testId="configuration-select-item"]'; - static #toolErrorAlert = '[data-testId="tool-error-alert"]'; static #accountMigrationPanel = '[data-testid="migration-panel"]'; static #externalToolsTable = '[data-testid="external-tool-section-table"]'; static #editExternalToolButton = '[data-testId="editAction"]'; @@ -89,13 +83,9 @@ class Management { static #dialogTitle = '[data-testid="dialog-title"]'; static #dialogConfirm = '[data-testid="dialog-confirm"]'; static #addExternalToolButton = '[data-testid="add-external-tool-button"]'; - static #toolSelection = '[data-testid="configuration-select"]'; - static #addExternalToolSaveButton = '[data-testid="save-button"]'; - static #isDeactivatedCheckBox = '[data-testid="configuration-deactivate-checkbox"]'; static #dataTable = '[data-testid="table_container"]'; static #studentVisiblityToggle = '[data-testid="admin-school-toggle-student-visibility"]'; - static #toolConfiguration = '[data-testid="configuration-field"]'; static #buttonNewAdminPage = '[data-testid="button_new_admin_page"]'; static #birthDateFieldCreateStudent = '[data-testid="input_create-student_birthdate"]'; @@ -159,6 +149,10 @@ class Management { static #buttonSaveChangePasswordModalUserSetting = '[data-testid="submit-btn-change-password-modal"]'; static #successNotificationChangePassword = '[data-testid="notification"]'; + static #externalToolStatus = '[data-testid="external-tool-status"]'; + static #externalToolContextRestriction = '[data-testid="external-tool-context-restriction"]'; + static #externalToolActions = '[data-testid="external-tool-actions"]'; + static #externalToolName = '[data-testid="external-tool-name"]'; seeSuccessMessageAfterChangingPasswordByAdmin() { cy.get(Management.#successNotificationChangePassword).should("be.visible"); @@ -954,18 +948,14 @@ class Management { } clickDeleteButtonOnTool(toolName) { - cy.get(Management.#externalToolsTable).contains(toolName); - const toolData = cy - .get(Management.#externalToolsTable) - .find("td") - .contains(toolName); - - toolData - .parent("td") - .siblings("td") - .find(Management.#deleteExternalToolButton) - .should("exist") - .click(); + cy.get(Management.#externalToolName) + .contains(toolName) + .parents("tr") + .within(() => { + cy.get(Management.#deleteExternalToolButton) + .should("be.visible") + .click(); + }); } clickOnConfirmInToolUsageDialog() { @@ -989,120 +979,31 @@ class Management { }); } - seeExternalToolConfigurationPage() { - cy.url().should("include", "/administration/school-settings/tool-configuration"); - } - - seeToolConfigurationInfoText() { - cy.get(Management.#externalToolConfigInfotext).should("be.visible"); - } - - seeExternalToolConfiguratorPageTitle() { - cy.get(Management.#externalToolConfigPageTitle).should("exist"); - } - - seeSelectedExternalTool(toolName) { - cy.get(Management.#toolConfigurationSelectedItem).should( - "contain.text", - toolName - ); - } - - seeCustomParameterFormContains(paramName, value) { - cy.get(`[data-testid="${paramName}"]`).find("input").should("have.value", value); - } - - fillInCustomParameter(paramName, value) { - cy.get(`[data-testid="${paramName}"]`).find("input").clear().type(value); - } - - insertToolLink(toolLink) { - cy.get(Management.#toolSelection).click().type(toolLink); - cy.get(Management.#toolConfigurationSelectItem).contains("CY Test Tool OpenStreetMap").click(); - } - - checkConfiguration(key, value) { - cy.get(Management.#toolConfiguration) - .get(`[data-testid="${key}"] input`) - .should("have.value", value); - } - - externalToolIsNotVisibleInToolSelection(toolName) { - cy.get(Management.#toolSelection).click(); - cy.get(Management.#toolConfigurationSelectItem) - .contains(toolName) - .should("not.exist"); - } - - seeToolErrorAlert() { - cy.get(Management.#toolErrorAlert).should("be.visible"); - } - - seeDeactivatedCheckBox() { - cy.get(Management.#isDeactivatedCheckBox).should("be.visible"); - } - - seeDeactivatedCheckBoxIsChecked() { - cy.get(Management.#isDeactivatedCheckBox).should("be.visible"); - cy.get(Management.#isDeactivatedCheckBox) - .find('input[type="checkbox"]') - .should("be.checked"); - } - - seeDeactivatedCheckBoxIsNotChecked() { - cy.get(Management.#isDeactivatedCheckBox).should("be.visible"); - cy.get(Management.#isDeactivatedCheckBox) - .find('input[type="checkbox"]') - .should("not.be.checked"); - } - clickAddExternalTool() { cy.get(Management.#addExternalToolButton).scrollIntoView().should("be.visible"); cy.get(Management.#addExternalToolButton).click(); } - addExternalTool(toolName) { - cy.get(Management.#toolSelection).click(); - cy.get(Management.#toolConfigurationSelectItem).contains(toolName).click(); - } - - deactivateTool() { - cy.get(Management.#isDeactivatedCheckBox) - .find('input[type="checkbox"]') - .check({ force: true }); - } - - activateTool() { - cy.get(Management.#isDeactivatedCheckBox) - .find('input[type="checkbox"]') - .uncheck({ force: true }); - } - checkActivatedTool(toolName) { - const toolData = cy - .get(Management.#externalToolsTable) - .find("td") - .contains(toolName); - - toolData.parent("td").siblings("td").eq(0).contains("Aktuell").should("exist"); + cy.get(Management.#externalToolName) + .contains(toolName) + .parents("tr") + .within(() => { + cy.get(Management.#externalToolStatus) + .should("be.visible") + .contains("Aktuell"); + }); } checkDeactivatedTool(toolName) { - const toolData = cy - .get(Management.#externalToolsTable) - .find("td") - .contains(toolName); - - toolData - .parent("td") - .siblings("td") - .eq(0) - .contains("Deaktiviert") - .should("exist"); - } - - saveExternalTool() { - cy.get(Management.#addExternalToolSaveButton).click(); + cy.get(Management.#externalToolName) + .contains(toolName) + .parents("tr") + .within(() => { + cy.get(Management.#externalToolStatus) + .should("be.visible") + .contains("Deaktiviert"); + }); } seeExternalToolDeletionDialogTitle() { @@ -1122,40 +1023,34 @@ class Management { } clickOnEditButton(toolName) { - const toolData = cy - .get(Management.#externalToolsTable) - .find("td") - .contains(toolName); - - toolData - .parent("td") - .siblings("td") - .eq(2) - .find(Management.#editExternalToolButton) - .should("exist") - .click(); + cy.get(Management.#externalToolName) + .contains(toolName) + .parents("tr") + .within(() => { + cy.get(Management.#editExternalToolButton) + .should("be.visible") + .click(); + }); } seeToolHasNoContextRestriction(toolName) { - const toolData = cy - .get(Management.#externalToolsTable) - .find("td") - .contains(toolName); - - toolData.parent("td").siblings("td").eq(1).should("have.text", ""); + cy.get(Management.#externalToolName) + .contains(toolName) + .parents("tr") + .within(() => { + cy.get(Management.#externalToolContextRestriction) + .should("have.text", ""); + }); } seeToolHasContextRestriction(toolName, contextRestriction) { - const toolData = cy - .get(Management.#externalToolsTable) - .find("td") - .contains(toolName); - - toolData - .parent("td") - .siblings("td") - .eq(1) - .should("have.text", contextRestriction); + cy.get(Management.#externalToolName) + .contains(toolName) + .parents("tr") + .within(() => { + cy.get(Management.#externalToolContextRestriction) + .should("have.text", contextRestriction); + }); } clickOnAuthenticationPanel() { diff --git a/cypress/support/pages/admin/pageToolConfiguration.js b/cypress/support/pages/admin/pageToolConfiguration.js new file mode 100644 index 00000000..dbb28fd5 --- /dev/null +++ b/cypress/support/pages/admin/pageToolConfiguration.js @@ -0,0 +1,108 @@ +"use strict"; + +class ToolConfiguration { + static #contextExternalToolConfiguratorPageTitle = + '[data-testid="context-external-tool-configurator-title"]'; + static #schoolExternalToolConfigPageTitle = + '[data-testid="school-external-tool-configurator-title"]'; + static #externalToolConfigInfotext = '[data-testid="tool-configuration-infotext"]'; + static #addExternalToolSaveButton = '[data-testid="save-button"]'; + static #toolConfigurationSelection = '[data-testid="configuration-select"]'; + static #toolConfigurationSelectItem = '[data-testId="configuration-select-item"]'; + static #toolConfigurationSelectedItem = '[data-testid="configuration-selected-item"]'; + static #isDeactivatedCheckBox = '[data-testid="configuration-deactivate-checkbox"]'; + static #toolErrorAlert = '[data-testId="tool-error-alert"]'; + static #toolDisplayNameInputField = '[data-testid="parameter-display-name"]'; + static #protectedParameter = '[data-testid="protected"]'; + + seeExternalToolConfiguratorPage() { + cy.get(ToolConfiguration.#schoolExternalToolConfigPageTitle).should("be.visible"); + } + + seeContextExternalToolConfiguratorPage() { + cy.get(ToolConfiguration.#contextExternalToolConfiguratorPageTitle) + .should("be.visible"); + } + + seeToolConfigurationInfoText() { + cy.get(ToolConfiguration.#externalToolConfigInfotext).should("be.visible"); + } + + saveExternalToolButton() { + cy.get(ToolConfiguration.#addExternalToolSaveButton).click(); + } + + addExternalTool(toolName) { + cy.get(ToolConfiguration.#toolConfigurationSelection).click(); + cy.get(ToolConfiguration.#toolConfigurationSelectItem).contains(toolName).click(); + } + + toolIsNotVisibleInToolSelection(toolName) { + cy.get(ToolConfiguration.#toolConfigurationSelection).click(); + cy.get(ToolConfiguration.#toolConfigurationSelectItem) + .contains(toolName) + .should("not.exist"); + } + + seeSelectedExternalTool(toolName) { + cy.get(ToolConfiguration.#toolConfigurationSelectedItem).should( + "contain.text", + toolName + ); + } + + insertToolLink(toolLink) { + cy.get(ToolConfiguration.#toolConfigurationSelection).click().type(toolLink); + cy.get(ToolConfiguration.#toolConfigurationSelectItem).contains("CY Test Tool OpenStreetMap").click(); + } + + deactivateTool() { + cy.get(ToolConfiguration.#isDeactivatedCheckBox) + .find('input[type="checkbox"]') + .check({ force: true }); + } + + activateTool() { + cy.get(ToolConfiguration.#isDeactivatedCheckBox) + .find('input[type="checkbox"]') + .uncheck({ force: true }); + } + + seeDeactivatedCheckBoxIsChecked() { + cy.get(ToolConfiguration.#isDeactivatedCheckBox).should("be.visible"); + cy.get(ToolConfiguration.#isDeactivatedCheckBox) + .find('input[type="checkbox"]') + .should("be.checked"); + } + + seeDeactivatedCheckBoxIsNotChecked() { + cy.get(ToolConfiguration.#isDeactivatedCheckBox).should("be.visible"); + cy.get(ToolConfiguration.#isDeactivatedCheckBox) + .find('input[type="checkbox"]') + .should("not.be.checked"); + } + + seeToolErrorAlert() { + cy.get(ToolConfiguration.#toolErrorAlert).should("be.visible"); + } + + fillInToolDisplayName(toolName) { + cy.get(ToolConfiguration.#toolDisplayNameInputField).find("input").clear().type(toolName); + } + + selectProtectedCustomParameterOption(value) { + cy.get(ToolConfiguration.#protectedParameter).click(); + cy.get("div").contains(value).click(); + } + + fillInCustomParameter(paramName, value) { + cy.get(`[data-testid="${paramName}"]`).find("input").clear().type(value); + } + + seeCustomParameterFormContains(paramName, value) { + cy.get(`[data-testid="${paramName}"]`).find("input").should("have.value", value); + } + +} + +export default ToolConfiguration; \ No newline at end of file diff --git a/cypress/support/pages/course/pageCourses.js b/cypress/support/pages/course/pageCourses.js index e264621f..3af06e44 100644 --- a/cypress/support/pages/course/pageCourses.js +++ b/cypress/support/pages/course/pageCourses.js @@ -69,14 +69,9 @@ class Courses { static #courseDetailPageTitle = '[data-testid="courses-course-title"]'; static #toolsTab = '[data-testid="tools-tab"]'; static #addToolButton = '[data-testid="add-tool-button"]'; - static #toolConfigurationSelect = '[data-testid="configuration-select"]'; - static #contextExternalToolConfiguratorPageTitle = - '[data-testid="context-external-tool-configurator-title"]'; static #groupSelection = '[id="classId_chosen"]'; static #chosenStudents = '[id="studentsId_chosen"] > .chosen-choices'; static #errorDialog = '[data-testId="error-dialog"]'; - static #outdatedDialogTitle = '[data-testid="dialog-title"]'; - static #toolConfigurationSelectItem = '[data-testId="configuration-select-item"]'; static #courseExternalToolSection = '[data-testid="room-external-tool-section"]'; static #saveToolButton = '[data-testid="save-button"]'; static #threeDotMenuOnTool = '[data-testid="room-tool-three-dot-button"]'; @@ -90,8 +85,6 @@ class Courses { static #dialogClose = '[data-testid="dialog-close"]'; static #toolEditBtn = '[data-testid="tool-edit"]'; static #toolDeleteBtn = '[data-testid="tool-delete"]'; - static #protectedParameter = '[data-testid="protected"]'; - static #saveBtn = '[data-testid="save-button"]'; static #incompleteChip = '[data-testid="tool-card-status"]'; static #deactivatedChip = '[data-testid="tool-card-status-deactivated"]'; static #incompleteOperationalChip = @@ -141,7 +134,6 @@ class Courses { static #teacherFieldContainer = '[data-testid="teachers_container"]'; static #studentFieldContainer = '[data-testid="students_container"]'; static #teacherSelectionBoxInCourseCreate = '[data-testid="teachersearch"]'; - static #toolDisplayNameInputField = '[data-testid="parameter-display-name"]'; static #delteToolDialog = '[data-testid="delete-dialog"]'; static #delteDialogTitle = '[data-testid="dialog-title"]'; static #delteDialogContent = '[data-testid="delete-dialog-content"]'; @@ -402,21 +394,13 @@ class Courses { } seeAddNewToolFAB() { - cy.get(Courses.#addToolButton).should("exist"); + cy.get(Courses.#addToolButton).should("be.visible"); } seeNotAddNewToolFAB() { cy.get(Courses.#addToolButton).should("not.exist"); } - seeContextExternalToolConfiguratorPageTitle() { - cy.get(Courses.#contextExternalToolConfiguratorPageTitle).should("exist"); - } - - clickOnToolConfigurationSelect() { - cy.get(Courses.#toolConfigurationSelect).click(); - } - courseIsVisibleOnOverviewPage(courseName) { cy.contains(courseName).should("be.visible").and("contain.text", courseName); } @@ -724,61 +708,27 @@ class Courses { } checkIfToolIsVisibleInToolTable(toolName) { - cy.get(Courses.#courseExternalToolSection).contains(toolName).should("exist"); + cy.get(Courses.#courseExternalToolSection).contains(toolName).scrollIntoView().should("be.visible"); } checkIfToolIsNotVisibleInToolTable(toolName) { cy.get(Courses.#courseExternalToolSection).contains(toolName).should("not.exist"); } - seeToolIsNotMarkedDeactivated(toolName) { - const toolData = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - - toolData - .parent("div") - .siblings("div") - .find('[data-testid="tool-card-status-deactivated"]') - .should("not.exist"); - } - - seeToolIsMarkedDeactivated(toolName) { - const toolData = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - - toolData - .parent("div") - .siblings("div") - .find("span") - .contains("Tool deaktiviert") - .should("be.visible"); - } - clickThreeDotMenuOnTool(toolName) { - cy.get(Courses.#courseExternalToolSection).contains(toolName); - const toolData = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - - toolData.parent("div").find(Courses.#threeDotMenuOnTool).click().should("exist"); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#threeDotMenuOnTool) + .should("be.visible") + .click(); + }); } clickOnDeleteButton(toolName) { - const toolData = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - - toolData - .parent("div") - .find(Courses.#DeleteButtonInDotMenuOfTool) - .should("be.visible") - .click({ force: true }); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#DeleteButtonInDotMenuOfTool) + .should("be.visible") + .click({ force: true }); + }); } checkConfirmButtonOnDeletionDialog() { @@ -793,60 +743,18 @@ class Courses { cy.get(Courses.#courseExternalToolSection).contains(toolName).click(); } - clickOnToolAndReturn(toolName) { - cy.on("window:before:load", (win) => {}); - - cy.intercept("GET", "https://google.com", (req) => { - // catch the page as it loads - req.continue((res) => { - res.body = res.body.replaceAll( - "window.location.replace", - "window.__location.replace" - ); - }); - }).as("index"); - cy.get(Courses.#courseExternalToolSection) - .contains(toolName) - .click() - .should("contain", "Peter Pan"); - cy.wait("@index"); - } - clickOnSaveTool() { cy.get(Courses.#saveToolButton).click(); } - checkIfToolIsNotVisibleInSelection(toolName) { - !cy.get(Courses.#toolConfigurationSelect).should("not.contain", toolName); - } - - checkIfOutdatedDialogIsOpen(toolName) { - cy.get(Courses.#outdatedDialogTitle).should("exist"); - cy.get(Courses.#outdatedDialogTitle).should("contain", toolName); - cy.get(Courses.#errorDialog).should("exist"); - cy.get(Courses.#outdatedDialogTitle) - .siblings("div") - .eq(0) - .find("p") - .invoke("text") - .should("have.length.gt", 0); - } - clickCopyCourseButton() { cy.get(Courses.#dropDownCourse).parent().click(); cy.get(Courses.#btnCopyCourse).click(); } seeCopyResultNotification() { - cy.get(Courses.#copyResultNotification).should("be.visible"); - cy.get(Courses.#dialogTitle).siblings("div").should("have.length", "3"); cy.get(Courses.#dialogTitle).should("be.visible"); - cy.get(Courses.#warningTitle).should("have.length", "1"); - cy.get(Courses.#dialogTitle) - .next() - .find("p") - .invoke("text") - .should("have.length.gt", 0); + cy.get(Courses.#copyResultNotification).should("be.visible"); } clickOnDialogClose() { @@ -864,86 +772,44 @@ class Courses { } seeToolIsMarkedAsDeactivated(toolName) { - const toolCard = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - toolCard - .parent("div") - .siblings("div") - .find(Courses.#deactivatedChip) - .should("exist"); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#deactivatedChip).should("be.visible"); + }); } seeToolIsNotMarkedAsDeactivated(toolName) { - const toolCard = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - toolCard - .parent("div") - .siblings("div") - .find(Courses.#deactivatedChip) - .should("not.exist"); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#deactivatedChip).should("not.exist"); + }); } seeToolIsMarkedAsIncomplete(toolName) { - const toolCard = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - toolCard - .parent("div") - .siblings("div") - .find(Courses.#incompleteChip) - .should("exist"); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#incompleteChip).should("be.visible"); + }); } seeToolIsNotMarkedAsIncomplete(toolName) { - const toolCard = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - toolCard - .parent("div") - .siblings("div") - .find(Courses.#incompleteChip) - .should("not.exist"); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#incompleteChip).should("not.exist"); + }); } seeToolIsMarkedAsIncompleteOperational(toolName) { - const toolCard = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - toolCard - .parent("div") - .siblings("div") - .find(Courses.#incompleteOperationalChip) - .should("exist"); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#incompleteOperationalChip).should("be.visible"); + }); } seeToolIsNotMarkedAsIncompleteOperational(toolName) { - const toolCard = cy - .get(Courses.#courseExternalToolSection) - .find("div") - .contains(toolName); - toolCard - .parent("div") - .siblings("div") - .find(Courses.#incompleteOperationalChip) - .should("not.exist"); + cy.get(`[data-testid="external-tool-card-${toolName}"]`).within(() => { + cy.get(Courses.#incompleteOperationalChip).should("not.exist"); + }); } checkIfErrorDialogIsOpen() { - cy.get(Courses.#dialogTitle).should("exist"); - cy.get(Courses.#errorDialog).should("exist"); - cy.get(Courses.#dialogTitle).siblings("div").should("have.length", "3"); - cy.get(Courses.#dialogTitle) - .next() - .find("p") - .invoke("text") - .should("have.length.gt", 0); + cy.get(Courses.#dialogTitle).should("be.visible"); + cy.get(Courses.#errorDialog).should("be.visible"); } clickThreeDotMenuOnTool(toolName) { @@ -954,11 +820,11 @@ class Courses { toolCard.parent("div").find(Courses.#toolCardThreeDotBtn).click(); } - clickOnToolEditButton(toolName) { + clickOnToolEditButton() { cy.get(Courses.#toolEditBtn).click(); } - clickOnToolDeleteButton(toolName) { + clickOnToolDeleteButton() { cy.get(Courses.#toolDeleteBtn).click(); } @@ -973,35 +839,6 @@ class Courses { cy.get(Courses.#confirmDeleteDialogButton).should("be.visible"); } - schoolExternalToolIsNotVisibleInToolSelection(toolName) { - cy.get(Courses.#toolConfigurationSelect).click(); - cy.get(Courses.#toolConfigurationSelectItem) - .contains(toolName) - .should("not.exist"); - } - - editMissingToolParameterValue() { - cy.get(Courses.#protectedParameter).click(); - cy.get("div").contains("Nein").click(); - } - - editProtectedCustomParameter(value) { - cy.get(Courses.#protectedParameter).click(); - cy.get("div").contains(value).click(); - } - - fillInCustomParameter(paramName, value) { - cy.get(`[data-testid="${paramName}"]`).find("input").clear().type(value); - } - - fillInDisplayName(toolName) { - cy.get(Courses.#toolDisplayNameInputField).find("input").clear().type(toolName); - } - - clickOnConfirmButton() { - cy.get(Courses.#saveBtn).click(); - } - clickOnEditCourse() { cy.get(Courses.#dropDownCourse).parent().click(); cy.get(Courses.#btnCourseEdit).click(); diff --git a/cypress/support/pages/course/pageImportCourseModal.js b/cypress/support/pages/course/pageImportCourseModal.js index 07a20cdd..0131e6fa 100644 --- a/cypress/support/pages/course/pageImportCourseModal.js +++ b/cypress/support/pages/course/pageImportCourseModal.js @@ -50,7 +50,6 @@ class ImportCourseModal { .then((value) => { expect(value).to.equal(defaultCourseName); }); - } } diff --git a/cypress/support/pages/course/pageShareCourseModal.js b/cypress/support/pages/course/pageShareCourseModal.js index 207b163d..fecd6769 100644 --- a/cypress/support/pages/course/pageShareCourseModal.js +++ b/cypress/support/pages/course/pageShareCourseModal.js @@ -77,7 +77,6 @@ class ShareCourseModal { seeQrCodeButtonInShareCourseResultDialog() { cy.get(ShareCourseModal.#shareCourseDialogQrCodeButton).should("be.visible"); } - } export default ShareCourseModal; diff --git a/cypress/support/pages/course_board/pageBoard.js b/cypress/support/pages/course_board/pageBoard.js index b4f93310..184f52ff 100644 --- a/cypress/support/pages/course_board/pageBoard.js +++ b/cypress/support/pages/course_board/pageBoard.js @@ -262,9 +262,8 @@ class Board { } seePreferredExternalToolInMenu(toolName) { - cy.get(`[data-testid="create-element-preferred-element-${toolName}"]`).should( - "be.visible" - ); + cy.get(`[data-testid="create-element-preferred-element-${toolName}"]`) + .should("be.visible"); } selectPreferredExternalToolFromMenu(toolName) { @@ -272,9 +271,8 @@ class Board { } preferredExternalToolIsNotVisibleInMenu(toolName) { - cy.get(`[data-testid="create-element-preferred-element-${toolName}"]`).should( - "not.exist" - ); + cy.get(`[data-testid="create-element-preferred-element-${toolName}"]`) + .should("not.exist"); } clickThreeDotMenuOnExternalToolElementWithTool(toolName) { diff --git a/cypress/support/pages/mediashelf/pageMediaShelf.js b/cypress/support/pages/mediashelf/pageMediaShelf.js index cab78b5d..0a0139ec 100644 --- a/cypress/support/pages/mediashelf/pageMediaShelf.js +++ b/cypress/support/pages/mediashelf/pageMediaShelf.js @@ -40,15 +40,15 @@ class MediaShelf { } seeMediaShelfPageTitle() { - cy.get(MediaShelf.#mediaShelfPageTitle).should("exist"); + cy.get(MediaShelf.#mediaShelfPageTitle).should("be.visible"); } seeAvailableMediaLine() { - cy.get(MediaShelf.#availableLine).should("exist"); + cy.get(MediaShelf.#availableLine).should("be.visible"); } seeFirstMediaLine() { - cy.get(MediaShelf.#mediaLine1).should("exist"); + cy.get(MediaShelf.#mediaLine1).should("be.visible"); } firstMediaLineIsNotVisible() { @@ -56,22 +56,24 @@ class MediaShelf { } seeFirstMediaLineWithTitle(title) { - const line = cy.get(MediaShelf.#mediaLineHeader1); - line.find("textarea.v-field__input").should("have.value", title); + cy.get(MediaShelf.#mediaLineHeader1).within(() => { + cy.get("textarea.v-field__input") + .should("have.value", title); + }); } seeMediaLineMenu() { - cy.get(MediaShelf.#editLineTitleButton).should("exist"); - cy.get(MediaShelf.#colorPickerButton).should("exist"); - cy.get(MediaShelf.#deleteLineButton).should("exist"); + cy.get(MediaShelf.#editLineTitleButton).should("be.visible"); + cy.get(MediaShelf.#colorPickerButton).should("be.visible"); + cy.get(MediaShelf.#deleteLineButton).should("be.visible"); } seeAvailableMediaLineMenu() { - cy.get(MediaShelf.#colorPickerButton).should("exist"); + cy.get(MediaShelf.#colorPickerButton).should("be.visible"); } seeAvailableBackgroundColors() { - cy.get(MediaShelf.#colorPicker).should("exist"); + cy.get(MediaShelf.#colorPicker).should("be.visible"); } seeAvailableMediaLineMenuColor(color) { @@ -83,35 +85,31 @@ class MediaShelf { } isAvailableMediaLineCollapsed() { - const availableLine = cy.get(MediaShelf.#availableLine); - availableLine - .find(".v-expansion-panel-text.no-inner-padding") - .should("have.css", "display", "none"); + cy.get(MediaShelf.#availableLine).within(() => { + cy.get(".v-expansion-panel-text.no-inner-padding") + .should("have.css", "display", "none"); + }); } isAvailableMediaLineNotCollapsed() { - const availableLine = cy.get(MediaShelf.#availableLine); - availableLine - .find(".v-expansion-panel-text.no-inner-padding") - .should("not.have.css", "display", "none"); + cy.get(MediaShelf.#availableLine).within(() => { + cy.get(".v-expansion-panel-text.no-inner-padding") + .should("not.have.css", "display", "none"); + }); } isFirstMediaLineCollapsed() { - const line = cy.get(MediaShelf.#mediaLine1); - line.find(".v-expansion-panel-text.no-inner-padding").should( - "have.css", - "display", - "none" - ); + cy.get(MediaShelf.#mediaLine1).within(() => { + cy.get(".v-expansion-panel-text.no-inner-padding") + .should("have.css", "display", "none"); + }); } isFirstMediaLineNotCollapsed() { - const line = cy.get(MediaShelf.#mediaLine1); - line.find(".v-expansion-panel-text.no-inner-padding").should( - "not.have.css", - "display", - "none" - ); + cy.get(MediaShelf.#mediaLine1).within(() => { + cy.get(".v-expansion-panel-text.no-inner-padding") + .should("not.have.css", "display", "none"); + }); } seeGridLayout() { @@ -136,51 +134,59 @@ class MediaShelf { } seeMediaElementDefaultThumbnail(toolName) { - const element = cy.get('[data-testid="media-element-' + toolName + '"]'); - element.find(MediaShelf.#mediaElementDefaultThumbnail).should("exist"); + cy.get(`[data-testid="media-element-${toolName}"]`).within(() => { + cy.get(MediaShelf.#mediaElementDefaultThumbnail).should("be.visible"); + }); } seeMediaElementTitle(toolName) { - const element = cy.get('[data-testid="media-element-' + toolName + '"]'); - element - .find(MediaShelf.#mediaElementTitle) - .should("exist") + cy.get(`[data-testid="media-element-${toolName}"]`).within(() => { + cy.get(MediaShelf.#mediaElementTitle) + .should("be.visible") .should("contain.text", toolName); + }); } seeMediaElementDescription(toolName) { - const element = cy.get('[data-testid="media-element-' + toolName + '"]'); - element.find(MediaShelf.#mediaElementDescription).should("exist"); + cy.get(`[data-testid="media-element-${toolName}"]`).within(() => { + cy.get(MediaShelf.#mediaElementDescription).should("be.visible"); + }); } seeMediaElementDeactivatedChip(toolName) { - const element = cy.get('[data-testid="media-element-' + toolName + '"]'); - element.find(MediaShelf.#mediaElementDeactivatedChip).should("exist"); + cy.get(`[data-testid="media-element-${toolName}"]`).within(() => { + cy.get(MediaShelf.#mediaElementDeactivatedChip).should("be.visible"); + }); } seeMediaElementNotLicensedChip(toolName) { - const element = cy.get('[data-testid="media-element-' + toolName + '"]'); - element.find(MediaShelf.#mediaElementNotLicensedChip).should("exist"); + cy.get(`[data-testid="media-element-${toolName}"]`).within(() => { + cy.get(MediaShelf.#mediaElementNotLicensedChip).should("be.visible"); + }); } seeMediaElementIncompleteChip(toolName) { - const element = cy.get('[data-testid="media-element-' + toolName + '"]'); - element.find(MediaShelf.#mediaElementIncompleteChip).should("exist"); + cy.get(`[data-testid="media-element-${toolName}"]`).within(() => { + cy.get(MediaShelf.#mediaElementIncompleteChip).should("be.visible"); + }); } seeMediaElementNoLongerAvailableChip(toolName) { - const element = cy.get('[data-testid="media-element-' + toolName + '"]'); - element.find(MediaShelf.#mediaElementNoLongerAvailableChip).should("exist"); + cy.get(`[data-testid="media-element-${toolName}"]`).within(() => { + cy.get(MediaShelf.#mediaElementNoLongerAvailableChip).should("be.visible"); + }); } mediaElementIsVisibleInAvailableMediaLine(toolName) { - const line = cy.get(MediaShelf.#availableMediaLineSpace); - line.find('[data-testid="media-element-' + toolName + '"]').should("exist"); + cy.get(MediaShelf.#availableMediaLineSpace).within(() => { + cy.get(`[data-testid="media-element-${toolName}"]`).should("be.visible"); + }); } mediaElementIsNotVisibleInAvailableMediaLine(toolName) { - const line = cy.get(MediaShelf.#availableMediaLineSpace); - line.find('[data-testid="media-element-' + toolName + '"]').should("not.exist"); + cy.get(MediaShelf.#availableMediaLineSpace).within(() => { + cy.get(`[data-testid="media-element-${toolName}"]`).should("not.exist"); + }); } clickGridLayoutButton() { @@ -218,16 +224,18 @@ class MediaShelf { } editTitleOfFirstMediaLine(title) { - const line = cy.get(MediaShelf.#mediaLine1); - line.find(MediaShelf.#lineTitle) - .type("{selectAll}{backspace}") - .type(title) - .type("{esc}"); + cy.get(MediaShelf.#mediaLine1).within(() => { + cy.get(MediaShelf.#lineTitle) + .type("{selectAll}{backspace}") + .type(title) + .type("{esc}"); + }); } clickOnFirstMediaLineTitle() { - const line = cy.get(MediaShelf.#mediaLine1); - line.find(MediaShelf.#lineTitle).dblclick(); + cy.get(MediaShelf.#mediaLine1).within(() => { + cy.get(MediaShelf.#lineTitle).dblclick(); + }); } clickDeleteMediaLineButton() { @@ -239,21 +247,23 @@ class MediaShelf { } selectLineColor() { - const colorPicker = cy.get(MediaShelf.#colorPicker); - colorPicker.get('[style="background: rgb(255, 204, 188);"]').click(); + cy.get(MediaShelf.#colorPicker).within(() => { + cy.get('[style="background: rgb(255, 204, 188);"]').click(); + }); } selectLineColorWhite() { - const colorPicker = cy.get(MediaShelf.#colorPicker); - colorPicker.get('[style="background: rgb(255, 255, 255);"]').click(); + cy.get(MediaShelf.#colorPicker).within(() => { + cy.get('[style="background: rgb(255, 255, 255);"]').click(); + }); } clickMediaElement(tool) { - cy.get('[data-testid="media-element-' + tool + '"]').click(); + cy.get(`[data-testid="media-element-${toolName}"]`).click(); } clickThreeDotMenuButtonOnMediaElement(toolName) { - cy.get('[data-testid="media-element-' + toolName + '"]') + cy.get(`[data-testid="media-element-${toolName}"]`) .find(MediaShelf.#threeDotMenuOnMediaElement) .click(); } @@ -263,15 +273,13 @@ class MediaShelf { } moveToolInGhostMediaLine(toolName) { - cy.get('[data-testid="media-element-' + toolName + '"]').drag( - MediaShelf.#ghostLineSpace - ); + cy.get(`[data-testid="media-element-${toolName}"]`) + .drag(MediaShelf.#ghostLineSpace); } moveToolInEmptyFirstMediaLine(toolName) { - cy.get('[data-testid="media-element-' + toolName + '"]').drag( - MediaShelf.#mediaLineSpace1 - ); + cy.get(`[data-testid="media-element-${toolName}"]`) + .drag(MediaShelf.#mediaLineSpace1); } moveToolInFirstMediaLine(toolName) { @@ -280,10 +288,8 @@ class MediaShelf { source: { position: "right" }, force: true, }; - cy.get('[data-testid="media-element-' + toolName + '"]').drag( - MediaShelf.#mediaLineSpace1, - options - ); + cy.get(`[data-testid="media-element-${toolName}"]`) + .drag(MediaShelf.#mediaLineSpace1, options); } moveToolInAvailableMediaLine(toolName) { @@ -292,16 +298,13 @@ class MediaShelf { source: { position: "right" }, force: true, }; - cy.get('[data-testid="media-element-' + toolName + '"]').drag( - MediaShelf.#availableMediaLineSpace, - options - ); + cy.get(`[data-testid="media-element-${toolName}"]`) + .drag(MediaShelf.#availableMediaLineSpace, options); } moveToolInEmptyAvailableMediaLine(toolName) { - cy.get('[data-testid="media-element-' + toolName + '"]').drag( - MediaShelf.#availableMediaLineSpace - ); + cy.get(`[data-testid="media-element-${toolName}"]`) + .drag(MediaShelf.#availableMediaLineSpace); } moveToolNextToTool(toolNameSource, toolNameTarget) { @@ -310,15 +313,14 @@ class MediaShelf { source: { position: "right" }, force: true, }; - cy.get('[data-testid="media-element-' + toolNameSource + '"]').drag( - '[data-testid="media-element-' + toolNameTarget + '"]', - options - ); + cy.get(`[data-testid="media-element-${toolNameSource}"]`) + .drag(`[data-testid="media-element-${toolNameTarget}"]`, options); } mediaElementIsVisibleInFirstMediaLine(toolName) { - const line = cy.get(MediaShelf.#mediaLineSpace1); - line.find('[data-testid="media-element-' + toolName + '"]').should("exist"); + cy.get(MediaShelf.#mediaLineSpace1).within(() => { + cy.get(`[data-testid="media-element-${toolName}"]`).should("be.visible"); + }); } launchToolInAvailableMediaLine(toolName, toolURL) { @@ -335,8 +337,9 @@ class MediaShelf { cy.wrap(launchedTool).as("launchedTool"); - const line = cy.get(MediaShelf.#availableMediaLineSpace); - line.find('[data-testid="media-element-' + toolName + '"]').click(); + cy.get(MediaShelf.#availableMediaLineSpace).within(() => { + cy.get(`[data-testid="media-element-${toolName}"]`).click(); + }); cy.get("@openStub").invoke("restore"); } @@ -355,8 +358,9 @@ class MediaShelf { cy.wrap(launchedTool).as("launchedTool"); - const line = cy.get(MediaShelf.#mediaLineSpace1); - line.find('[data-testid="media-element-' + toolName + '"]').click(); + cy.get(MediaShelf.#mediaLineSpace1).within(() => { + cy.get(`[data-testid="media-element-${toolName}"]`).click(); + }); cy.get("@openStub").invoke("restore"); } @@ -371,8 +375,9 @@ class MediaShelf { } clickToolInFirstMediaLine(toolName) { - const line = cy.get(MediaShelf.#mediaLineSpace1); - line.find('[data-testid="media-element-' + toolName + '"]').click(); + cy.get(MediaShelf.#mediaLineSpace1).within(() => { + cy.get(`[data-testid="media-element-${toolName}"]`).click(); + }); } seeNoAvailableMediaInfoText() { From 3c6ce4ae8346d492e1c0ee0e80269aa58dbdc1d5 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 24 Jan 2025 12:34:05 +0100 Subject: [PATCH 19/23] refactor step definitions --- .../addEditDeleteCtlToolInCourse.feature | 2 +- .../admin/administrateCtlToolSteps.spec.js | 68 ----------------- .../admin/ctlToolConfigurationSteps.spec.js | 76 +++++++++++++++++++ .../course/toolCourseSteps.spec.js | 48 +----------- 4 files changed, 81 insertions(+), 113 deletions(-) create mode 100644 cypress/support/step_definition/admin/ctlToolConfigurationSteps.spec.js diff --git a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature index 903c9fe1..68ba5148 100644 --- a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature +++ b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature @@ -142,7 +142,7 @@ Feature: Course - To add, edit and delete a ctl tool in a course When I click on the tools tab Then I see 5 tools When I click on three dot menu of the tool '' - When I click on the tool delete + When I click on the tool delete button Then I see the delete tool dialog When I confirm the delete tool dialog Then I do not see tool '' in the tool overview diff --git a/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js b/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js index 4dbc3f85..c1b39cae 100644 --- a/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js +++ b/cypress/support/step_definition/admin/administrateCtlToolSteps.spec.js @@ -19,66 +19,14 @@ Then("I see the external tools table is empty", () => { management.seeEmptyExternalToolTable(); }); -Then("I see the external tools configuration page", () => { - management.seeExternalToolConfigurationPage(); -}); - -Then("I see the tool configuration infotext", () => { - management.seeToolConfigurationInfoText(); -}); - -Then("I see the external tool configuration page title", () => { - management.seeExternalToolConfiguratorPageTitle(); -}); - -Then("I see tool {string} is selected", (toolName) => { - management.seeSelectedExternalTool(toolName); -}); - -Then("I see custom parameter input field {string} contains {string}", (paramName, value) => { - management.seeCustomParameterFormContains(paramName, value); -}); - Then("I do not see the tool {string} in external tools table", (toolName) => { management.toolIsNotVisibleInExternalToolTable(toolName); }); -Then("I see an error alert", () => { - management.seeToolErrorAlert(); -}); - -Then("I do not see external tool {string} in the tool selection", (toolName) => { - management.externalToolIsNotVisibleInToolSelection(toolName); -}); - -Then("I see the deactivate checkbox is checked", () => { - management.seeDeactivatedCheckBoxIsChecked() -}); - -Then("I see the deactivate checkbox is not checked", () => { - management.seeDeactivatedCheckBoxIsNotChecked() -}); - When("I click the add external tool button", () => { management.clickAddExternalTool(); }); -When("I select the tool {string} from available tools", (toolName) => { - management.addExternalTool(toolName); -}); - -When("I click on save external tool button", () => { - management.saveExternalTool(); -}); - -When("I deactivate the tool", () => { - management.deactivateTool(); -}); - -When("I activate the tool", () => { - management.activateTool(); -}); - Then("I see the tool {string} is active in tools table", (toolName) => { management.checkActivatedTool(toolName); }); @@ -111,22 +59,6 @@ When("I confirm deletion on deletion dialog", () => { management.clickOnConfirmInToolUsageDialog(); }); -When("I enter {string} in required custom parameter input field {string}", (value, paramName) => { - management.fillInCustomParameter(paramName, value); -}); - -When("I enter {string} in optional custom parameter input field {string}", (value, paramName) => { - management.fillInCustomParameter(paramName, value); -}); - -When("I insert the external tool link {string}", (toolLink) => { - management.insertToolLink(toolLink); -}); - -Then("I see configuration {string} is filled below with {string}", (key, value) =>{ - management.checkConfiguration(key, value); -}) - Then("I see the tool {string} in external tools table has no context restriction", (toolName) =>{ management.seeToolHasNoContextRestriction(toolName); }) diff --git a/cypress/support/step_definition/admin/ctlToolConfigurationSteps.spec.js b/cypress/support/step_definition/admin/ctlToolConfigurationSteps.spec.js new file mode 100644 index 00000000..4c44f0d0 --- /dev/null +++ b/cypress/support/step_definition/admin/ctlToolConfigurationSteps.spec.js @@ -0,0 +1,76 @@ +import ToolConfiguration from "../../pages/admin/pageToolConfiguration"; +const { When, Then } = require("@badeball/cypress-cucumber-preprocessor"); + +const toolConfiguration = new ToolConfiguration(); + +Then("I see the context external tool configuration page", () => { + toolConfiguration.seeContextExternalToolConfiguratorPage(); +}); + +Then("I see the school external tool configuration page", () => { + toolConfiguration.seeExternalToolConfiguratorPage(); +}); + +Then("I see the school external tool configuration infotext", () => { + toolConfiguration.seeToolConfigurationInfoText(); +}); + +When("I click on save external tool button", () => { + toolConfiguration.saveExternalToolButton(); +}); + +Then("I do not see tool {string} in the tool selection", (toolName) => { + toolConfiguration.toolIsNotVisibleInToolSelection(toolName); +}); + +When("I select the tool {string} from available tools", (toolName) => { + toolConfiguration.addExternalTool(toolName); +}); + +Then("I see tool {string} is selected", (toolName) => { + toolConfiguration.seeSelectedExternalTool(toolName); +}); + +When("I insert the external tool link {string}", (toolLink) => { + toolConfiguration.insertToolLink(toolLink); +}); + +When("I deactivate the tool", () => { + toolConfiguration.deactivateTool(); +}); + +When("I activate the tool", () => { + toolConfiguration.activateTool(); +}); + +Then("I see the deactivate checkbox is checked", () => { + toolConfiguration.seeDeactivatedCheckBoxIsChecked() +}); + +Then("I see the deactivate checkbox is not checked", () => { + toolConfiguration.seeDeactivatedCheckBoxIsNotChecked() +}); + +Then("I see an error alert", () => { + toolConfiguration.seeToolErrorAlert(); +}); + +When("I enter {string} in display name field", (toolName) => { + toolConfiguration.fillInToolDisplayName(toolName); +}); + +When("I select {string} in required protected custom parameter selection", (value) => { + toolConfiguration.selectProtectedCustomParameterOption(value); +}) + +When("I enter {string} in required custom parameter field {string}", (value, paramName) => { + toolConfiguration.fillInCustomParameter(paramName, value); +}); + +When("I enter {string} in optional custom parameter field {string}", (value, paramName) => { + toolConfiguration.fillInCustomParameter(paramName, value); +}); + +Then("I see custom parameter input field {string} contains {string}", (paramName, value) => { + toolConfiguration.seeCustomParameterFormContains(paramName, value); +}); diff --git a/cypress/support/step_definition/course/toolCourseSteps.spec.js b/cypress/support/step_definition/course/toolCourseSteps.spec.js index c2daa7bd..308546d3 100644 --- a/cypress/support/step_definition/course/toolCourseSteps.spec.js +++ b/cypress/support/step_definition/course/toolCourseSteps.spec.js @@ -19,14 +19,6 @@ When("I click on the button to add a tool", () => { courses.clickOnAddNewToolFAB(); }); -Then("I see the tool configuration page title", () => { - courses.seeContextExternalToolConfiguratorPageTitle(); -}); - -When("I click on the tool configuration selection", () => { - courses.clickOnToolConfigurationSelect(); -}); - Then("I see the tool {string} in the tool overview", (toolName) => { courses.checkIfToolIsVisibleInToolTable(toolName); }); @@ -35,14 +27,6 @@ Then("I do not see tool {string} in the tool overview", (toolName) => { courses.checkIfToolIsNotVisibleInToolTable(toolName); }); -Then("I do not see tool {string} in the tool selection", (toolName) => { - courses.schoolExternalToolIsNotVisibleInToolSelection(toolName); -}); - -Then("I see the error dialog of {string}", (toolName) => { - courses.checkIfErrorDialogIsOpen(toolName); -}); - When("I click on the tool {string}", (toolName) => { courses.clickOnTool(toolName); }); @@ -99,36 +83,12 @@ Then("I see an error dialog", () => { courses.checkIfErrorDialogIsOpen(); }); -When("I click on the tool edit button of {string}", (toolName) => { - courses.clickOnToolEditButton(toolName); -}); - -When("I click on the tool delete of {string}", (toolName) => { - courses.clickOnToolDeleteButton(toolName); -}); - -When("I fill out the required value", () => { - courses.editMissingToolParameterValue(); -}); - -When("I confirm the update", () => { - courses.clickOnConfirmButton(); -}); - -When("I select {string} in required protected custom parameter selection", (value) => { - courses.editProtectedCustomParameter(value); -}) - -When("I enter {string} in required custom parameter field {string}", (value, paramName) => { - courses.fillInCustomParameter(paramName, value); -}); - -When("I enter {string} in optional custom parameter field {string}", (value, paramName) => { - courses.fillInCustomParameter(paramName, value); +When("I click on the tool edit button", () => { + courses.clickOnToolEditButton(); }); -When("I enter {string} in display name field", (toolName) => { - courses.fillInDisplayName(toolName); +When("I click on the tool delete button", () => { + courses.clickOnToolDeleteButton(); }); When("I lauch tool {string} with given url {string}", (toolName, url) => { From 2d179b3891aca011f001a6bb46ac6a0cd52f43fd Mon Sep 17 00:00:00 2001 From: MBergCap Date: Tue, 28 Jan 2025 15:54:36 +0100 Subject: [PATCH 20/23] fix --- .../e2e/course/shareCourseWithCtlTools.feature | 2 +- .../addEditDeleteCtlToolInBoard.feature | 2 +- .../addPreferredCtlToolInBoard.feature | 3 +-- .../e2e/course_board/changeBoardLayout.feature | 17 ++++++----------- .../contextRestrictionOfCtlToolsInBoard.feature | 2 +- .../copyCourseWithCtlToolsInBoard.feature | 2 +- .../e2e/course_board/shareBoardCardLink.feature | 2 +- .../room_board/shareBoardCardLinkInRoom.feature | 2 +- 8 files changed, 13 insertions(+), 19 deletions(-) diff --git a/cypress/e2e/course/shareCourseWithCtlTools.feature b/cypress/e2e/course/shareCourseWithCtlTools.feature index 48aa673b..ae88c771 100644 --- a/cypress/e2e/course/shareCourseWithCtlTools.feature +++ b/cypress/e2e/course/shareCourseWithCtlTools.feature @@ -72,7 +72,7 @@ Feature: Teacher can share a course with ctl tools 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/course_board/addEditDeleteCtlToolInBoard.feature b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature index b37afeab..30f58de3 100644 --- a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature @@ -55,7 +55,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 diff --git a/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature index 94d51f8a..3f3c185e 100644 --- a/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature @@ -1,6 +1,5 @@ @regression_test @stable_test - Feature: Course Board - To add a preferred tool in a board As a teacher I want to add a preferred tool in my course board @@ -44,7 +43,7 @@ Feature: Course Board - To add a preferred 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 diff --git a/cypress/e2e/course_board/changeBoardLayout.feature b/cypress/e2e/course_board/changeBoardLayout.feature index d0e618d3..b312d8ba 100644 --- a/cypress/e2e/course_board/changeBoardLayout.feature +++ b/cypress/e2e/course_board/changeBoardLayout.feature @@ -1,13 +1,10 @@ -# @regression_test -# @stable_test -# Note: the test can be set to stable when the feature is on staging -@unstable +@regression_test +@stable_test Feature: Course Board - To change the board layout As a teacher I want to change the board layout - # @stable_test - @unstable + @stable_test Scenario: Teacher changes board layout Given I am logged in as a '' at '' @@ -31,7 +28,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,7 +44,7 @@ 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 @@ -56,7 +53,7 @@ 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 multi-column board in the dialog box Then I see the multi-column board @@ -78,5 +75,3 @@ Feature: Course Board - To change the board layout Examples: | teacher | namespace | course_name | fullname_teacher | | teacher1_nbc | nbc | Cypress Test Course | cypress teacher_1 | - - diff --git a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature index 6fc2e0f7..bbe93a7c 100644 --- a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature @@ -70,7 +70,7 @@ Feature: Media Shelf - Restrict CTL tools to context board-element 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/course_board/copyCourseWithCtlToolsInBoard.feature b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature index c09233f1..5447ddf8 100644 --- a/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature @@ -51,7 +51,7 @@ Feature: Course Board - Copy course with a board wich has CTL tools 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/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/shareBoardCardLinkInRoom.feature b/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature index 7bcdbfef..a74eb448 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 From 056471d8fe5827731d95d27dee7a30edaa19b791 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 29 Jan 2025 11:48:17 +0100 Subject: [PATCH 21/23] add school_api_test --- .../e2e/admin/administrateCtlTools.feature | 6 +++-- ...ntextRestrictionOfCtlToolsInCourse.feature | 6 +++-- .../course/shareCourseWithCtlTools.feature | 6 +++-- .../addEditDeleteCtlToolInBoard.feature | 7 +++--- .../addPreferredCtlToolInBoard.feature | 7 +++--- ...ontextRestrictionOfCtlToolsInBoard.feature | 7 +++--- .../course_board/shareBoardCardLink.feature | 25 ++++++------------- ...tRestrictionOfCtlToolsInMediaShelf.feature | 6 +++-- .../noAvailableToolsInMediaShelf.feature | 6 +++-- cypress/e2e/mediashelf/useMediaShelf.feature | 7 +++--- .../shareBoardCardLinkInRoom.feature | 25 ++++++------------- .../course_board/commonBoardSteps.spec.js | 8 ++++++ 12 files changed, 58 insertions(+), 58 deletions(-) diff --git a/cypress/e2e/admin/administrateCtlTools.feature b/cypress/e2e/admin/administrateCtlTools.feature index 9115cc03..d5417e03 100644 --- a/cypress/e2e/admin/administrateCtlTools.feature +++ b/cypress/e2e/admin/administrateCtlTools.feature @@ -101,5 +101,7 @@ Feature: Admin adds, edits and deletes CTL tools in school | admin | namespace | ctl_tool_hidden | ctl_tool_1 | ctl_tool_required_param | param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | | admin1_nbc | nbc | CY Test Tool Hidden | CY Test Tool 1 | CY Test Tool Required Parameters | schoolParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | - # @school_api_test - # This feature is not executable with the school_api \ No newline at end of file + @school_api_test + Examples: + | admin | namespace | ctl_tool_hidden | ctl_tool_1 | ctl_tool_required_param | param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | + | admin1_nbc | nbc | CY Test Tool Hidden | CY Test Tool 1 | CY Test Tool Required Parameters | schoolParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | diff --git a/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature index df722417..72e27dd1 100644 --- a/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature +++ b/cypress/e2e/course/contextRestrictionOfCtlToolsInCourse.feature @@ -124,5 +124,7 @@ Feature: Media Shelf - Restrict CTL tools to context course | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | - # @school_api_test - # This feature is not executable with the school_api + @school_api_test + Examples: + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | context_course | context_board_element | context_media_board | context_all | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | cypress teacher_1 | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | diff --git a/cypress/e2e/course/shareCourseWithCtlTools.feature b/cypress/e2e/course/shareCourseWithCtlTools.feature index ae88c771..00a2f285 100644 --- a/cypress/e2e/course/shareCourseWithCtlTools.feature +++ b/cypress/e2e/course/shareCourseWithCtlTools.feature @@ -184,5 +184,7 @@ Feature: Teacher can share a course with ctl tools | admin | teacher_1 | teacher_2 | namespace | fullname_teacher_1 | course_name_share | course_name_import | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | | admin1_nbc | teacher1_nbc | teacher2_nbc | nbc | Karl Herzog | Cypress Test Course Share | Cypress Test Course Import | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | - # @school_api_test - # This feature is not executable with the school_api + @school_api_test + Examples: + | admin | teacher_1 | teacher_2 | namespace | fullname_teacher_1 | course_name_share | course_name_import | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | + | admin1_nbc | teacher1_nbc | teacher2_nbc | nbc | cypress teacher_1 | Cypress Test Course Share | Cypress Test Course Import | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | diff --git a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature index 30f58de3..18cc35e4 100644 --- a/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addEditDeleteCtlToolInBoard.feature @@ -179,6 +179,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_1_new | ctl_tool_required_param | school_param_name | context_param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | ctl_tool_launch_url | | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool 1 | CY Test Tool 1 New | CY Test Tool Required Parameters | schoolParam | contextParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | https://google.com/ | - - # @school_api_test - # This feature is not executable with the school_api + @school_api_test + Examples: + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_1_new | ctl_tool_required_param | school_param_name | context_param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | ctl_tool_launch_url | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | cypress teacher_1 | CY Test Tool 1 | CY Test Tool 1 New | CY Test Tool Required Parameters | schoolParam | contextParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | https://google.com/ | diff --git a/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature index 3f3c185e..88ec3f7a 100644 --- a/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature +++ b/cypress/e2e/course_board/addPreferredCtlToolInBoard.feature @@ -92,6 +92,7 @@ Feature: Course Board - To add a preferred tool in a board | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_preferred_param | ctl_tool_preferred | param_name | param_value | | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool Preferred With Param | CY Test Tool Preferred | contextParam | test | - - # @school_api_test - # This feature is not executable with the school_api + @school_api_test + Examples: + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_preferred_param | ctl_tool_preferred | param_name | param_value | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | cypress teacher_1 | CY Test Tool Preferred With Param | CY Test Tool Preferred | contextParam | test | diff --git a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature index bbe93a7c..9b889156 100644 --- a/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/contextRestrictionOfCtlToolsInBoard.feature @@ -162,6 +162,7 @@ Feature: Media Shelf - Restrict CTL tools to context board-element | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | ctl_tool_preferred_restriction_course | ctl_tool_preferred_restriction_board_element | context_course | context_board_element | context_media_board | context_all | | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | Karl Herzog | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | CY Test Tool Preferred Course Restriction | CY Test Tool Preferred Board Restriction | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | - - # @school_api_test - # This feature is not executable with the school_api + @school_api_test + Examples: + | admin | teacher | namespace | course_name | fullname_teacher | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | ctl_tool_preferred_restriction_course | ctl_tool_preferred_restriction_board_element | context_course | context_board_element | context_media_board | context_all | + | admin1_nbc | teacher1_nbc | nbc | Cypress Test Course | cypress teacher_1 | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | CY Test Tool Preferred Course Restriction | CY Test Tool Preferred Board Restriction | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | diff --git a/cypress/e2e/course_board/shareBoardCardLink.feature b/cypress/e2e/course_board/shareBoardCardLink.feature index 6975f015..fcb0ce9a 100644 --- a/cypress/e2e/course_board/shareBoardCardLink.feature +++ b/cypress/e2e/course_board/shareBoardCardLink.feature @@ -1,13 +1,10 @@ -# @regression_test -# @stable_test -# Note: the test can be set to stable when the feature is on staging -@unstable +@regression_test +@stable_test Feature: Course Board - To share a board card link As a teacher I want to share a link to a board card. - # @stable_test - @unstable + @stable_test Scenario: Teacher shares a link to a board card Given I am logged in as a '' at '' Given I am logged in as a '' at '' @@ -64,20 +61,12 @@ Feature: Course Board - To share a board card link When I click on the button delete on the modal to confirm the course deletion Then I do not see the course '' on the course overview page - @school_api_test - Examples: - | teacher_1 | teacher_2 | namespace | fullname_teacher_1 | fullname_teacher_2 | course_name | - | teacher1_nbc | teacher2_nbc | nbc | cypress teacher_1 | cypress teacher_2 | Cypress Test Course | - @staging_test Examples: | teacher_1 | teacher_2 | namespace | fullname_teacher_1 | fullname_teacher_2 | course_name | | teacher1_nbc | teacher2_nbc | nbc | Karl Herzog | Lara Hande | Cypress Test Course | - - - - - - - + @school_api_test + Examples: + | teacher_1 | teacher_2 | namespace | fullname_teacher_1 | fullname_teacher_2 | course_name | + | teacher1_nbc | teacher2_nbc | nbc | cypress teacher_1 | cypress teacher_2 | Cypress Test Course | diff --git a/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature b/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature index 7778ee2f..565993a3 100644 --- a/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/contextRestrictionOfCtlToolsInMediaShelf.feature @@ -80,5 +80,7 @@ Feature: Media Shelf - Restrict CTL tools to context media-board | admin | teacher | namespace | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | context_course | context_board_element | context_media_board | context_all | | admin1_nbc | teacher1_nbc | nbc | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | - # @school_api_test - # This feature is not executable with the school_api + @school_api_test + Examples: + | admin | teacher | namespace | ctl_tool_1 | ctl_tool_restriction_course | ctl_tool_restriction_boad_element | ctl_tool_restriction_media_board | ctl_tool_restriction_all | context_course | context_board_element | context_media_board | context_all | + | admin1_nbc | teacher1_nbc | nbc | CY Test Tool 1 | CY Test Tool Course Restriction | CY Test Tool Board-Element Restriction | CY Test Tool Media-Board Restriction | CY Test Tool All Restrictions | Kurs-Tools | Bereiche | Medienregal | Kurs-Tools, Bereiche, Medienregal | diff --git a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature index 2e18aa35..5226cceb 100644 --- a/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/noAvailableToolsInMediaShelf.feature @@ -64,5 +64,7 @@ Feature: No available tools in media shelf | admin | teacher | namespace | ctl_tool_1 | | admin1_nbc | teacher1_nbc | nbc | CY Test Tool 1 | - # @school_api_test - # This feature is not executable with the school_api \ No newline at end of file + @school_api_test + Examples: + | admin | teacher | namespace | ctl_tool_1 | + | admin1_nbc | teacher1_nbc | nbc | CY Test Tool 1 | diff --git a/cypress/e2e/mediashelf/useMediaShelf.feature b/cypress/e2e/mediashelf/useMediaShelf.feature index 6e94a464..a392cdd8 100644 --- a/cypress/e2e/mediashelf/useMediaShelf.feature +++ b/cypress/e2e/mediashelf/useMediaShelf.feature @@ -144,6 +144,7 @@ Feature: Media Shelf - To show media shelf with respective functionality | admin | teacher | namespace | ctl_tool_hidden | ctl_tool_1 | ctl_tool_2 | color_white | color_grey | section_title | section_title_updated | ctl_tool_launch_url | | admin1_nbc | teacher1_nbc | nbc | CY Test Tool Hidden | CY Test Tool 1 | CY Test Tool 2 | rgb(255, 255, 255) | rgb(251, 233, 231) | Test Abschnitt | Favoriten | https://google.com/ | - - # @school_api_test - # This feature is not executable with the school_api + @school_api_test + Examples: + | admin | teacher | namespace | ctl_tool_hidden | ctl_tool_1 | ctl_tool_2 | color_white | color_grey | section_title | section_title_updated | ctl_tool_launch_url | + | admin1_nbc | teacher1_nbc | nbc | CY Test Tool Hidden | CY Test Tool 1 | CY Test Tool 2 | rgb(255, 255, 255) | rgb(251, 233, 231) | Test Abschnitt | Favoriten | https://google.com/ | diff --git a/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature b/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature index a74eb448..0638a8b6 100644 --- a/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature +++ b/cypress/e2e/room_board/shareBoardCardLinkInRoom.feature @@ -1,13 +1,10 @@ -# @regression_test -# @stable_test -# Note: the test can be set to stable when the feature is on staging -@unstable +@regression_test +@stable_test Feature: Room Board - To share a board card link As a teacher I want to share a link to a board card. - # @stable_test - @unstable + @stable_test Scenario: Teacher shares a link to a board card Given I am logged in as a '' at '' Given I am logged in as a '' at '' @@ -69,20 +66,12 @@ Feature: Room Board - To share a board card link When I click on delete button in confirmation modal Then I do not see '' on room overview page - @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 | - @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 | - - - - - - - + @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 | diff --git a/cypress/support/step_definition/course_board/commonBoardSteps.spec.js b/cypress/support/step_definition/course_board/commonBoardSteps.spec.js index d98a5e43..1e7622f0 100644 --- a/cypress/support/step_definition/course_board/commonBoardSteps.spec.js +++ b/cypress/support/step_definition/course_board/commonBoardSteps.spec.js @@ -98,3 +98,11 @@ When("I click on the page outside of the card", () => { Then("I see the focused board card", () => { board.seeFocusedBoardCard(); }); + +When("I select external tools from the menu", () => { + board.selectExternalToolsFromMenu(); +}); + +When("I select preferred tool {string} from the menu", (toolName) => { + board.selectPreferredExternalToolFromMenu(toolName); +}); From 2b4fd908e5a2904a86c3ac74d71c60d9f4ccdfbd Mon Sep 17 00:00:00 2001 From: MBergCap Date: Wed, 29 Jan 2025 12:00:40 +0100 Subject: [PATCH 22/23] move steps definitions --- ...eps.spec.js => ctlToolCourseSteps.spec.js} | 0 .../course_board/commonBoardSteps.spec.js | 8 -- .../course_board/courseBoardSteps.spec.js | 84 ---------------- .../course_board/ctlToolBoardSteps.spec.js | 96 +++++++++++++++++++ 4 files changed, 96 insertions(+), 92 deletions(-) rename cypress/support/step_definition/course/{toolCourseSteps.spec.js => ctlToolCourseSteps.spec.js} (100%) create mode 100644 cypress/support/step_definition/course_board/ctlToolBoardSteps.spec.js diff --git a/cypress/support/step_definition/course/toolCourseSteps.spec.js b/cypress/support/step_definition/course/ctlToolCourseSteps.spec.js similarity index 100% rename from cypress/support/step_definition/course/toolCourseSteps.spec.js rename to cypress/support/step_definition/course/ctlToolCourseSteps.spec.js diff --git a/cypress/support/step_definition/course_board/commonBoardSteps.spec.js b/cypress/support/step_definition/course_board/commonBoardSteps.spec.js index 1e7622f0..d98a5e43 100644 --- a/cypress/support/step_definition/course_board/commonBoardSteps.spec.js +++ b/cypress/support/step_definition/course_board/commonBoardSteps.spec.js @@ -98,11 +98,3 @@ When("I click on the page outside of the card", () => { Then("I see the focused board card", () => { board.seeFocusedBoardCard(); }); - -When("I select external tools from the menu", () => { - board.selectExternalToolsFromMenu(); -}); - -When("I select preferred tool {string} from the menu", (toolName) => { - board.selectPreferredExternalToolFromMenu(toolName); -}); diff --git a/cypress/support/step_definition/course_board/courseBoardSteps.spec.js b/cypress/support/step_definition/course_board/courseBoardSteps.spec.js index 37d28970..4e86cd75 100644 --- a/cypress/support/step_definition/course_board/courseBoardSteps.spec.js +++ b/cypress/support/step_definition/course_board/courseBoardSteps.spec.js @@ -103,90 +103,6 @@ When("I see the multi-column board", () => { board.seeMultiColumnBoard(); }); -Then("I see an external tool element with tool {string}", (toolName) => { - board.seeExternalToolElementWithTool(toolName); -}); - -When("I click on three dot menu of external tool element {string}", (toolName) => { - board.clickThreeDotMenuOnExternalToolElementWithTool(toolName); -}); - -When("I select external tools from the element selection dialog box", () => { - board.selectExternalToolsFromMenu(); -}); - -Then("I see preferred tool {string} in the menu", (toolName) => { - board.seePreferredExternalToolInMenu(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); -}); - -Then( - "I see external tool element with tool {string} is not marked as incomplete", - (toolName) => { - board.seeToolIsNotMarkedAsIncomplete(toolName); - } -); - -Then( - "I see external tool element with tool {string} is not marked as incomplete operational", - (toolName) => { - board.seeToolIsNotMarkedAsIncompleteOperational(toolName); - } -); - -Then( - "I see external tool element with tool {string} is marked as incomplete", - (toolName) => { - board.seeToolIsMarkedAsIncomplete(toolName); - } -); - -Then( - "I see external tool element with tool {string} is marked as incomplete operational", - (toolName) => { - board.seeToolIsMarkedAsIncompleteOperational(toolName); - } -); - -When("I click on external tool element with tool {string}", (toolName) => { - board.clickExternalToolElementWithTool(toolName); -}); - -Then( - "I see an external tool element with tool {string} is marked as deactivated", - (toolName) => { - board.seeToolIsMarkedAsDeactivated(toolName); - } -); - -Then( - "I see an external tool element with tool {string} is not marked as deactivated", - (toolName) => { - board.seeToolIsNotMarkedAsDeactivated(toolName); - } -); - -When( - "I launch tool {string} on external tool element with given url {string}", - (toolName, url) => { - board.launchTool(toolName, url); - } -); - -Then("I see tool {string} on external tool element was launched", (toolName) => { - board.toolWasLaunched(toolName); -}); - When("I click on three dot menu on the deleted element", () => { board.clickOnThreeDotOnDeletedElement(); }); diff --git a/cypress/support/step_definition/course_board/ctlToolBoardSteps.spec.js b/cypress/support/step_definition/course_board/ctlToolBoardSteps.spec.js new file mode 100644 index 00000000..81dc8cbc --- /dev/null +++ b/cypress/support/step_definition/course_board/ctlToolBoardSteps.spec.js @@ -0,0 +1,96 @@ +const { When, Then } = require("@badeball/cypress-cucumber-preprocessor"); +import Board from "../../pages/course_board/pageBoard"; + +const board = new Board(); + +Then("I see an external tool element with tool {string}", (toolName) => { + board.seeExternalToolElementWithTool(toolName); +}); + +When("I click on three dot menu of external tool element {string}", (toolName) => { + board.clickThreeDotMenuOnExternalToolElementWithTool(toolName); +}); + +When("I select external tools from the element selection dialog box", () => { + board.selectExternalToolsFromMenu(); +}); + +Then("I see preferred tool {string} in the menu", (toolName) => { + board.seePreferredExternalToolInMenu(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); +}); + +Then( + "I see external tool element with tool {string} is not marked as incomplete", + (toolName) => { + board.seeToolIsNotMarkedAsIncomplete(toolName); + } +); + +Then( + "I see external tool element with tool {string} is not marked as incomplete operational", + (toolName) => { + board.seeToolIsNotMarkedAsIncompleteOperational(toolName); + } +); + +Then( + "I see external tool element with tool {string} is marked as incomplete", + (toolName) => { + board.seeToolIsMarkedAsIncomplete(toolName); + } +); + +Then( + "I see external tool element with tool {string} is marked as incomplete operational", + (toolName) => { + board.seeToolIsMarkedAsIncompleteOperational(toolName); + } +); + +When("I click on external tool element with tool {string}", (toolName) => { + board.clickExternalToolElementWithTool(toolName); +}); + +Then( + "I see an external tool element with tool {string} is marked as deactivated", + (toolName) => { + board.seeToolIsMarkedAsDeactivated(toolName); + } +); + +Then( + "I see an external tool element with tool {string} is not marked as deactivated", + (toolName) => { + board.seeToolIsNotMarkedAsDeactivated(toolName); + } +); + +When( + "I launch tool {string} on external tool element with given url {string}", + (toolName, url) => { + board.launchTool(toolName, url); + } +); + +Then("I see tool {string} on external tool element was launched", (toolName) => { + board.toolWasLaunched(toolName); +}); + +When("I select external tools from the menu", () => { + board.selectExternalToolsFromMenu(); +}); + +When("I select preferred tool {string} from the menu", (toolName) => { + board.selectPreferredExternalToolFromMenu(toolName); +}); From 51762501032e1f257f3022a1600b212c73735a20 Mon Sep 17 00:00:00 2001 From: MBergCap Date: Fri, 31 Jan 2025 11:59:13 +0100 Subject: [PATCH 23/23] add school_api_test examples --- cypress/e2e/course/addEditDeleteCtlToolInCourse.feature | 6 ++++-- cypress/e2e/course/copyCourseWithCtlTools.feature | 6 ++++-- cypress/e2e/course/deactivationOfCtlToolsInCourse.feature | 6 ++++-- .../e2e/course_board/copyCourseWithCtlToolsInBoard.feature | 6 ++++-- .../e2e/course_board/deactivationOfCtlToolsInBoard.feature | 5 ++++- .../mediashelf/deactivationOfCtlToolsInMediaShelf.feature | 6 ++++-- 6 files changed, 24 insertions(+), 11 deletions(-) diff --git a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature index 68ba5148..c4678e91 100644 --- a/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature +++ b/cypress/e2e/course/addEditDeleteCtlToolInCourse.feature @@ -181,6 +181,8 @@ Feature: Course - To add, edit and delete a ctl tool in a course | admin | teacher | student | namespace | course_name | fullname_teacher | fullname_student | ctl_tool_1 | ctl_tool_1_new | ctl_tool_required_param | school_param_name | context_param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | ctl_tool_launch_url | | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Karl Herzog | Herbert Kraft | CY Test Tool 1 | CY Test Tool 1 New | CY Test Tool Required Parameters | schoolParam | contextParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | https://google.com/ | - + # Note: uncomment this once the bug with student login has been fixed # @school_api_test - # This feature is not executable with the school_api + # Examples: + # | admin | teacher | student | namespace | course_name | fullname_teacher | fullname_student | ctl_tool_1 | ctl_tool_1_new | ctl_tool_required_param | school_param_name | context_param_name | param_value | param_value_updated | ctl_tool_optional_param | ctl_tool_openstreetmap | ctl_tool_link | ctl_tool_launch_url | + # | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | cypress teacher_1 | cypress student_1 | CY Test Tool 1 | CY Test Tool 1 New | CY Test Tool Required Parameters | schoolParam | contextParam | test | updated test | CY Test Tool Optional Parameters | CY Test Tool OpenStreetMap | https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823 | https://google.com/ | diff --git a/cypress/e2e/course/copyCourseWithCtlTools.feature b/cypress/e2e/course/copyCourseWithCtlTools.feature index e1fd6108..677aa9c8 100644 --- a/cypress/e2e/course/copyCourseWithCtlTools.feature +++ b/cypress/e2e/course/copyCourseWithCtlTools.feature @@ -181,6 +181,8 @@ Feature: Course - Copy course with CTL tools | admin | teacher | student | namespace | course_name | course_name_copy | fullname_teacher | name_student | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | ctl_tool_launch_url | | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Cypress Test Course (1) | Karl Herzog | Kraft | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | https://google.com/ | - + # Note: uncomment this once the bug with student login has been fixed # @school_api_test - # This feature is not executable with the school_api + # Examples: + # | admin | teacher | student | namespace | course_name | course_name_copy | fullname_teacher | name_student | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | ctl_tool_launch_url | + # | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Cypress Test Course (1) | cypress teacher_1 | student_1 | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | https://google.com/ | diff --git a/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature index 76c3f93e..1314f5a4 100644 --- a/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature +++ b/cypress/e2e/course/deactivationOfCtlToolsInCourse.feature @@ -187,6 +187,8 @@ Feature: Deactivation of ctl tools in course | admin | teacher | student | namespace | fullname_teacher | fullname_student | course_name | ctl_tool_1 | ctl_tool_2 | | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | Cypress Test Course | CY Test Tool 1 | CY Test Tool 2 | - + # Note: uncomment this once the bug with student login has been fixed # @school_api_test - # This feature is not executable with the school_api \ No newline at end of file + # Examples: + # | admin | teacher | student | namespace | fullname_teacher | fullname_student | course_name | ctl_tool_1 | ctl_tool_2 | + # | admin1_nbc | teacher1_nbc | student1_nbc | nbc | cypress teacher_1 | cypress student_1 | Cypress Test Course | CY Test Tool 1 | CY Test Tool 2 | diff --git a/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature index 5447ddf8..6c31be59 100644 --- a/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/copyCourseWithCtlToolsInBoard.feature @@ -203,6 +203,8 @@ Feature: Course Board - Copy course with a board wich has CTL tools | admin | teacher | student | namespace | course_name | course_name_copy | fullname_teacher | name_student | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | ctl_tool_launch_url | | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Cypress Test Course (1) | Karl Herzog | Kraft | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | https://google.com/ | - + # Note: uncomment this once the bug with student login has been fixed # @school_api_test - # This feature is not executable with the school_api \ No newline at end of file + # Examples: + # | admin | teacher | student | namespace | course_name | course_name_copy | fullname_teacher | name_student | ctl_tool_scope_context | ctl_tool_optional_protected_param | ctl_tool_protected_param | param_search_1_name | param_search_2_name | param_search_value | param_protected_name | param_protected_value | param_required_protected_value | ctl_tool_launch_url | + # | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Cypress Test Course | Cypress Test Course (1) | cypress teacher_1 | student_1 | CY Test Tool Context Scope | CY Test Tool Optional Protected Parameter | CY Test Tool Protected Parameter | searchparam | search | test | protected | protected | Ja | https://google.com/ | diff --git a/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature index 70cf4e90..c0493bd2 100644 --- a/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature +++ b/cypress/e2e/course_board/deactivationOfCtlToolsInBoard.feature @@ -198,5 +198,8 @@ Feature: Deactivation of ctl tools in board | admin | teacher | student | namespace | fullname_teacher | fullname_student | course_name | ctl_tool_1 | ctl_tool_2 | | admin1_nbc | teacher1_nbc | student1_nbc | nbc | Karl Herzog | Herbert Kraft | Cypress Test Course | CY Test Tool 1 | CY Test Tool 2 | + # Note: uncomment this once the bug with student login has been fixed # @school_api_test - # This feature is not executable with the school_api + # Examples: + # | admin | teacher | student | namespace | fullname_teacher | fullname_student | course_name | ctl_tool_1 | ctl_tool_2 | + # | admin1_nbc | teacher1_nbc | student1_nbc | nbc | cypress teacher_1 | cypress student_1 | Cypress Test Course | CY Test Tool 1 | CY Test Tool 2 | diff --git a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature index df86e08c..81ccb14e 100644 --- a/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature +++ b/cypress/e2e/mediashelf/deactivationOfCtlToolsInMediaShelf.feature @@ -125,6 +125,8 @@ Feature: Deactivation of ctl tools in media shelf | admin | teacher | student | namespace | ctl_tool_1 | ctl_tool_2 | | admin1_nbc | teacher1_nbc | student1_nbc | nbc | CY Test Tool 1 | CY Test Tool 2 | + # Note: uncomment this once the bug with student login has been fixed # @school_api_test - # This feature is not executable with the school_api - + # Examples: + # | admin | teacher | student | namespace | ctl_tool_1 | ctl_tool_2 | + # | admin1_nbc | teacher1_nbc | student1_nbc | nbc | CY Test Tool 1 | CY Test Tool 2 |