This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
text-content.feature
67 lines (51 loc) · 2.33 KB
/
text-content.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Feature: Text content
===
Scenario: Element text content can be asserted to be equal to a string, ignoring case and surrounding whitespace
---
When I navigate to "assertions"
Then "element text" text should be "element text content"
And "element text" text should be " ELEMENT TEXT CONTENT "
Scenario: Element text content can be asserted to be inequal to a string, ignoring case and surrounding whitespace
---
When I navigate to "assertions"
Then "element text" text should not be "different text content"
Scenario: Element text content can be asserted to contain a string, ignoring case but not surrounding whitespace
---
When I navigate to "assertions"
Then "element text" text should contain "text content"
Then "element text" text should contain "TEXT CONTENT"
Then "element text" text should not contain " text content "
Scenario: Element text content can be asserted to not contain a string, ignoring case but not surrounding whitespace
---
When I navigate to "assertions"
Then "element text" text should not contain "different text content"
Then "element text" text should not contain " DIFFERENT TEXT CONTENT "
Then "element text" text should contain " text content"
Scenario: Inline data tables can be used to assert that element text content is equal to a string, ignoring case and surrounding whitespace
---
When I navigate to "assertions"
Then elements text should be:
| element | value |
| element text | element text content |
| another text | another text content |
Scenario: Inline data tables can be used to assert that element text content is not equal to a string, ignoring case and surrounding whitespace
---
When I navigate to "assertions"
Then elements text should not be:
| element | value |
| element text | another text content |
| another text | element text content |
Scenario: Inline data tables can be used to assert that element text content contains a string, ignoring case
---
When I navigate to "assertions"
And elements text should contain:
| element | value |
| element text | element |
| another text | another |
Scenario: Inline data tables can be used to assert that element text content does not contain a string, ignoring case
---
When I navigate to "assertions"
And elements text should not contain:
| element | value |
| element text | another |
| another text | element |