mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-80315-402' of https://github.com/andelacruz/moodle into MOODLE_402_STABLE
This commit is contained in:
commit
6193d59626
2 changed files with 5 additions and 27 deletions
|
@ -25,11 +25,16 @@ Feature: Add a comment to the comments block
|
||||||
Scenario: Add a comment with Javascript enabled
|
Scenario: Add a comment with Javascript enabled
|
||||||
When I add "I'm a comment from student1" comment to comments block
|
When I add "I'm a comment from student1" comment to comments block
|
||||||
Then I should see "I'm a comment from student1"
|
Then I should see "I'm a comment from student1"
|
||||||
|
And I am on the "Course 1" course page logged in as teacher1
|
||||||
|
And I should see "I'm a comment from student1"
|
||||||
|
|
||||||
Scenario: Add a comment with Javascript disabled
|
Scenario: Add a comment with Javascript disabled
|
||||||
When I follow "Show comments"
|
When I follow "Show comments"
|
||||||
And I add "I'm a comment from student1" comment to comments block
|
And I add "I'm a comment from student1" comment to comments block
|
||||||
Then I should see "I'm a comment from student1"
|
Then I should see "I'm a comment from student1"
|
||||||
|
And I am on the "Course 1" course page logged in as teacher1
|
||||||
|
And I follow "Show comments"
|
||||||
|
And I should see "I'm a comment from student1"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Test comment block pagination
|
Scenario: Test comment block pagination
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
@block @block_comments
|
|
||||||
Feature: Enable Block comments on a course page and view comments
|
|
||||||
In order to enable the comments block on a course page
|
|
||||||
As a teacher
|
|
||||||
I can add the comments block to the course page
|
|
||||||
|
|
||||||
Scenario: Add the comments block on the course page and add comments
|
|
||||||
Given the following "courses" exist:
|
|
||||||
| fullname | shortname | category |
|
|
||||||
| Course 1 | C1 | 0 |
|
|
||||||
And the following "users" exist:
|
|
||||||
| username | firstname | lastname | email |
|
|
||||||
| teacher1 | Teacher | Frist | teacher1@example.com |
|
|
||||||
| student1 | Student | First | student1@example.com |
|
|
||||||
And the following "course enrolments" exist:
|
|
||||||
| user | course | role |
|
|
||||||
| teacher1 | C1 | editingteacher |
|
|
||||||
| student1 | C1 | student |
|
|
||||||
And the following "blocks" exist:
|
|
||||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
||||||
| comments | Course | C1 | course-view-* | side-pre |
|
|
||||||
And I am on the "Course 1" course page logged in as teacher1
|
|
||||||
And I follow "Show comments"
|
|
||||||
And I add "I'm a comment from the teacher" comment to comments block
|
|
||||||
When I am on the "Course 1" course page logged in as student1
|
|
||||||
And I follow "Show comments"
|
|
||||||
Then I should see "I'm a comment from the teacher"
|
|
Loading…
Add table
Add a link
Reference in a new issue