Commit c744c3fd authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Behat test: Moving group pages (Bug 1426983)"

parents 1dfa5482 e10abeb2
@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"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment