Commit b9da8e22 authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Robert Lyon
Browse files

Bug #1660455 add behat test for image block

Change-Id: I82514fb93a266f080b1a356f8d661b1f4ad34389
parent 4d178a16
@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"
Markdown is supported
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