/
sandbox.feature
38 lines (31 loc) · 1.31 KB
/
sandbox.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@local @local_sandbox
Feature: Sandbox pugin.
Background:
Given I visit "/local/sandbox/index.php"
Scenario: It works.
Then I should see "Sandbox Plugin"
Scenario: It has a table that does not exist (this should fail).
Then the following should exist in the "doesnotexist" table:
| Name |
| thisdoesnotexist |
Scenario: It has a table of users (this should pass).
Then the following should exist in the "users" table:
| Name |
| John Doe |
| Amy Doe |
Scenario: It has a table of users with roles (this should pass).
Then the following should exist in the "users" table:
| Name | Role |
| John Doe | Student |
| Amy Doe | Teacher |
Scenario: It has a table of user names with roles (this should pass).
Then the following should exist in the "users" table:
| Name | Role |
| John | Student |
| Amy | Teacher |
Scenario: It has a table of competencies (this should pass).
Then the following should exist in the "competencies" table:
| Name | Rating | Proficient |
| Salads salads Path: Cookery / | Good | Yes |
| Desserts desserts Path: Cookery / | Great | Yes |
| Cakes cakes Path: Cookery / | Great | Yes |