-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into N21-2239-media-board-delete-ux
- Loading branch information
Showing
26 changed files
with
609 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
cypress/e2e/news/createReadDeleteSchoolNewsInAdvance.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@stable_test | ||
@regression_test | ||
Feature: News - To read a news on the respective dashboards | ||
|
||
As a teacher I want to read the news shown on the dashboard so that I'm informed about the latest news | ||
|
||
Scenario: User creates news with time options, reads them and deletes them | ||
# as a pre-condition create users for author and reader | ||
Given I am logged in as a '<news_reader>' at '<namespace>' | ||
Given I am logged in as a '<news_author>' at '<namespace>' | ||
|
||
# first user creates school news with different time options | ||
When I go to news overview | ||
When I click on add news button | ||
Then I see news creation page | ||
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>' | ||
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 | ||
Then I see the unpublished news '<news_title>' | ||
|
||
# second user reads a school news on news overview page, then second user opens news and reads news detail page | ||
Given I am logged in as a '<news_reader>' at '<namespace>' | ||
When I go to news overview | ||
Then I do not see the news '<news_title>' | ||
When I wait '<news_waiting_time>' seconds and reload | ||
Then I can read the news '<news_title>' with description '<news_description>' | ||
When I click on the news teaser '<news_title>' | ||
Then I can read the news '<news_title>' with description '<news_description>' on news detail page | ||
|
||
# first user deletes the school news | ||
Given I am logged in as a '<news_author>' at '<namespace>' | ||
When I arrive on the dashboard | ||
When I go to news overview | ||
Then I can read the news '<news_title>' with description '<news_description>' | ||
When I click on the news teaser '<news_title>' | ||
When I click on delete button | ||
When I confirm the deletion on confirmation dialog box | ||
Then I do not see the news '<news_title>' | ||
|
||
@school_api_test | ||
@staging_test | ||
Examples: | ||
| news_author | news_reader | namespace | news_title | news_description | news_day_from_today | news_time | news_waiting_time | | ||
| teacher1_brb | student1_brb | brb | CypressAut - school news in advance | Remember Examination date | 0 | +2minutes | 120 | |
54 changes: 54 additions & 0 deletions
54
cypress/e2e/news/createReadDeleteSchoolNewsTimeOptions.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@stable_test | ||
@regression_test | ||
Feature: News - To read a news on the respective dashboards | ||
|
||
As a teacher I want to read the news shown on the dashboard so that I'm informed about the latest news | ||
|
||
Scenario: User creates news with time options, reads them and deletes them | ||
# as a pre-condition create users for author and reader | ||
Given I am logged in as a '<news_reader>' at '<namespace>' | ||
Given I am logged in as a '<news_author>' at '<namespace>' | ||
|
||
# first user creates school news with different time options | ||
When I go to news overview | ||
When I click on add news button | ||
Then I see news creation page | ||
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>' | ||
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 | ||
When I go to news overview | ||
Then I can read the news '<news_title>' with description '<news_description>' | ||
Then I can see the publishing time info '<news_time_info_overviewpage>' on overview page | ||
When I click on the news teaser '<news_title>' | ||
Then I can read the news '<news_title>' with description '<news_description>' on news detail page | ||
Then I can see the publishing time info '<news_time_info_detailpage>' on news detail page | ||
|
||
# second user reads a school news on news overview page, then second user opens news and reads news detail page | ||
Given I am logged in as a '<news_reader>' at '<namespace>' | ||
When I go to news overview | ||
Then I can read the news '<news_title>' with description '<news_description>' | ||
Then I can see the publishing time info '<news_time_info_overviewpage>' on overview page | ||
When I click on the news teaser '<news_title>' | ||
Then I can read the news '<news_title>' with description '<news_description>' on news detail page | ||
Then I can see the publishing time info '<news_time_info_detailpage>' on news detail page | ||
|
||
# first user deletes the school news | ||
Given I am logged in as a '<news_author>' at '<namespace>' | ||
When I arrive on the dashboard | ||
When I click on the news teaser '<news_title>' | ||
When I click on delete button | ||
When I confirm the deletion on confirmation dialog box | ||
Then I do not see the news '<news_title>' | ||
|
||
@school_api_test | ||
@staging_test | ||
Examples: | ||
| news_author | news_reader | namespace | news_title | news_description | news_day_from_today | news_time | news_time_info_overviewpage | news_time_info_detailpage | | ||
| teacher1_brb | student1_brb | brb | CypressAut - school news at current time | Remember Examination date | 0 | currentTime | vor ein | vor ein | | ||
| admin1_brb | student1_brb | brb | CypressAut - school news without time | New member of the teaching staff | notselected | none | vor ein | vor ein | | ||
| admin1_brb | teacher1_brb | brb | CypressAut - school news 7 days ago | New member of the teaching staff | -7 | currentTime | vor 7 Tage | -7 | |
63 changes: 63 additions & 0 deletions
63
cypress/e2e/news/createReadDeleteTeamNewsTimeOptions.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
@stable_test | ||
@regression_test | ||
Feature: News - To read a news on the respective dashboards | ||
|
||
As a teacher I want to read the news shown on the dashboard so that I'm informed about the latest news | ||
|
||
Scenario: User creates news with time options, reads them and deletes them | ||
# as a pre-condition create users for author and reader | ||
Given I am logged in as a '<news_reader>' at '<namespace>' | ||
Given I am logged in as a '<news_author>' at '<namespace>' | ||
|
||
# first user creates a team | ||
When I go to teams overview | ||
When I click on button Add Team on the teams overview page | ||
Then I see new team creation page | ||
When I enter in the title '<team_name>' | ||
When I click on button Create Team on the team creation page | ||
|
||
# first user creates a team news | ||
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 | ||
When I click on create news button | ||
Then I see news creation page | ||
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>' | ||
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 | ||
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 | ||
Then I can read the news '<team_news_title>' with description '<team_news_description>' | ||
Then I can see the publishing time info '<news_time_info_overviewpage>' on overview page | ||
When I click on the news teaser '<team_news_title>' | ||
Then I can read the news '<team_news_title>' with description '<team_news_description>' on news detail page | ||
Then I can see the publishing time info '<news_time_info_detailpage>' on news detail page | ||
|
||
# first user deletes the team news | ||
When I arrive on the dashboard | ||
When I click on the news teaser '<team_news_title>' | ||
When I click on delete button | ||
When I confirm the deletion on confirmation dialog box | ||
Then I do not see the news '<team_news_title>' | ||
|
||
# first user deletes the team | ||
When I go to teams overview | ||
When I go to a team '<team_name>' | ||
When I click on team settings | ||
When I click on delete option | ||
Then I see dialog box and click on delete button to confirm the deletion | ||
Then I do not see the team '<team_name>' | ||
|
||
@school_api_test | ||
@staging_test | ||
Examples: | ||
| news_author | news_reader | namespace | news_day_from_today | news_time | news_time_info_overviewpage | news_time_info_detailpage | team_name | team_news_title | team_news_description | | ||
| teacher1_brb | student1_brb | nbc | 0 | currentTime | vor ein | vor ein | CypressAut - News Team | CypressAut - this is a team news | test team news description | | ||
#| admin1_brb | student1_brb | nbc | notselected | none | vor ein | vor ein | CypressAut - News Team | CypressAut - this is a team news | test team news description | | ||
#| admin1_brb | teacher1_brb | nbc | -7 | currentTime | vor 7 Tage | -7 | CypressAut - News Team | CypressAut - this is a team news | test team news description | |
Oops, something went wrong.