Skip to content

Commit

Permalink
tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
atlldwp committed Feb 3, 2025
1 parent 68cca26 commit 87a5834
Show file tree
Hide file tree
Showing 9 changed files with 325 additions and 62 deletions.
60 changes: 30 additions & 30 deletions cypress/e2e/account/selfEditAccountSettings.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@
@stable_test
Feature: Account - Edit E-mail in the account setting page

As a user I want to navigation to my account's settings page so that I can see and edit my account details (e. g. email).

Scenario: I see my E-mail is editable as an internal user, including pre conditions
Given I am logged in as a '<user>' at '<namespace>'

# user changes/updates the E-mail
When I go to my account settings
Then I see my email is editable
When I change my email to a new email
When I enter my current password
When I click on the button Save Account Settings
Then I see the message successful

# user can login with the changed E-mail
When I visit the login page
When I enter my updated email
When I enter my current password on the login page
When I click on the button Login
Then I see the dashboard

# @staging_test
# Please do not execute this feature against STAGING environment, because after changing the E-mail user can not revert the old E-mail again.
# The system does not allow reverting to an old or existing E-mail.

@school_api_test
Examples:
| user | namespace |
| student1_dbc | dbc |
| teacher1_dbc | dbc |
| admin1_dbc | dbc |
As a user I want to navigation to my account's settings page so that I can see and edit my account details (e. g. email).

Scenario: I see my E-mail is editable as an internal user, including pre conditions
Given I am logged in as a '<user>' at '<namespace>'

# user changes/updates the E-mail
When I go to my account settings
Then I see my email is editable
When I change my email to a new email
When I enter my current password
When I click on the button Save Account Settings
Then I see the message successful

# user can login with the changed E-mail
When I visit the login page
When I enter my updated email
When I enter my current password on the login page
When I click on the button Login
Then I see the dashboard

# @staging_test
# Please do not execute this feature against STAGING environment, because after changing the E-mail user can not revert the old E-mail again.
# The system does not allow reverting to an old or existing E-mail.

@school_api_test
Examples:
| user | namespace |
| student1_brb | brb |
| teacher1_brb | brb |
| admin1_brb | brb |

# E-mail is not editable by an external student user
# Note: this scenario is currently unstable
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/admin/adminRegistersStudentWithLink.feature
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ Feature: Admin - Student registration with registration link send by admin
@school_api_test
Examples:
| namespace | admin | role_to_manage | user_firstname | user_lastname | user_email |
| dbc | admin1_dbc | student | cypress | student_admintest | original_student_adminusers@cypress-mail.de |
| brb | admin1_brb | student | cypress | student_admintest | original_student_adminusers@cypress-mail.de |

2 changes: 1 addition & 1 deletion cypress/e2e/admin/adminRegistersTeacherWithLink.feature
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ Feature: Admin - Teacher registration with registration link send by admin
@school_api_test
Examples:
| namespace | admin | role_to_manage | user_firstname | user_lastname | user_email |
| dbc | admin1_dbc | teacher | cypress | teacher_admintest | original_teacher_adminusers@cypress-mail.de |
| brb | admin1_brb | teacher | cypress | teacher_admintest | original_teacher_adminusers@cypress-mail.de |
2 changes: 1 addition & 1 deletion cypress/e2e/admin/forcePasswordChangeTeacher.feature
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ Feature: Admin - user must set a new password during login
@school_api_test
Examples:
| namespace | admin | role_to_manage | user_firstname | user_lastname | user_email |
| dbc | admin1_dbc | teacher | cypress | teacher_admintest | original_teacher_adminusers@cypress-mail.de |
| brb | admin1_brb | teacher | cypress | teacher_admintest | original_teacher_adminusers@cypress-mail.de |

Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,27 @@ Feature: Rooms - Share Multi-Column Boards Across Different Schools
Scenario: share a Multi-Column Board with a Teacher from a Different School

# pre-condition: Creating teacher accounts
Given I am logged in as a '<teacher1>' at '<namespace>'
Given I am logged in as a '<teacher1>' at '<namespace>' schule 1

# pre-condition: Room and multi-column board exist
Given a room named '<room_name>' exists
Given a multi-column board named '<board_title>' exists in the room
Given board copy url is copied

Scenario: second teacher from a different school imports the board via copied URL
#@school_api_test
# Examples:
# | teacher1 | teacher2 | namespace | room_name | board_title |
#| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |

@staging_test
Examples:
| teacher1 | teacher2 | namespace | room_name | board_title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |

#Scenario: second teacher from a different school imports the board via copied URL

# pre-condition: Creating teacher accounts
Given I am logged in as a '<teacher2>' at '<namespace>'
Given I am logged in as a '<teacher2>' at '<namespace>' schule 2

#pre-condition: Room exists
Given a room named '<room_name>' exists
Expand All @@ -27,21 +38,22 @@ Feature: Rooms - Share Multi-Column Boards Across Different Schools
When I select the room from the room list in the modal
When I click on the Continue button in the modal
When I enter a new name for the imported board in the modal
When I click on the Import button in the modal
When I click on the button Import in the modal
Then I see the shared board tile as a draft on the room details page

# Post-condition: Rooms created by both teachers are deleted
Given I am logged in as a '<teacher1>' at '<namespace>'
Given the room named '<room_name>' is deleted
Given the room named '<room_name_souce>' is deleted
Given I am logged in as a '<teacher2>' at '<different_namespace>'
Given the room named '<room_name>' is deleted
Given the room named '<room_name_target>' is deleted

@school_api_test
Examples:
| teacher1 | teacher2 | namespace | room_name | board_title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |

#@school_api_test
#Examples:
#| teacher1 | teacher2 | namespace | room_name | board_title |
#| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |

@staging_test
Examples:
| teacher1 | teacher2 | namespace | room_name | board_title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ Feature: Rooms - Share Multi-Column Boards in the Rooms
Scenario: Share a Multi-Column Board with a Teacher within the Same School

# pre-condition: Creating teacher accounts
Given I am logged in as a '<teacher1>' at '<namespace>'
Given I am logged in as a '<teacher2>' at '<namespace>'
Given I am logged in as a '<teacher1>' at '<namespace>'

# pre-condition: Room and multi-column board exist
Given a room named '<room_name>' exists
Given a room named '<room_name_source>' exists
Given a multi-column board named '<board_title>' exists in the room

# first teacher shares the multi-column board with another teacher in the same school via copied URL
Then I see the board details page
When I click on the three-dot menu in the room board
When I select the three-dot menu action 'share'
Then I see the page board details
When I click on the three dot menu in room board
When I select the three dot menu action 'share'
Then I see the Share settings dialog
Then I see the checkbox Link valid for the same school is checked
Then I see the checkbox Link valid for 21 days is checked
Expand All @@ -27,34 +27,34 @@ Feature: Rooms - Share Multi-Column Boards in the Rooms
Then I see the option Copy link
Then I see the option Scan QR Code
Then I copy the board URL
Then I click on the Close button in the modal
#Then I see the alrert success message

# pre-condition: Second teacher is logged into the application and a room exists
Given I am logged in as a '<teacher2>' at '<namespace>'
Given a room named '<room_name>' exists
Given a room named '<room_name_target>' exists

# second teacher within the same school imports the multi-column board
When I open the shared URL
Then I see the modal to import the shared board into the room
When I select the room from the room list in the modal
When I select the room '<room_name_target>' from the room list in the modal
When I click on the Continue button in the modal
When I enter a new name for the imported board in the modal
When I click on the Import button in the modal
When I enter a new name for the imported board '<import_board_title>' in the modal
When I click on the button Import in the modal
Then I see the shared board tile as a draft on the room details page

# post-condition: Rooms created by both teachers are deleted
Given I am logged in as a '<teacher1>' at '<namespace>'
Given the room named '<room_name>' is deleted
Given the room named '<room_name_source>' is deleted
Given I am logged in as a '<teacher2>' at '<namespace>'
Given the room named '<room_name>' is deleted
Given the room named '<room_name_target>' is deleted

@school_api_test
Examples:
| teacher1 | teacher2 | namespace | room_name | board_title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |
| teacher1 | teacher2 | namespace | room_name_source | room_name_target | board_title | import_board_title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Cypress Room Name-2 | Board Cy Title | Board Cy Import Title |

@staging_test
Examples:
| teacher1 | teacher2 | namespace | room_name | board_title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | Board Cy Title |
| teacher1 | teacher2 | namespace | room_name | room_name_target | board_title | import_board_title |
| teacher1_brb | teacher2_brb | brb | Cypress Room Name | | Board Cy Title | Board Cy Import Title |

Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@regression_test
@stable_test
# note: this feature is only for the staging environment

Feature: Rooms - Share Multi-Column Boards in the Rooms

As a teacher, I want to share multi-column boards with teachers within the same school and from different schools so that they can collaborate effectively.

Scenario: Share a Multi-Column Board with a Teacher within the Same School

# pre-condition: Creating teacher accounts
Given I am logged in as a '<teacher1>' at '<namespace>'
Given I am logged in as a '<teacherExt1>' at '<namespace>'

# pre-condition: Room and multi-column board exist
Given a room named '<room_name_source>' exists
Given a multi-column board named '<board_title>' exists in the room

# for Invalid Shared URL
# first teacher shares the multi-column board with another teacher in the same school via copied URL
Then I see the board details page
When I click on the three-dot menu in the room board
When I select the three-dot menu action 'share'
Then I see the Share settings dialog
Then I check the checkbox Link valid for the same school is checked
Then I uncheck the the box Link valid for the same school
Then I check the checkbox Link valid for 21 days is checked
When I click on the button Continue
Then I see the Share via modal
Then I see the option Share via Email
Then I see the option Copy link
Then I see the option Scan QR Code
Then I copy the board URL
Then I click on the Close button in the modal

# pre-condition: Second teacher is logged into the application and a room exists
Given I am logged in as a '<teacherExt1>' at '<namespace>'
Given a room named '<room_name_target>' exists

# second teacher within the same school imports the multi-column board and sees NOT ALLOWED alert
When I open the shared URL
Then I see the altert import not allowed

# first teacher allowed the checkbox to be shared with different school
Given I am logged in as a '<teacher1>' at '<namespace>'


# second teacher within the same school imports the multi-column board succesfully
When I open the shared URL
Then I see the modal to import the shared board into the room
When I select the room from the room list in the modal
When I click on the Continue button in the modal
When I enter a new name for the imported board in the modal
When I click on the button Import in the modal
Then I see the shared board tile as a draft on the room details page

# second teacher within the same school imports the multi-column board and sees NOT ALLOWED alert

# post-condition: Rooms created by both teachers are deleted
Given I am logged in as a '<teacher1>' at '<namespace>'
Given the room named '<room_name_source>' is deleted
Given I am logged in as a '<teacher2>' at '<namespace>'
Given the room named '<room_name_target>' is deleted


@staging_test
Examples:
| teacher1 | teacherExt1 | namespace | room_name | board_title |
| teacher1_brb | teacherExt1_brb | brb | Cypress Room Name | Board Cy Title |

Loading

0 comments on commit 87a5834

Please sign in to comment.