MOBILE-4110 comments: Use behat generators
parent
9d1d41348f
commit
97be254b72
|
@ -220,22 +220,9 @@ Feature: Test basic usage of comments in app
|
|||
|
||||
Scenario: Add comments & Delete comments (blogs)
|
||||
# Create blog as a teacher
|
||||
Given the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion | configdata |
|
||||
| blog_menu | Course | C1 | course-view-* | site-pre | |
|
||||
And I entered the course "Course 1" as "teacher1" in the app
|
||||
And I press "Course summary" in the app
|
||||
# TODO Create and use a generator blog entries.
|
||||
And I press "Open in browser" in the app
|
||||
And I switch to the browser tab opened by the app
|
||||
And I log in as "teacher1"
|
||||
And I click on "Open block drawer" "button"
|
||||
And I click on "Add an entry about this course" "link" in the "Blog menu" "block"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | Blog test |
|
||||
| Blog entry body | Blog body |
|
||||
And I press "Save changes"
|
||||
And I close the browser tab opened by the app
|
||||
Given the following "core_blog > entries" exist:
|
||||
| subject | body | user |
|
||||
| Blog test | Blog body | teacher1 |
|
||||
|
||||
# Create and delete comments as a student
|
||||
When I entered the app as "student1"
|
||||
|
@ -263,21 +250,9 @@ Feature: Test basic usage of comments in app
|
|||
|
||||
Scenario: Add comments offline & Delete comments offline & Sync comments (blogs)
|
||||
# Create blog as a teacher
|
||||
Given the following "blocks" exist:
|
||||
| blockname | contextlevel | reference | pagetypepattern | defaultregion | configdata |
|
||||
| blog_menu | Course | C1 | course-view-* | site-pre | |
|
||||
And I entered the course "Course 1" as "teacher1" in the app
|
||||
And I press "Course summary" in the app
|
||||
And I press "Open in browser" in the app
|
||||
And I switch to the browser tab opened by the app
|
||||
And I log in as "teacher1"
|
||||
And I click on "Open block drawer" "button"
|
||||
And I click on "Add an entry about this course" "link" in the "Blog menu" "block"
|
||||
And I set the following fields to these values:
|
||||
| Entry title | Blog test |
|
||||
| Blog entry body | Blog body |
|
||||
And I press "Save changes"
|
||||
And I close the browser tab opened by the app
|
||||
Given the following "core_blog > entries" exist:
|
||||
| subject | body | user |
|
||||
| Blog test | Blog body | teacher1 |
|
||||
|
||||
# Create and delete comments as a student
|
||||
When I entered the app as "student1"
|
||||
|
|
Loading…
Reference in New Issue