mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-76230 block_tag_flickr: Extra Behat test for a specific tag
This commit is contained in:
parent
7c3188b2ca
commit
40c641eceb
@ -4,20 +4,36 @@ Feature: Adding and configuring Flickr block
|
||||
As a admin
|
||||
I need to add the Flickr block to the tags site page
|
||||
|
||||
@javascript
|
||||
Scenario: Adding Flickr block to the tags site page
|
||||
Given I log in as "admin"
|
||||
Background:
|
||||
# We need to create a user to use tag here because the tags site page only shows the tag that currently being used.
|
||||
Given the following "users" exist:
|
||||
| username | interests |
|
||||
| student1 | Cats |
|
||||
And I log in as "admin"
|
||||
And I turn editing mode on
|
||||
And the following config values are set as admin:
|
||||
| unaddableblocks | | theme_boost|
|
||||
And the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
||||
| tag_flickr | System | 1 | tag-search | side-post |
|
||||
| tag_flickr | System | 1 | tag-index | side-post |
|
||||
# TODO MDL-57120 site "Tags" link not accessible without navigation block.
|
||||
And I add the "Navigation" block if not present
|
||||
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
||||
And I click on "Tags" "link" in the "Navigation" "block"
|
||||
And I add the "Flickr" block
|
||||
And I configure the "Flickr" block
|
||||
|
||||
@javascript
|
||||
Scenario: Adding Flickr block to the tags site page
|
||||
Given "block_tag_flickr" "block" should exist
|
||||
When I configure the "Flickr" block
|
||||
Then I should see "Flickr block title"
|
||||
And I set the field "Flickr block title" to "The Flickr block header"
|
||||
And I press "Save changes"
|
||||
And "block_tag_flickr" "block" should exist
|
||||
Then "The Flickr block header" "block" should exist
|
||||
And "The Flickr block header" "block" should exist
|
||||
|
||||
@javascript
|
||||
Scenario: Adding Flickr block to a specific tag page
|
||||
Given I click on "Cats" "link"
|
||||
Then "block_tag_flickr" "block" should exist
|
||||
And ".flickr-photos" "css_element" should exist in the "block_tag_flickr" "block"
|
||||
|
Loading…
x
Reference in New Issue
Block a user