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
50d32f05
Commit
50d32f05
authored
Feb 08, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 08, 2017
Browse files
Merge "Bug #1660455 add behat test for image block"
parents
b8a15c9f
b9da8e22
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/blocktype/addimageblock.feature
0 → 100644
View file @
50d32f05
@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"
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