AutorÃa | Ultima modificación | Ver Log |
@block @block_rss_clientFeature: Enable RSS client block menu on the frontpageIn order to enable the RSS client block on the frontpageAs an adminI can add RSS client block to the frontpageBackground:Given I log in as "admin"When I navigate to "Plugins > Blocks > Manage blocks" in site administrationThen I enable "rss_client" "block" pluginAnd the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || rss_client | System | 1 | site-index | side-pre |@javascriptScenario: Configuring the RSS block on the frontpageGiven I log in as "admin"And I am on site homepageAnd I turn editing mode onAnd "RSS feed" "block" should existAnd I configure the "RSS feed" blockAnd I should see "There are not yet any RSS feeds. Choose 'Add new RSS feed'."# Test filling in an empty URL in the input.And I click on "Add new RSS feed" "radio"And I press "Save changes"And I should see "You must supply a value here."# Test filling in with a non-valid URL in the input.And I set the field "config_feedurl" to "https://example.com/notvalid.rss"And I press "Save changes"And I should see "Could not find or load the RSS feed."# Test filling in with the correct URL in the input.And I set the field "config_feedurl" to "https://www.nasa.gov/rss/dyn/breaking_news.rss"And I set the field "config_block_rss_client_show_channel_link" to "Yes"And I press "Save changes"And I should see "NASA"And I should see "Source site..."# Test the existence of the available feeds.When I configure the "NASA" blockThen I should see "NASA" in the "Select feeds to display" "select"And I click on "Cancel" "button" in the "Configure NASA block" "dialogue"# Test the Manage RSS feeds page.And I click on "Manage RSS feeds" "link"And I should see "NASA"