Commit 50d32f05 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug #1660455 add behat test for image block"

parents b8a15c9f b9da8e22
@javascript @core @blocktype @blocktype_addimageblock
Feature: Creating a new image block on a page
in order to check that the image is visible
after it is created
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Page 1 | page P1 | user | userA |
Scenario: Create Image block
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages" in "Portfolio"
And I follow "Edit \"Page 1\""
And I follow "Image"
And I wait "1" seconds
And I press "Add"
And I wait "1" seconds
Then I should see "Image: Configure"
And I set the field "Block title" to "Image Block 1"
And I follow "Image"
And I attach the file "Image1.jpg" to "File"
Then I should see "Image - Image1.jpg"
And I set the field "Show description" to "1"
And I press "Save"
And I wait "2" seconds
And I scroll to the id "main-nav"
And I click on "Display page"
And I should see "Image1.jpg"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment