Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
8e31c017
Commit
8e31c017
authored
Sep 30, 2015
by
David Monllaó
Browse files
MDL-9070 mod_forum: Reducing it to a single scenario
parent
15791dff
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/forum/tests/behat/timed_discussions.feature
View file @
8e31c017
@mod
@mod_forum
Feature
:
Users can choose to set start and end time for display of their discussions
In order to see timed forum discussions
As a user
I need to view the page within the window
As a user with viewhiddentimedposts
I need to see the timed discussion tooltips
In order to temporarly hide discussions to students
As a teacher
I need to set a discussion time start and time end
Background
:
Scenario
:
Student should not see the tooltip or the discussion
Given the following "users" exist
:
|
username
|
firstname
|
lastname
|
email
|
|
student1
|
Student
|
1
|
student1@example.com
|
...
...
@@ -37,22 +35,17 @@ Feature: Users can choose to set start and end time for display of their discuss
|
Subject
|
Discussion
3
timed
visible
now
|
|
Message
|
Discussion
contents
3,
first
message
|
|
timestart[enabled]
|
1
|
Scenario
:
Creator of the discussion should see the tooltip
Given
I am on site homepage
And
I am on site homepage
And
I follow
"Course 1"
And
I follow
"Test forum name"
Then
I should see
"Discussion 2 timed"
And
I should see
"Discussion 2 timed"
And
I should see
"Discussion 3 timed"
And
".timedpost"
"css_element"
should exist
Scenario
:
Student should not see the tooltip or the discussion
Given
I log out
And
I log out
And
I log in as
"student1"
And
I follow
"Course 1"
Given
I follow
"Test forum name"
And
I should see
"Discussion 1"
Then
I should not see
"Discussion 2 timed"
When
I follow
"Course 1"
And
I follow
"Test forum name"
Then
I should see
"Discussion 1"
And
I should not see
"Discussion 2 timed"
And
".timedpost"
"css_element"
should not exist
But
I should see
"Discussion 3 timed"
And
I should see
"Discussion 3 timed"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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