-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
metatag.feature
43 lines (40 loc) · 1.57 KB
/
metatag.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
Feature: Check that MetaTagTrait works
@api
Scenario: Assert that a meta tag with specific attributes and values exists/does not exist.
Given I visit "/"
Then I should see a meta tag with the following attributes:
| name | MobileOptimized |
| content | width |
And I should not see a meta tag with the following attributes:
| name | Non_Existing |
| content | width |
@trait:MetaTagTrait
Scenario: Assert that negative assertion for "I should not see a meta tag with the following attributes:" fails with an error
Given some behat configuration
And scenario steps:
"""
Given I visit "/"
Then I should not see a meta tag with the following attributes:
| name | MobileOptimized |
| content | width |
"""
When I run "behat --no-colors"
Then it should fail with an error:
"""
Meta tag with specified attributes should not exist: {"name":"MobileOptimized","content":"width"}
"""
@trait:MetaTagTrait
Scenario: Assert that negative assertion for "I should see a meta tag with the following attributes:" fails with an error
Given some behat configuration
And scenario steps:
"""
Given I visit "/"
Then I should see a meta tag with the following attributes:
| name | Non_Existing |
| content | width |
"""
When I run "behat --no-colors"
Then it should fail with an error:
"""
Meta tag with specified attributes was not found: {"name":"Non_Existing","content":"width"}
"""