2022-06-29 10:17:29 +00:00
|
|
|
@app @javascript
|
|
|
|
Feature: It has a Behat runtime with testing helpers.
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the following "users" exist:
|
|
|
|
| username |
|
|
|
|
| student1 |
|
|
|
|
|
|
|
|
Scenario: Finds and presses elements
|
|
|
|
Given I entered the app as "student1"
|
2022-07-12 08:25:13 +00:00
|
|
|
And I press "Search courses" in the app
|
2022-06-29 10:17:29 +00:00
|
|
|
When I set the following fields to these values in the app:
|
2022-07-12 08:25:13 +00:00
|
|
|
| Search | Foo bar |
|
2022-06-29 10:17:29 +00:00
|
|
|
Then I should find "Search" "button" in the app
|
|
|
|
And I should find "Clear search" in the app
|
|
|
|
And I should be able to press "Search" "button" in the app
|
|
|
|
But I should not be able to press "Clear search" in the app
|