Skip to content

Commit

Permalink
- Fix #257 - fixed issue when generating a step with a '$' sign in
Browse files Browse the repository at this point in the history
  - Fix #256 - Ensure all exceptions generated when running a step are logged
  - Fix #253 - Ensure features with descriptions that span more than one line are parsed correctly
  - Fix #252 - Ensure all async code is awaited
  - When taking a screenshot on the web use the render element rather than relying on native code that does not work
  • Loading branch information
jonsamwell committed Jul 25, 2022
1 parent 4378a24 commit eff8250
Show file tree
Hide file tree
Showing 17 changed files with 249 additions and 1,326 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [3.0.0-rc.17] - 25/07/2022
- Fix #257 - fixed issue when generating a step with a '$' sign in
- Fix #256 - Ensure all exceptions generated when running a step are logged
- Fix #253 - Ensure features with descriptions that span more than one line are parsed correctly
- Fix #252 - Ensure all async code is awaited
- When taking a screenshot on the web use the render element rather than relying on native code that does not work

## [3.0.0-rc.16] - 01/07/2022
- Fix #231 - using local coordinate system when taking a screenshot on Android (thanks to @youssef-t for the solution)
- Fix #216 - ensure step exceptions and `expect` failure results are added as errors to the json report
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
@debug
Feature: Expect failure
Feature: Expect failures
Ensure that when a test fails the exception or test failure is reported

@failure-expected
Scenario: Exception should be added to json report
Given I expect the todo list
| Todo |
| Buy blueberries |
When I tap the "add" button
And I fill the "todo" field with "Buy hannah's apples"
When I tap the "button is not here but exception should be logged in report" button

@failure-expected
Scenario: Failed expect() should be added to json report
Description for this scenario!
When I tap the "add" button
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@debug
Feature: Parsing
Complex description:
- Line "one".
- Line two, more text
- Line three

Scenario: Parsing a
Given the text "^[A-Z]{3}\\d{5}\$"
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@tag
Feature: Swiping

@debug
Scenario: User can swipe cards left and right
Given I swipe right by 250 pixels on the "scrollable cards"`
Then I expect the text "Page 2" to be present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ import 'package:gherkin/gherkin.dart';
import 'hooks/reset_app_hook.dart';
import 'steps/expect_failure.dart';
import 'steps/expect_todos_step.dart';
import 'steps/given_text.dart';
import 'steps/multiline_string_with_formatted_json.dart';
import 'steps/when_await_animation.dart';
import 'steps/when_step_has_timeout.dart';
import 'world/custom_world.dart';

FlutterTestConfiguration gherkinTestConfiguration = FlutterTestConfiguration(
// tagExpression: '@debug', // can be used to limit the tests that are run
tagExpression: '@debug2', // can be used to limit the tests that are run
stepDefinitions: [
thenIExpectTheTodos,
whenAnAnimationIsAwaited,
whenStepHasTimeout,
givenTheData,
givenTheText,
thenIExpectFailure,
],
hooks: [
Expand Down

This file was deleted.

Loading

0 comments on commit eff8250

Please sign in to comment.