Skip to content

Commit

Permalink
BC-3505 requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
csp175 committed Dec 11, 2024
1 parent 792db31 commit a512554
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Feature: Group - To show groups and classes in one table with respective functio
When I click the confirmation button on the cancel modal
Then I see the new class administration page
When I click the create successor button
And I confirm creating the successor
And I confirm managing the class
When I confirm creating the successor
When I confirm managing the class
Then I see the new class administration page
Then I can see the disabled create successor button of the original class

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 @@ -32,8 +32,8 @@ Feature: Course - Add substitute teacher to course
When I go to course '<course_name>'
When I open page Edit course
Then I see page Edit course
And I clear substitute teacher field
And I add substitute teacher '<substitute_teacher>'
When I clear substitute teacher field
When I add substitute teacher '<substitute_teacher>'
When I click on button Save changes in page Edit course
Given I am logged in as a '<teacher2>' at '<namespace>'
When I go to courses overview
Expand Down
42 changes: 21 additions & 21 deletions cypress/e2e/dashboard/dashboard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ Feature: Dashboard - To check contents on the dashboard

# pre-condition: teacher creates school news
When I go to news overview
And I click on add news button
When I click on add news button
Then I see news creation page
And I enter news title 'CypressAut Dashboard - school news'
And I enter news description 'test school news description'
And I see date input field
And I see time input field
And I click on save button
When I enter news title 'CypressAut Dashboard - school news'
When I enter news description 'test school news description'
Then I see date input field
Then I see time input field
When I click on save button
Then I see news is created successfully with title 'CypressAut Dashboard - school news' and with description 'test school news description'

# pre-condition: teacher creates a team
Expand All @@ -79,24 +79,24 @@ Feature: Dashboard - To check contents on the dashboard
When I go to teams overview
When I go to a team 'CypressAut - News Team'
When I click on news tab on the team detail page
And I click on create news button
When I click on create news button
Then I see news creation page
And I enter news title 'CypressAut Dashboard - team news'
And I enter news description 'test team news description'
And I see date input field
And I see time input field
And I click on save button
When I enter news title 'CypressAut Dashboard - team news'
When I enter news description 'test team news description'
Then I see date input field
Then I see time input field
When I click on save button
Then I see news is created successfully with title 'CypressAut Dashboard - team news' and with description 'test team news description'

# pre-condition: teacher adds student as team member
When I go to teams overview
When I go to a team 'CypressAut - News Team'
When I click on three dot menu on the team title
And I click on manage team members option
When I click on manage team members option
Then I see team participants overview page
And I click on add internal attendees button
And new dialog opens to select student '<listname_student>' from the drop down list
And I click on add user button
When I click on add internal attendees button
Then new dialog opens to select student '<listname_student>' from the drop down list
When I click on add user button
Then I see the student named '<listname_student>' on the team members table

# student arrives on dashboard
Expand All @@ -118,16 +118,16 @@ Feature: Dashboard - To check contents on the dashboard

# teacher deletes the school news
When I arrive on the dashboard
And I click on the news teaser 'CypressAut Dashboard - school news'
When I click on the news teaser 'CypressAut Dashboard - school news'
When I click on delete button
And I confirm the deletion on confirmation dialog box
When I confirm the deletion on confirmation dialog box
Then I do not see the news 'CypressAut Dashboard - school news'

# teacher deletes the team news
When I arrive on the dashboard
And I click on the news teaser 'CypressAut Dashboard - team news'
When I click on the news teaser 'CypressAut Dashboard - team news'
When I click on delete button
And I confirm the deletion on confirmation dialog box
When I confirm the deletion on confirmation dialog box
Then I do not see the news 'CypressAut Dashboard - team news'

# student does not see news anymore on dashboard
Expand All @@ -141,7 +141,7 @@ Feature: Dashboard - To check contents on the dashboard
When I go to teams overview
When I go to a team 'CypressAut - News Team'
When I click on three dot menu on the team title
And I click on manage team members option
When I click on manage team members option
Then I see team participants overview page
When I select the student '<fullname_student>' and click on delete icon
Then I see '<fullname_student>' is not visible on the table
Expand Down
32 changes: 16 additions & 16 deletions cypress/e2e/news/createReadDeleteNews.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Feature: News - To read a news on the respective dashboards
# teacher creates school news
Given I am logged in as a '<teacher>' at '<namespace>'
When I go to news overview
And I click on add news button
When I click on add news button
Then I see news creation page
And I enter news title '<news_title>'
And I enter news description '<news_description>'
And I see date input field
And I see time input field
And I click on save button
When I enter news title '<news_title>'
When I enter news description '<news_description>'
Then I see date input field
Then I see time input field
When I click on save button
Then I see news is created successfully with title '<news_title>' and with description '<news_description>'

# teacher creates a team
Expand All @@ -33,13 +33,13 @@ Feature: News - To read a news on the respective dashboards
When I go to teams overview
When I go to a team '<team_name>'
When I click on news tab on the team detail page
And I click on create news button
When I click on create news button
Then I see news creation page
And I enter news title '<team_news_title>'
And I enter news description '<team_news_description>'
And I see date input field
And I see time input field
And I click on save button
When I enter news title '<team_news_title>'
When I enter news description '<team_news_description>'
Then I see date input field
Then I see time input field
When I click on save button
Then I see news is created successfully with title '<team_news_title>' and with description '<team_news_description>'

# teacher reads a school news on news overview page
Expand All @@ -60,16 +60,16 @@ Feature: News - To read a news on the respective dashboards
# teacher deletes the school news
Given I am logged in as a '<teacher>' at '<namespace>'
When I arrive on the dashboard
And I click on the news teaser '<news_title>'
When I click on the news teaser '<news_title>'
When I click on delete button
And I confirm the deletion on confirmation dialog box
When I confirm the deletion on confirmation dialog box
Then I do not see the news '<news_title>'

# teacher deletes the team news
When I arrive on the dashboard
And I click on the news teaser '<team_news_title>'
When I click on the news teaser '<team_news_title>'
When I click on delete button
And I confirm the deletion on confirmation dialog box
When I confirm the deletion on confirmation dialog box
Then I do not see the news '<team_news_title>'

# teacher deletes the team
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Feature: News - To read a news on the respective dashboards

# first user creates school news with different time options
When I go to news overview
And I click on add news button
When I click on add news button
Then I see news creation page
And I enter news title '<news_title>'
And I enter news description '<news_description>'
When I enter news title '<news_title>'
When I enter news description '<news_description>'
When I set news-visibility-start-date to '<news_day_from_today>' days at '<news_time>'
And I see time input field
And I click on save button
Then I see time input field
When I click on save button
When I go to news overview
Then I do not see the unpublished news '<news_title>'
When I click on tab for unpublished news
Expand All @@ -37,9 +37,9 @@ Feature: News - To read a news on the respective dashboards
When I arrive on the dashboard
When I go to news overview
Then I can read the news '<news_title>' with description '<news_description>'
And I click on the news teaser '<news_title>'
When I click on the news teaser '<news_title>'
When I click on delete button
And I confirm the deletion on confirmation dialog box
When I confirm the deletion on confirmation dialog box
Then I do not see the news '<news_title>'

@school_api_test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Feature: News - To read a news on the respective dashboards

# first user creates school news with different time options
When I go to news overview
And I click on add news button
When I click on add news button
Then I see news creation page
And I enter news title '<news_title>'
And I enter news description '<news_description>'
When I enter news title '<news_title>'
When I enter news description '<news_description>'
When I set news-visibility-start-date to '<news_day_from_today>' days at '<news_time>'
And I see time input field
And I click on save button
Then I see time input field
When I click on save button
Then I see news is created successfully with title '<news_title>' and with description '<news_description>'

# first user reads a school news on news overview page, then teacher opens news and reads news detail page
Expand All @@ -40,9 +40,9 @@ Feature: News - To read a news on the respective dashboards
# first user deletes the school news
Given I am logged in as a '<news_author>' at '<namespace>'
When I arrive on the dashboard
And I click on the news teaser '<news_title>'
When I click on the news teaser '<news_title>'
When I click on delete button
And I confirm the deletion on confirmation dialog box
When I confirm the deletion on confirmation dialog box
Then I do not see the news '<news_title>'

@school_api_test
Expand Down
14 changes: 7 additions & 7 deletions cypress/e2e/news/createReadDeleteTeamNewsTimeOptions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Feature: News - To read a news on the respective dashboards
When I go to teams overview
When I go to a team '<team_name>'
When I click on news tab on the team detail page
And I click on create news button
When I click on create news button
Then I see news creation page
And I enter news title '<team_news_title>'
And I enter news description '<team_news_description>'
When I enter news title '<team_news_title>'
When I enter news description '<team_news_description>'
When I set news-visibility-start-date to '<news_day_from_today>' days at '<news_time>'
And I see time input field
And I click on save button
Then I see time input field
When I click on save button
Then I see news is created successfully with title '<team_news_title>' and with description '<team_news_description>'

# first user reads a team news on teams news overview page
Expand All @@ -41,9 +41,9 @@ Feature: News - To read a news on the respective dashboards

# first user deletes the team news
When I arrive on the dashboard
And I click on the news teaser '<team_news_title>'
When I click on the news teaser '<team_news_title>'
When I click on delete button
And I confirm the deletion on confirmation dialog box
When I confirm the deletion on confirmation dialog box
Then I do not see the news '<team_news_title>'

# first user deletes the team
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/topics/accessH5PEditor.feature
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Feature: Topics - To access the H5P editor as a teacher.
Given I am logged in as a '<teacher>' at '<namespace>'
When I go to courses overview
When I go to course '<course_name>'
And I click on FAB to create new content
And I click on New Topic FAB
When I click on FAB to create new content
When I click on New Topic FAB
Then I can see edit topic page '-'
When I enter topic title '<topic_title>'
When I click on button Add Text to topic
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/topics/createEditDeleteTopic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Feature: Topics - To create, edit and delete topics by the teacher.
Given I am logged in as a '<teacher>' at '<namespace>'
When I go to courses overview
When I go to course '<course_name>'
And I click on FAB to create new content
And I click on New Topic FAB
When I click on FAB to create new content
When I click on New Topic FAB
Then I can see edit topic page '-'
When I enter topic title 'CypressAut Topic Creating and Deleting Test'
When I click on button Add Text to topic
Expand Down

0 comments on commit a512554

Please sign in to comment.