Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
dc6b8b0f
Commit
dc6b8b0f
authored
May 28, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
May 28, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Behat Test: Configuring journal entry page (Bug 1431569)"
parents
f00e77ca
ead68040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
test/behat/features/artefact/journal/journal_configuration.feature
...t/features/artefact/journal/journal_configuration.feature
+50
-0
No files found.
test/behat/features/artefact/journal/journal_configuration.feature
0 → 100644
View file @
dc6b8b0f
@javascript
@core
@core_content
Feature
:
Creating a journal entry and configuring the form
In order to change the configuration of my Journal entry
As a user
So I can benefit from the different settings
Scenario
:
Turning on and of switches in Journal configuration block (Bug 1431569)
Given
I log in as
"admin"
with password
"Password1"
# Navigating to switchbox in Journal block
And
I choose
"Journal"
in
"Content"
And
I follow
"New entry"
# Checking the default fields match
And the following fields match these values
:
|
Draft
|
0
|
|
Allow
comments
|
1
|
# Changing the switches once
And I set the following fields to these values
:
|
Draft
|
1
|
|
Allow
comments
|
0
|
# Changing the switches back
And I set the following fields to these values
:
|
Draft
|
0
|
|
Allow
comments
|
1
|
And
I press
"Save entry"
And
I should see
"There was an error with submitting this form. Please check the marked fields and try again."
Scenario
:
Creating a Journal entry
Given
I log in as
"admin"
with password
"Password1"
# Navigating to switchbox in Journal block
And
I choose
"Journal"
in
"Content"
And
I follow
"New entry"
# Checking the default fields match
And the following fields match these values
:
|
Title
*
|
|
|
Entry
*
|
|
|
Draft
|
0
|
|
Allow
comments
|
1
|
# Changing the switches once and filling out a journal
And I set the following fields to these values
:
|
Title
*
|
Story
of
my
life
|
|
Draft
|
1
|
|
Allow
comments
|
0
|
|
Entry
|
Preventing
bugs
from
appearing
:D
|
And
I press
"Save entry"
Write
Preview
Markdown
is supported
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