__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@tool_behat
Feature: Verify that keyboard steps work as expected
In order to use behat step definitions
As a test writer
I need to verify that the keyboard steps work as expected
@javascript
Scenario: Typing keys into a field causes them to be input
Given the following "users" exist:
| username | email | firstname | lastname | password |
| saffronr | saffron.rutledge@example.com | Saffron | Rutledge | flowerpower |
Given I click on "Log in" "link"
And I click on "Username" "field"
When I type "saffronr"
And I press the tab key
And I type "flowerpower"
And I press enter
Then I should see "You are logged in as Saffron Rutledge"
@javascript
Scenario: Using tab changes focus to the next or previous field
Given I click on "Log in" "link"
And I click on "Username" "field"
And the focused element is "Username" "field"
When I press the tab key
Then the focused element is "Password" "field"
And I press the shift tab key
And the focused element is "Username" "field"
@javascript
Scenario: Using the arrow keys allows me to navigate through menus
Given the following "users" exist:
| username | email | firstname | lastname |
| saffronr | saffron.rutledge@example.com | Saffron | Rutledge |
And I log in as "saffronr"
And I click on "User menu" "button" in the ".usermenu" "css_element"
When I press the up key
Then the focused element is "Log out" "link"
@javascript
Scenario: The escape key can be used to close a dialogue
Given the following "course" exists:
| fullname | C1|
| shortname | C1 |
And I log in as "admin"
And I am on "C1" course homepage
And I navigate to course participants
And I press "Enrol users"
And "Enrol users" "dialogue" should be visible
When I press the escape key
Then "Enrol users" "dialogue" should not be visible
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| fixtures | Folder | 0777 |
|
|
| data_generators.feature | File | 18.61 KB | 0777 |
|
| datetime_strings.feature | File | 1.08 KB | 0777 |
|
| edit_permissions.feature | File | 4.66 KB | 0777 |
|
| frozen_clock.feature | File | 3.16 KB | 0777 |
|
| get_and_set_fields.feature | File | 10.72 KB | 0777 |
|
| get_and_set_fields_in_containers.feature | File | 1.5 KB | 0777 |
|
| i_am_on_page.feature | File | 5.21 KB | 0777 |
|
| inplaceeditable.feature | File | 1.29 KB | 0777 |
|
| keyboard.feature | File | 1.93 KB | 0777 |
|
| list_steps.feature | File | 1.88 KB | 0777 |
|
| loginout.feature | File | 4.4 KB | 0777 |
|
| manipulate_forms.feature | File | 1.2 KB | 0777 |
|
| nasty_strings.feature | File | 2.4 KB | 0777 |
|
| tabs.feature | File | 1.25 KB | 0777 |
|
| test_environment.feature | File | 304 B | 0777 |
|