Unverified Commit 2c345a2a authored by Steven Spinelli's avatar Steven Spinelli
Browse files

Corrected spacing issues and deleted 2 lines not required

Change-Id: I05fe572187b91b3bfabb2b672ceff8aeb5fdbf87
parent fb552e79
@javascript @core @core_administration
Feature: Static page image visibility
As a site visitor
I want to see images/logos on the static pages when logged in and not logged in
So I know I am on the right website
Background:
Given the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | admin |
Scenario: Admin user can add an image to the "Logged -out home" static page and see it displayed
Given I log in as "UserA" with password "Kupuh1pa!"
# Upload an image
And I choose "Files" in "Content" from main menu
And I attach the file "Image2.png" to "files_filebrowser_userfile"
And I am on "admin/site/pages.php"
And I select "Home (Dashboard)" from "pagename"
When I click the "Insert/edit image" button in the editor
And I expand the section "Image"
And I press "Select \"Image2.png\""
And I press "Submit"
And I press "Save changes"
And I choose "Dashboard" from main menu
# check that the image uploaded is the image being seen on the page
And I should see an "img[alt='Image2.png']" element
Scenario: Admin user can add an image to the "Home (Dashboard)" static page and see it displayed
Given I log in as "UserA" with password "Kupuh1pa!"
# Upload an image
And I choose "Files" in "Content" from main menu
And I attach the file "Image2.png" to "files_filebrowser_userfile"
And I am on "admin/site/pages.php"
And I select "Logged-out home" from "pagename"
When I click the "Insert/edit image" button in the editor
And I expand the section "Image"
And I press "Select \"Image2.png\""
And I press "Submit"
And I press "Save changes"
And I log out
And I am on homepage
# check that the image uploaded is the image being seen on the page
And I should see an "img[alt='Image2.png']" element
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