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

1671656 - behat test for adding a pdf block

-adding pdf file

Tests that the block is added, would be good to test
that the content of the pdf is correct too, but need to
figure out a way to do that.

Change-Id: Ie777397c7beb8c6eda380554c81910697d760bf1
parent f898c4d4
@javascript @core @blocktype @blocktype_pdf
Feature: Adding a pdf to a page
As a student
I need to be able to add a pdf block to my portfolio
and check it is visible on the page
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| userA | Kupuhipa1 | | Pete | Mc | mahara | internal | member |
And the following "pages" exist:
| title | description| ownertype | ownername |
| Page 1 | page P1 | user | userA |
# Logging in as a user
Given I log in as "userA" with password "Kupuhipa1"
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Page 1" panel menu
And I click on "Edit" in "Page 1" panel menu
# Configuring the block
And I expand "Media" node
And I wait "1" seconds
And I follow "PDF" in the "div#fileimagevideo" "css_element"
And I press "Add"
And I fill in the following:
| Block title | Mahara about PDF |
And I follow "File"
And I attach the file "mahara_about.pdf" to "File"
And I press "Save"
And I display the page
Then I should see "Mahara about PDF"
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