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
/
Copy pathselect.feature
67 lines (51 loc) · 2.19 KB
/
select.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: Select inputs
===
Scenario: Select inputs can be set by value
---
Given I navigate to "input actions"
And I set "select input" to "option 2 value"
When I click "submit button"
Then "submitted select" text should be "option 2 value"
Scenario: Invisible select inputs can be set by value when they have a force attribute
---
Given I navigate to "input actions"
And "invisible-select input" should not be visible
And I set "invisible-select input" to "option 2 value"
When I click "submit button"
Then "submitted invisible-select" text should be "option 2 value"
Scenario: Select inputs with the test element attribute set on an ancestor can be set by value
---
Given I navigate to "input actions"
And I set "wrapped-select input" to "option 2 value"
When I click "submit button"
Then "submitted wrapped-select" text should be "option 2 value"
Scenario: Select inputs can be set by label
---
Given I navigate to "input actions"
And I set "select input" to "option 2 label"
When I click "submit button"
Then "submitted select" text should be "option 2 value"
Scenario: Multi-select inputs can be set by value
---
Given I navigate to "input actions"
And I set "multi-select input" to "option 2 value, option 3 value"
When I click "submit button"
Then "submitted multi-select" text should be "option 2 value; option 3 value"
Scenario: Multi-select inputs can be set by label
---
Given I navigate to "input actions"
And I set "multi-select input" to "option 2 label, option 3 label"
When I click "submit button"
Then "submitted multi-select" text should be "option 2 value; option 3 value"
Scenario: Select input value can be asserted to be equal to its string value
---
Given I navigate to "input assertions"
And "select input" should be set to "option 1 value"
When I set "select input" to "option 2 value"
Then "select input" should be set to "option 2 value"
Scenario: Multi-select input value can be asserted to be equal to a comma-delimited string of the selected values
---
Given I navigate to "input assertions"
And "multi-select input" should be set to "option 1 value"
When I set "multi-select input" to "option 2 value, option 3 value"
Then "multi-select input" should be set to "option 2 value, option 3 value"