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
262489c1
Commit
262489c1
authored
Mar 31, 2015
by
Jinelle Foley-Barnes
Browse files
Behat Test: Feedback configuration (Bug 1431569)
Change-Id: Iab5d995dce958e047d341f0ec683a668ceeab260
parent
e92df62c
Changes
1
Show whitespace changes
Inline
Side-by-side
test/behat/features/artefact/collections/feedback_configuration.feature
0 → 100644
View file @
262489c1
@javascript
@core
@core_portfolio
Feature
:
Page feedback configuration
In order to change the settings for placing feedback for a page
As an admin
So I can choose how I want to display my feedback
Background
:
Given the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
userA
|
Password1
|
test01@example.com
|
Pete
|
Mc
|
mahara
|
internal
|
member
|
Scenario Outline
:
Turning switchboxes on and off on feedback page (Bug 1431569)
Given
I log in as
"<log>"
with password
"Password1"
And
I follow
"Portfolio"
And
I press
"Create page"
And I fill in the following
:
|
Page
title
|
Sharky
|
And
I
press
"Save"
And
I press
"Done"
And
I follow
"Sharky"
And
I follow
"Place feedback"
# Checking the default settings on the fields are correct
And the following fields match these values
:
|
Make
public
|
1
|
# Changing the switchbox to be the opposite
And I set the following fields to these values
:
|
Make
public
|
0
|
# Changing the switchbox back to default setting
And I set the following fields to these values
:
|
Make
public
|
1
|
And
I
press
"Place
feedback"
And
I should see
"There was an error with submitting this form. Please check the marked fields and try again."
And
I should see
"Your message is empty. Please enter a message or attach a file."
Examples
:
|
log
|
|
admin
|
|
userA
|
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