diff --git a/tests/behat/manager.feature b/tests/behat/manager.feature index f544cbb..8a2c692 100644 --- a/tests/behat/manager.feature +++ b/tests/behat/manager.feature @@ -27,6 +27,7 @@ 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" @@ -34,14 +35,20 @@ Feature: An admin can manage RSS feeds sitewide | 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 @@ -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..."