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
3fa0c1dd
Commit
3fa0c1dd
authored
Apr 01, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Apr 01, 2015
Browse files
Merge "Behat Test: Switches on edit forum page (Bug 1431569)"
parents
9538c6a0
e908391c
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/group/switches_edit_forum.feature
0 → 100644
View file @
3fa0c1dd
@javascript
@core
@core_group
Feature
:
Switching switch on and off when editing a forum
In order to automatically subscribe users via switchbox
As an admin
I need to be able to flick the switch on and off
Scenario
:
Turning on and off switches in the group forums tab (Bug 1431569)
Given
I log in as
"admin"
with password
"Password1"
And
I choose
"My groups"
in
"Groups"
And
I follow
"Create group"
And I set the following fields to these values
:
|
Group
name
|
Turtles
|
When
I
press
"Save
group"
And
I follow
"Forums"
And
I follow
"General discussion"
And
I follow
"Edit forum"
# There are 2 settings links on the page and it needs to identify which one to follow
And
I follow
"Forum settings"
# Checking "Automatically subscribe users" swtichbox is on by default
And
the
"edit_interaction_autosubscribe"
checkbox should be checked
# Checking it can be turned off
When
I uncheck
"edit_interaction_autosubscribe"
# Checking it can turn back on
Then
I check
"edit_interaction_autosubscribe"
# Verifying that it did turn back on
And
the
"edit_interaction_autosubscribe"
checkbox should be checked
# Checking off is the default setting on the close new topics checkbox
And
the
"edit_interaction_closetopics"
checkbox should not be checked
# Checking it turns on
And
I check
"edit_interaction_closetopics"
# Checking it turns back off
And
I uncheck
"edit_interaction_closetopics"
And
I press
"Save"
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