-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy patheck.feature
49 lines (45 loc) · 1.79 KB
/
eck.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
39
40
41
42
43
44
45
46
47
48
49
Feature: Check that EckTrait works
Background:
Given no test_bundle test_entity_type entities:
| title |
| [TEST] ECK Entity |
And "tags" terms:
| name |
| T2 |
And test_bundle test_entity_type entities:
| title | field_test_text | field_test_reference |
| [TEST] ECK test1 | Test text field | T2 |
@api
Scenario: Assert "When I edit :bundle :entity_type with title :label"
Given I am logged in as a user with the "administrator" role
When I edit test_bundle test_entity_type with title "[TEST] ECK test1"
Then I should see "Edit test bundle [TEST] ECK test1"
And I visit test_bundle test_entity_type with title "[TEST] ECK test1"
And I should see "[TEST] ECK test1"
And I should see "T2"
@api @trait:EckTrait
Scenario: Assert navigate to entity type with specified bundle and title.
Given some behat configuration
And scenario steps tagged with "@api":
"""
Given I am logged in as a user with the "administrator" role
When I visit "test_bundle" "test_entity_type" with title "[Test] Entity Custom"
"""
When I run "behat --no-colors"
Then it should fail with an exception:
"""
Unable to find test_entity_type page "[Test] Entity Custom"
"""
@api @trait:EckTrait
Scenario: Assert edit to entity type with specified bundle and title.
Given some behat configuration
And scenario steps tagged with "@api":
"""
Given I am logged in as a user with the "administrator" role
When I edit "test_bundle" "test_entity_type" with title "[Test] Entity Custom"
"""
When I run "behat --no-colors"
Then it should fail with an exception:
"""
Unable to find test_entity_type page "[Test] Entity Custom"
"""