Skip to content

Commit

Permalink
Refactor board deletion confirmation steps and update visibility asse…
Browse files Browse the repository at this point in the history
…rtions in room feature tests
  • Loading branch information
wolfganggreschus committed Dec 11, 2024
1 parent 062e700 commit 0dd7916
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions cypress/e2e/room/createEditDeleteBoardInRoom.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Feature: Room - Add, edit and delete board in room
Then I enter the course board title '<edited_board_title>'
When I click on the page outside of the title of the board
Then I see my room board is named '<edited_board_title>'
# TODO test if renaming worked

# cancel delete-process
When I click on the button three dot menu in room board
Expand All @@ -38,12 +37,19 @@ Feature: Room - Add, edit and delete board in room
When I click on the button to cancel the deletion
Then I see the page room board details
Then I see the board '<edited_board_title>' on the room overview page

# confirm delete-process
When I click on the button three dot menu in room board
When I click on delete in board menu
Then I see the button to cancel the dialog
Then I click on the button to confirm the deletion
Then I do not see the board '<edited_board_title>' on the room overview page
Then I do not see the board '<edited_board_title>' in the room

# post-condition: delete room
When I click on three dot menu in room page
When I click on delete option in room menu
Then I see confirmation modal for deleting the room
When I click on delete button in confirmation modal



Expand Down
2 changes: 1 addition & 1 deletion cypress/support/step_definition/room/roomSteps.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Then("I see the button to confirm the dialog", () => {
When("I click on the button to confirm the deletion", () => {
rooms.clickBtnDialogConfirmDelete();
});
Then("I do not see the board {string} on the room overview page", (boardTitle) => {
Then("I do not see the board {string} in the room", (boardTitle) => {
rooms.boardIsNotVisibleOnOverviewPage(boardTitle);
});

0 comments on commit 0dd7916

Please sign in to comment.