Skip to content

Commit

Permalink
BC-4968 Update feature files and relevant places
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Sep 6, 2023
1 parent b350db2 commit d39ebfa
Show file tree
Hide file tree
Showing 24 changed files with 198 additions and 169 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,30 +93,6 @@ jobs:
command: npm run ${{ steps.setting_url.outputs.tag }}
browser: chrome
env:
CYPRESS_BRB: ${{ env.CYPRESS_BRB }}
CYPRESS_NBC: ${{ env.CYPRESS_NBC }}
CYPRESS_DEFAULT: ${{ env.CYPRESS_DEFAULT }}
CYPRESS_TEACHER_1_EMAIL: ${{ env.CYPRESS_TEACHER_1_EMAIL }}
CYPRESS_TEACHER_1_PASSWORD: ${{ env.CYPRESS_TEACHER_1_PASSWORD }}
CYPRESS_TEACHER_2_EMAIL: ${{ env.CYPRESS_TEACHER_2_EMAIL }}
CYPRESS_TEACHER_2_PASSWORD: ${{ env.CYPRESS_TEACHER_2_PASSWORD }}
CYPRESS_STUDENT_1_EMAIL: ${{ env.CYPRESS_STUDENT_1_EMAIL }}
CYPRESS_STUDENT_1_PASSWORD: ${{ env.CYPRESS_STUDENT_1_PASSWORD }}
CYPRESS_STUDENT_2_EMAIL: ${{ env.CYPRESS_STUDENT_2_EMAIL }}
CYPRESS_STUDENT_2_PASSWORD: ${{ env.CYPRESS_STUDENT_2_PASSWORD }}
CYPRESS_ADMIN_1_EMAIL: ${{ env.CYPRESS_ADMIN_1_EMAIL }}
CYPRESS_ADMIN_1_PASSWORD: ${{ env.CYPRESS_ADMIN_1_PASSWORD }}
CYPRESS_EXPERT_1_EMAIL: ${{ env.CYPRESS_EXPERT_1_EMAIL }}
CYPRESS_EXPERT_1_PASSWORD: ${{ env.CYPRESS_EXPERT_1_PASSWORD }}
CYPRESS_STUDENT_EXTERN: ${{ env.CYPRESS_STUDENT_EXTERN }}
CYPRESS_STUDENT_EXTERN_PASSWORD: ${{ env.CYPRESS_STUDENT_EXTERN_PASSWORD }}
CYPRESS_STUDENT_PASSWORD_CHANGE_EMAIL: ${{ env.CYPRESS_STUDENT_PASSWORD_CHANGE_EMAIL }}
CYPRESS_STUDENT_PASSWORD_CHANGE_OLD_PWD: ${{ env.CYPRESS_STUDENT_PASSWORD_CHANGE_OLD_PWD }}
CYPRESS_STUDENT_PASSWORD_CHANGE_NEW_PWD: ${{ env.CYPRESS_STUDENT_PASSWORD_CHANGE_NEW_PWD }}
CYPRESS_TEACHER_1_FIRST_NAME: ${{ env.CYPRESS_TEACHER_1_FIRST_NAME }}
CYPRESS_TEACHER_1_LAST_NAME: ${{ env.CYPRESS_TEACHER_1_LAST_NAME }}
CYPRESS_TEACHER_2_FIRST_NAME: ${{ env.CYPRESS_TEACHER_2_FIRST_NAME }}
CYPRESS_TEACHER_2_LAST_NAME: ${{ env.CYPRESS_TEACHER_2_LAST_NAME }}
DEBUG: "@cypress/github-action"

- name: Generate Report
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/account/changeLanguage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Account - Change language of the user from user setting

@stable_test
Scenario Outline: Teacher can change language to '<language>'
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I arrive on the dashboard
Then I can see initials of my name
When I click on initials of my name
Expand All @@ -21,7 +21,7 @@ Feature: Account - Change language of the user from user setting

@stable_test
Scenario Outline: Student can change language to '<language>'
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I arrive on the dashboard
Then I can see initials of my name
When I click on initials of my name
Expand All @@ -37,7 +37,7 @@ Feature: Account - Change language of the user from user setting

@stable_test
Scenario Outline: Admin can change language to '<language>'
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I arrive on the dashboard
Then I can see initials of my name
When I click on initials of my name
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/account/goToSettings.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ Feature: Account - To go to account settings page on default

@stable_test
Scenario: I see my e-mail is editable as an internal student user
Given I am logged in as a 'student' at 'default'
Given I am logged in as a 'student1_dbc' at 'default'
When I go to my account settings
Then I see my email is editable

@unstable_test
Scenario: I see my e-mail is not editable as an external student user
Given I am logged in as a 'student_extern' at 'default'
Given I am logged in as a 'student_extern_dbc' at 'default'
When I go to my account settings
Then I see my email is not editable
2 changes: 1 addition & 1 deletion cypress/e2e/addons/goToAddons.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Feature: Addons - To go to addons page on NBC

@stable_test
Scenario: to access Add-ons page as an Admin
Given I am logged in as a 'admin' at 'nbc'
Given I am logged in as a 'admin1_nbc' at 'nbc'
When I go to Add-Ons overview
Then I see the Add-Ons page with the title on the top
16 changes: 8 additions & 8 deletions cypress/e2e/admin/administrateExternalTools.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Feature: Admin External Tools - To administrate school settings by the admin.

@unstable_test
Scenario: Deactivate Chat
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to school administration
And I go to new school administration page
And I click on toggle switch to deactivate the chat
And I click save general settings button
Then I log out
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
And I go to teams overview
And I go to a team
Then I can not see the chat in team
Expand All @@ -24,14 +24,14 @@ Feature: Admin External Tools - To administrate school settings by the admin.

@unstable_test
Scenario: Activate Chat
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to school administration
And I go to new school administration page
And I click on toggle switch to activate the chat
And I click save general settings button
Then I log out
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to teams overview
And I go to a team
And I open team settings
Expand All @@ -43,14 +43,14 @@ Feature: Admin External Tools - To administrate school settings by the admin.

@unstable_test
Scenario: Deactivate BigBlueButton
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to school administration
And I go to new school administration page
And I click on toggle switch to deactivate video conferencing
And I click save general settings button
And I log out
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
And I go to rooms overview
And I go to room
And I go to tools tab
Expand All @@ -59,14 +59,14 @@ Feature: Admin External Tools - To administrate school settings by the admin.

@unstable_test
Scenario: Activate BigBlueButton
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to school administration
And I go to new school administration page
And I click on toggle switch to activate video conferencing
And I click save general settings button
And I log out
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
And I go to rooms overview
And I go to room
And I go to tools tab
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/admin/administrateMigration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Admin Users - To administrate the Migration process.
As an Admin I want to start, finish and make the migration mandatory.

Background:
Given I am logged in as a 'admin' at 'nbc'
Given I am logged in as a 'admin1_nbc' at 'nbc'
When I go to administration page
When I go to school administration

Expand Down
12 changes: 6 additions & 6 deletions cypress/e2e/admin/administrateUsers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Admin Users - To add, edit and delete new users by the admin.

@stable_test
Scenario: Adding a new student
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to student administration
When I click on FAB
Expand All @@ -16,7 +16,7 @@ Feature: Admin Users - To add, edit and delete new users by the admin.

@stable_test
Scenario: Editing a new student
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to student administration
And I enter 'student' email '[email protected]' in search input field
Expand All @@ -29,7 +29,7 @@ Feature: Admin Users - To add, edit and delete new users by the admin.

@stable_test
Scenario: Deleting a student
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to student administration
And I enter 'student' email '[email protected]' in search input field
Expand All @@ -40,7 +40,7 @@ Feature: Admin Users - To add, edit and delete new users by the admin.

@stable_test
Scenario: Adding a new teacher
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to teacher administration
When I click on FAB
Expand All @@ -51,7 +51,7 @@ Feature: Admin Users - To add, edit and delete new users by the admin.

@stable_test
Scenario: Editing a new teacher
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to teacher administration
And I enter 'teacher' email '[email protected]' in search input field
Expand All @@ -64,7 +64,7 @@ Feature: Admin Users - To add, edit and delete new users by the admin.

@stable_test
Scenario: Deleting a teacher
Given I am logged in as a 'admin' at 'brb'
Given I am logged in as a 'admin1_brb' at 'brb'
When I go to administration page
And I go to teacher administration
And I enter 'teacher' email '[email protected]' in search input field
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/course/addSubstituteTeacherToCourse.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Course - Add substitute teacher to course

@stable_test
Scenario: Adding substitute teacher to course
Given I am logged in as a 'teacher1' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to rooms overview
When I go to room 'Biologie'
When I open course edit page
Expand All @@ -14,6 +14,6 @@ Feature: Course - Add substitute teacher to course
And I add substitute teacher 'teacher2'
And I click on save changes after editing the course details
Then I log out
Given I am logged in as a 'teacher2' at 'brb'
Given I am logged in as a 'teacher2_brb' at 'brb'
When I go to rooms overview
When I go to room 'Biologie'
4 changes: 2 additions & 2 deletions cypress/e2e/course/createEditAndDeleteCourse.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Course - To add and delete a course by the teacher

@stable_test
Scenario: as a pre-condition teacher deletes undeleted tests
Given I am logged in as a 'teacher' at 'default'
Given I am logged in as a 'teacher1_dbc' at 'default'
When I go to rooms overview
When I delete all courses named 'Cypress Test Creation and Deletion'
Then I do not see the course 'Cypress Test Creation and Deletion' on the room overview page
Expand All @@ -14,7 +14,7 @@ Feature: Course - To add and delete a course by the teacher

@stable_test
Scenario: Create, edit and delete a course
Given I am logged in as a 'teacher' at 'default'
Given I am logged in as a 'teacher1_dbc' at 'default'
When I go to rooms overview
Then I see room search box on the room overview page
When I click on FAB to create a new room
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/course/searchRoom.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ Feature: Course - To search for a course via search input box on the course over

@stable_test
Scenario: teacher is able to search for a course and find it
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to rooms overview
When I enter the course name 'Biologie' into the search field
Then I see the course 'Biologie' on the room overview page

@stable_test
Scenario: teacher is able to search for a course and DO NOT find it
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to rooms overview
When I enter the course name 'Cy::NotExistingMathematikCourse' into the search field
Then I do not see the course 'Cy::NotExistingMathematikCourse' on the room overview page

@stable_test
Scenario: student is able to search for a course and find it
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I go to rooms overview
When I enter the course name 'Course with subject' into the search field
Then I see the course 'Course with subject and tasks' on the room overview page

@stable_test
Scenario: student is able to search for a course and DO NOT find it
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I go to rooms overview
When I enter the course name 'Cy::NotExistingMathematikCourse' into the search field
Then I do not see the course 'Cy::NotExistingMathematikCourse' on the room overview page
18 changes: 9 additions & 9 deletions cypress/e2e/dashboard/dashboard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: as a pre-condition teacher creates school news
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to news overview
And I click on add news button
Then I see news creation page
Expand All @@ -18,7 +18,7 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: as a pre-condition teacher creates a team news
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to teams overview
When I go to a team 'Musik'
When I click on news tab on the team detail page
Expand All @@ -33,7 +33,7 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: as a pre-condition teacher adds student as team member
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to teams overview
When I go to a team 'Musik'
When I click on three dot menu on the team title
Expand All @@ -46,7 +46,7 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: student arrives on dashboard
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I arrive on the dashboard
Then I see the welcome message 'Hallo Herbert Kraft!'
Then I see school news with title 'Dashboard - this is a school news' and description 'test school news description'
Expand All @@ -55,7 +55,7 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: teacher arrives on dashboard
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I arrive on the dashboard
Then I see the welcome message 'Hallo Karl Herzog!'
Then I see school news with title 'Dashboard - this is a school news' and description 'test school news description'
Expand All @@ -65,7 +65,7 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: as a post-condition teacher deletes the school news
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I arrive on the dashboard
And I click on the news teaser 'Dashboard - this is a school news'
When I click on delete button
Expand All @@ -74,7 +74,7 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: as a post-condition teacher deletes the team news
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I arrive on the dashboard
And I click on the news teaser 'Dashboard - this is a team news'
When I click on delete button
Expand All @@ -83,14 +83,14 @@ Feature: Dashboard - To check contents on the dashboard

@stable_test
Scenario: student does not see news anymore on dashboard
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I arrive on the dashboard
Then I do not see school news with title 'Dashboard - this is a school news'
Then I do not see teams news with title 'Dashboard - this is a team news'

@stable_test
Scenario: as a post-condition teacher deletes the student as a team member
Given I am logged in as a 'teacher' at 'brb'
Given I am logged in as a 'teacher1_brb' at 'brb'
When I go to teams overview
When I go to a team 'Musik'
When I click on three dot menu on the team title
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/files/myFiles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Files Overview - To use LibreOffice for text, calc and presentation doc

@stable_test
Scenario: Create a LibreOffice text document
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I go to files overview
Then I go to personal files overview
When I click create a new file button
Expand All @@ -18,7 +18,7 @@ Feature: Files Overview - To use LibreOffice for text, calc and presentation doc

@stable_test
Scenario: Edit name of LibreOffice text document
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I go to files overview
Then I go to personal files overview
Then I can see file with name 'Cy: LibraOffice Open.docx'
Expand All @@ -30,7 +30,7 @@ Feature: Files Overview - To use LibreOffice for text, calc and presentation doc

@stable_test
Scenario: Delete a LibreOffice text document
Given I am logged in as a 'student' at 'brb'
Given I am logged in as a 'student1_brb' at 'brb'
When I go to files overview
Then I go to personal files overview
Then I can see file with name 'Cy: LibraOffice Edit.docx'
Expand Down
Loading

0 comments on commit d39ebfa

Please sign in to comment.