Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
9b8b8ad5
Commit
9b8b8ad5
authored
May 25, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
May 25, 2018
Browse files
Merge "Corrected spacing issues and deleted 2 lines not required"
parents
f0e8c54a
2c345a2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/settings/image_on_static_page.feature
0 → 100644
View file @
9b8b8ad5
@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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment