Skip to content

Commit

Permalink
Merge pull request #284 from hpi-schul-cloud/bc-8745
Browse files Browse the repository at this point in the history
BC-8745 add video conference in room board
  • Loading branch information
atlldwp authored Jan 28, 2025
2 parents c4704cc + 58419ca commit 23fc829
Show file tree
Hide file tree
Showing 27 changed files with 1,071 additions and 793 deletions.
358 changes: 179 additions & 179 deletions cypress/e2e/course/contextRestrictionOfCtlTools.feature

Large diffs are not rendered by default.

512 changes: 256 additions & 256 deletions cypress/e2e/course/copyCtlTools.feature

Large diffs are not rendered by default.

480 changes: 240 additions & 240 deletions cypress/e2e/course/deactivationOfCtlTools.feature

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions cypress/e2e/course/shareCtlTools.feature
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Feature: Teacher can share a course
When I click on the button FAB New Column Board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose multi-column board in the dialog box
Then I see the page Course Board details
Then I see the chip Draft in the course board
Expand All @@ -79,7 +79,7 @@ Feature: Teacher can share a course
# Pre-condition: teacher adds a tool with required parameter
When I click on plus icon to add card in column
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I select the tool 'CY Test Tool Context Scope' from available tools
When I enter 'test' in required custom parameter field 'searchparam'
Expand All @@ -89,7 +89,7 @@ Feature: Teacher can share a course
When I click on three dot menu in the card
When I select the option Edit in three dot menu on the card
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I select the tool 'CY Test Tool Optional Protected Parameter' from available tools
When I enter 'test' in required custom parameter field 'search'
Expand All @@ -100,7 +100,7 @@ Feature: Teacher can share a course
When I click on three dot menu in the card
When I select the option Edit in three dot menu on the card
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I select the tool 'CY Test Tool Protected Parameter' from available tools
When I enter 'test' in required custom parameter field 'search'
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/course_board/changeBoardLayout.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Feature: Course Board - To change the board layout
When I click on the button FAB New Column Board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose multi-column board in the dialog box
Then I see the page Course Board details
When I click on the button Add column in the course board
Expand All @@ -47,16 +47,16 @@ Feature: Course Board - To change the board layout
When I click on the option Change layout in three dot menu in course board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose single-column board in the dialog box
Then I see the single-column board

# teacher changes board layout to multi column
# teacher changes board layout to multi-column
When I click on three dot menu in the board header
When I click on the option Change layout in three dot menu in course board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose multi-column board in the dialog box
Then I see the multi-column board

Expand Down
16 changes: 8 additions & 8 deletions cypress/e2e/course_board/createEditDeleteCtlToolInBoard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board
When I click on the button FAB New Column Board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose multi-column board in the dialog box
Then I see the page Course Board details
Then I see the chip Draft in the course board
Expand All @@ -72,7 +72,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board
# Teacher adds a tool without a custom parameter
When I click on plus icon to add card in column
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I select the tool 'CY Test Tool 1' from available tools
Then I see tool 'CY Test Tool 1' is selected
Expand All @@ -86,7 +86,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board
When I click on three dot menu in the card
When I select the option Edit in three dot menu on the card
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I select the tool 'CY Test Tool 1' from available tools
Then I see tool 'CY Test Tool 1' is selected
Expand All @@ -98,7 +98,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board
When I click on three dot menu in the card
When I select the option Edit in three dot menu on the card
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I insert the external tool link 'https://www.openstreetmap.org/?mlat=52.40847&mlon=9.80823&zoom=19#map=19/52.40847/9.80823'
Then I see tool 'OpenStreetMap' is selected
Expand All @@ -112,7 +112,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board
When I click on three dot menu in the card
When I select the option Edit in three dot menu on the card
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I select the tool 'CY Test Tool Required Parameters' from available tools
Then I see tool 'CY Test Tool Required Parameters' is selected
Expand All @@ -128,7 +128,7 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board
When I click on three dot menu in the card
When I select the option Edit in three dot menu on the card
When I click on plus icon to add content into card
When I select external tools from the menu
When I select external tools from the element selection dialog box
When I click on the tool configuration selection
When I select the tool 'CY Test Tool Optional Parameters' from available tools
Then I see tool 'CY Test Tool Optional Parameters' is selected
Expand Down Expand Up @@ -166,11 +166,11 @@ Feature: Course Board - To add, edit and delete a ctl tool in a board
When I select the option Edit in three dot menu on the card
When I click on plus icon to add content into card
Then I see preferred tool 'CY Test Tool Preferred' in the menu
When I select preferred tool 'CY Test Tool Preferred' from the menu
When I select preferred tool 'CY Test Tool Preferred' from the element selection dialog box
Then I see an external tool element with tool 'CY Test Tool Preferred'
When I click on plus icon to add content into card
Then I see preferred tool 'CY Test Tool Preferred With Param' in the menu
When I select preferred tool 'CY Test Tool Preferred With Param' from the menu
When I select preferred tool 'CY Test Tool Preferred With Param' from the element selection dialog box
Then I see tool 'CY Test Tool Preferred With Param' is selected
When I enter 'test' in required custom parameter field 'contextParam'
Then I see custom parameter input field 'contextParam' contains 'test'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Feature: Course Board - To create, edit and delete column in the course board
When I click on the button FAB New Column Board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose multi-column board in the dialog box
Then I see the page Course Board details
When I click on the button three dot menu in course board
Expand Down
22 changes: 11 additions & 11 deletions cypress/e2e/course_board/createEditDeleteSingleColumnBoard.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@regression_test
@stable_test
Feature: Course Board - To create, edit and delete a single column course board
Feature: Course Board - To create, edit and delete a single-column course board

As a teacher I want to create, edit and delete a single column course board so that I can use this option.
As a teacher I want to create, edit and delete a single-column course board so that I can use this option.

Scenario Outline: user creation, course creation, and creating single column board, adding a card with text and whiteboard, deleting the single column board in the course
Scenario Outline: user creation, course creation, and creating single-column board, adding a card with text and whiteboard, deleting the single-column board in the course

# pre-condition: teacher and admin log in to create their account in a same school
Given I am logged in as a '<teacher>' at '<namespace>'
Expand All @@ -24,7 +24,7 @@ Feature: Course Board - To create, edit and delete a single column course board
# Note: this step is not applicable for the admin user
#Then I see the course 'CypressAut Test Creation and Deletion' on the course overview page

# teacher adds a new single column Board
# teacher adds a new single-column Board
Given I am logged in as a '<teacher>' at '<namespace>'
When I go to courses overview
When I go to course '<course_name>'
Expand All @@ -33,7 +33,7 @@ Feature: Course Board - To create, edit and delete a single column course board
When I click on the button FAB New Column Board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose single-column board in the dialog box
Then I see the page Course Board details
When I click on the button three dot menu in course board
Expand All @@ -43,7 +43,7 @@ Feature: Course Board - To create, edit and delete a single column course board
# Then I see the course Board name '<board_title>'
Then I see the chip Draft in the course board

# student does not see the single column board
# student does not see the single-column board
Given I am logged in as a '<student>' at '<namespace>'
When I go to courses overview
When I go to course '<course_name>'
Expand All @@ -66,27 +66,27 @@ Feature: Course Board - To create, edit and delete a single column course board
Then I click on the button with the Icon Plus to add a new card in the column
When I enter '<card_text_content>' to board card text element
When I click on plus icon to add content into card
When I select whiteboard from the menu
When I select 'drawing-element' from the element selection dialog box
Then I see a whiteboard on the board
Then I see '<card_text_content>' in board card text element

# teacher edits the column in the single column board
# teacher edits the column in the single-column board
When I click on three dot menu in the column
When I select the three dot menu action 'rename'
Then I enter the title name '<edited_column_board_title>' in the column
When I click on the page outside of the column
Then I see my column named '<edited_column_board_title>'

# student sees the single column board
# student sees the single-column board
Given I am logged in as a '<student>' at '<namespace>'
When I go to courses overview
When I go to course '<course_name>'
Then I can see board on course page
Then I can see board '<board_title>' on course page
When I click on card Course Board
Then I see a whiteboard on the board
Then I see '<card_text_content>' in board card text element

# # teacher deletes the column in the single column board
# # teacher deletes the column in the single-column board
Given I am logged in as a '<teacher>' at '<namespace>'
When I go to courses overview
When I go to course '<course_name>'
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/course_board/openDrawingElementOnBoard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Feature: Course Board - Opening a drawing element on a course page
When I click on the button FAB New Column Board
Then I see a dialog box for column board
Then I see in dialog box option for multi-column board
Then I see in dialog box option for single column board
Then I see in dialog box option for single-column board
When I choose multi-column board in the dialog box
Then I see the page Course Board details
When I click on the button three dot menu in course board
Expand All @@ -51,7 +51,7 @@ Feature: Course Board - Opening a drawing element on a course page
When I click on the page outside of the column
When I click on plus icon to add card in column
When I click on plus icon to add content into card
Then I select whiteboard from the menu
Then I select 'drawing-element' from the element selection dialog box

# teacher is able to open a drawing element to the course board
Given I am logged in as a '<teacher>' at '<namespace>'
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/course_board/shareBoardCardLink.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
65 changes: 65 additions & 0 deletions cypress/e2e/room_board/addDeleteBBBToolInRoomBoard.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
@regression_test
@stable_test
Feature: Room - Add BBB Tool in the Room Board

As a teacher, I want to add a BBB (BigBlueButton) Tool to the room board so that I can manage video conferencing effectively.

Scenario: Add BBB Tool to the Room Board, including pre & post conditions

# pre-condition: creating accounts
Given I am logged in as a '<teacher>' at '<namespace>'
Given I am logged in as a '<admin>' at '<namespace>'

# pre-condition: admin enable the video conference in school settings page
Given admin enables video conference for the school in the school settings page

# pre-condition: room and boards are existing
Given I am logged in as a '<teacher>' at '<namespace>'
Given a room named '<room_name>' exists
Given a multi-column board named '<board_title>' exists in the room
Given the multi-column board has a column with a card

# teacher adds BBB Tool to the multi-column board
When I click on the three dot on the card
When I click on the option edit in the three dot menu on the card
When I click on plus icon to add content into card
Then I see the dialog box to select element for the card
When I click on the button Close on the element selection dialogue box
Then I do not see the element selection dialogue box
When I click on plus icon to add content into card
Then I see the dialog box to select element for the card
When I select 'video-conference' from the element selection dialog box
When I enter the video conference title '<video_conference_title>'
When I click on the save button or press the button enter key
Then I see the video conference element added in the card
When I click on the video conference element in the card
Then I see the modal to start the video conference
Then I see the moderator approval checkbox is checked in the video conference start modal
Then I see the button create in the video conference creation modal to start the call
Then I click on the button cancel in the video conference creation modal to go back to the card

# student can see the video confernce in the multi-column board
# note: this scenario can not be defined as adding the student to the room feature is not yet implementred.

# teacher deletes the BBB Tool from the multi-column board card
When I click on the three dot on the card
When I click on the option edit in the three dot menu on the card
When I click on the three-dot menu in the video conference element
When I click on the delete option in the three-dot menu
Then I see the delete confirmation dialog
When I click on the delete button in the confirmation dialog
Then I do not see the video conference element

# post-condition: delete the room
Given I navigate to the room detail page from the board page
Given the room named '<room_name>' is deleted

@school_api_test
Examples:
| teacher | admin | namespace | room_name | board_title | video_conference_title |
| teacher1_dbc | admin1_dbc | dbc | Cypress Room Name | Board Cy Title | Cy BBB Tool |

@staging_test
Examples:
| teacher | admin | namespace | room_name | board_title | video_conference_title |
| teacher1_dbc | admin1_dbc | dbc | Cypress Room Name | Board Cy Title | Cy BBB Tool |
Loading

0 comments on commit 23fc829

Please sign in to comment.