-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
keyboard.feature
30 lines (27 loc) · 1.26 KB
/
keyboard.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
@keyboard
Feature: Check that KeyboardTrait works
@api @javascript
Scenario: Assert step definition "Given I press the :keys keys on :selector" succeeds as expected
Given I am an anonymous user
When I visit "/sites/default/files/relative.html"
Then the "input1" field should not contain "hello"
When I press the "hello" keys on "#input1"
Then the "input1" field should contain "hello"
@api @javascript
Scenario: Assert step definition "Given I press the :char key on :selector" succeeds as expected
Given I am an anonymous user
When I visit "/sites/default/files/relative.html"
Then the "input1" field should not contain "hello"
When I press the "h" key on "#input1"
And I press the "e" key on "#input1"
And I press the "l" key on "#input1"
And I press the "l" key on "#input1"
And I press the "o" key on "#input1"
Then the "input1" field should contain "hello"
@api @javascript
Scenario: Assert step definition "Given I press the :char key" succeeds as expected
Given I am an anonymous user
When I visit "/sites/default/files/relative.html"
Then I should not see a visually hidden "#sr-only-focusable" element
When I press the "tab" key
And I should see a visually visible "#sr-only-focusable" element