Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen committed Oct 8, 2024
1 parent a4321ec commit eeb0dc3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/behat/manager.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,28 @@ Feature: An admin can manage RSS feeds sitewide
And I set the following fields to these values:
| config_feedurl | https://docs.moodle.org/401/en/Main_page |
| config_title | News from Moodle |
| config_block_rss_client_show_channel_link | Yes |
And I press "Save changes"
And I press "Manage RSS feeds"
And I click on "Edit" "link"
And I set the following fields to these values:
| preferredtitle | Feed 1 |
And I press "Save changes"
And I am on "Grimm's Fairy Tales" course homepage
Then I should see "News from Moodle"
And I configure the "News from Moodle" block
And I set the following fields to these values:
| config_block_rss_client_show_channel_link | Yes |
And I press "Save changes"
And I should see "Source site..."
Given I am on "Grimm's Dictionary" course homepage
And I add the "RSS feeds..." block
And I set the following fields to these values:
| config_title | News from Moodle |
| config_rssid[] | Feed 1 |
| config_block_rss_client_show_channel_link | Yes |
When I press "Save changes"
Then I should see "News from Moodle"
And I should see "Source site..."
And I log out
Given I log in as "admin"
And I navigate to "Reports > Manage all RSS feeds" in site administration
Expand All @@ -54,6 +61,8 @@ Feature: An admin can manage RSS feeds sitewide
Then I should see "RSS feed deleted"
But I should not see "Jacob Grimm"
When I am on "Grimm's Fairy Tales" course homepage
Then I should not see "News from Moodle"
Then I should see "News from Moodle"
And I should not see "Source site..."
When I am on "Grimm's Dictionary" course homepage
Then I should not see "News from Moodle"
Then I should see "News from Moodle"
And I should not see "Source site..."

0 comments on commit eeb0dc3

Please sign in to comment.