parent
609d23b110
commit
ae46fec51f
@ -0,0 +1,24 @@ |
|||||||
|
|
||||||
|
Feature: Course category |
||||||
|
|
||||||
|
Background: |
||||||
|
Given I am a platform administrator |
||||||
|
|
||||||
|
Scenario: Add a course category |
||||||
|
Given I am on "/main/admin/course_category.php?action=add" |
||||||
|
And I should see "Add category" |
||||||
|
When I fill in the following: |
||||||
|
| code | COURSE_CATEGORY | |
||||||
|
| name | Course category | |
||||||
|
Then I fill in editor field "description" with "description" |
||||||
|
Then I attach the file "/public/img/logo.png" to "picture" |
||||||
|
And I press "submit" |
||||||
|
And wait for the page to be loaded |
||||||
|
Then I should see "Item added" |
||||||
|
|
||||||
|
Scenario: Delete course category |
||||||
|
Given I am on "/main/admin/course_category.php" |
||||||
|
Then I should see "Course category" |
||||||
|
Then I follow "Delete" |
||||||
|
And wait for the page to be loaded |
||||||
|
Then I should see "There are no categories here" |
Loading…
Reference in new issue