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
c744c3fd
Commit
c744c3fd
authored
May 05, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
May 05, 2015
Browse files
Merge "Behat test: Moving group pages (Bug 1426983)"
parents
1dfa5482
e10abeb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/group/moving_pages_between_groups.feature
0 → 100644
View file @
c744c3fd
@javascript
@core
@core_group
Feature
:
Move posts between forums within groups
In order to move posts between forum
As an admin create a group with a forum
So I can create different posts and move them around
Scenario
:
Moving pages within a group (Bug 1426983)
# Log in as "Admin" user
Given
I log in as
"admin"
with password
"Password1"
# Verifying log in was successful
And
I should see
"Admin user"
# Creating a group
When
I follow
"Groups"
And
I follow
"Create group"
And I fill in the following
:
|
Group
name
|
Testing
Group
1
|
And
I
press
"Save
group"
# Creating a forum
And
I follow
"Forums(tab)"
And
I follow
"New forum"
And I fill in the following
:
|
Title
|
Testing
forum
1
|
And
I
fill
in
"Testing
forum"
in
WYSIWYG
editor
"edit_interaction_description_ifr"
And
I press
"Save"
And
I follow
"Forums(tab selected)"
And
I follow
"General discussion"
And
I follow
"New topic"
And I fill in the following
:
|
Subject
|
Testing
topic
1
|
And
I
fill
in
"Testing
moving
topic"
in
WYSIWYG
editor
"addtopic_body_ifr"
And
I press
"Post"
# Verifying post has been created
And
I follow
"General discussion"
And
I should see
"Testing topic 1"
# Checking topic 1 checkbox
And
I check
"Testing topic 1"
And
I select
"Move to"
from
"action"
And
I should see
"Testing forum 1"
And
I press
"Update selected topics"
# Verifying topic has moved to Testing forum 1
Then
I follow
"Forums"
And
I follow
"Testing forum 1"
And
I should see
"Testing topic 1"
# Checking link can be followed
And
I follow
"Testing topic 1"
And
I should see
"Testing moving topic"
And I should see "Posts
:
1"
And
I follow
"Groups"
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