-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
13 changes: 13 additions & 0 deletions
13
unimeals/test_driver/features/goToRestaurantButton.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Feature: Forward Button to restaurants pages | ||
The button should go to the page of the restaurant clicked | ||
|
||
Scenario Outline: Forward Button redirects you to the page of the restaurant | ||
Given I expect to be in the main page | ||
When I tap the button button forward | ||
Then I expect to be redirected to the <restaurantPage> page | ||
|
||
Examples: | ||
| restaurantPage | | ||
| "Grill" | | ||
| "Cafetaria - Restaurante Feup" | | ||
| "Restaurante do INEGI" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:flutter_driver/flutter_driver.dart'; | ||
import 'package:flutter_gherkin/flutter_gherkin.dart'; | ||
import 'package:gherkin/gherkin.dart'; | ||
|
||
StepDefinitionGeneric GoFoward() { | ||
return when1<String,FlutterWorld>("I expect to be in the <string> restaurant page", (key, context) async { | ||
final locator = find.byValueKey(key); | ||
await FlutterDriverUtils.tap(context.world.driver, locator); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:flutter_driver/flutter_driver.dart'; | ||
import 'package:flutter_gherkin/flutter_gherkin.dart'; | ||
import 'package:gherkin/gherkin.dart'; | ||
|
||
StepDefinitionGeneric TapButton() { | ||
return when1<String,FlutterWorld>("I tap the <string> back button", (key, context) async { | ||
final locator = find.byValueKey(key); | ||
await FlutterDriverUtils.tap(context.world.driver, locator); | ||
}); | ||
} |