Skip to content

Commit eff8250

Browse files
committed
- 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
1 parent 4378a24 commit eff8250

17 files changed

+249
-1326
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [3.0.0-rc.17] - 25/07/2022
2+
- Fix #257 - fixed issue when generating a step with a '$' sign in
3+
- Fix #256 - Ensure all exceptions generated when running a step are logged
4+
- Fix #253 - Ensure features with descriptions that span more than one line are parsed correctly
5+
- Fix #252 - Ensure all async code is awaited
6+
- When taking a screenshot on the web use the render element rather than relying on native code that does not work
7+
18
## [3.0.0-rc.16] - 01/07/2022
29
- Fix #231 - using local coordinate system when taking a screenshot on Android (thanks to @youssef-t for the solution)
310
- Fix #216 - ensure step exceptions and `expect` failure results are added as errors to the json report

example_with_integration_test/integration_test/features/failure.feature

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
@debug
2-
Feature: Expect failure
1+
Feature: Expect failures
32
Ensure that when a test fails the exception or test failure is reported
43

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

8+
@failure-expected
129
Scenario: Failed expect() should be added to json report
1310
Description for this scenario!
1411
When I tap the "add" button
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@debug
2+
Feature: Parsing
3+
Complex description:
4+
- Line "one".
5+
- Line two, more text
6+
- Line three
7+
8+
Scenario: Parsing a
9+
Given the text "^[A-Z]{3}\\d{5}\$"

example_with_integration_test/integration_test/features/swiping.feature

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@tag
22
Feature: Swiping
33

4-
@debug
54
Scenario: User can swipe cards left and right
65
Given I swipe right by 250 pixels on the "scrollable cards"`
76
Then I expect the text "Page 2" to be present

example_with_integration_test/integration_test/gherkin/configuration.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ import 'package:gherkin/gherkin.dart';
88
import 'hooks/reset_app_hook.dart';
99
import 'steps/expect_failure.dart';
1010
import 'steps/expect_todos_step.dart';
11+
import 'steps/given_text.dart';
1112
import 'steps/multiline_string_with_formatted_json.dart';
1213
import 'steps/when_await_animation.dart';
1314
import 'steps/when_step_has_timeout.dart';
1415
import 'world/custom_world.dart';
1516

1617
FlutterTestConfiguration gherkinTestConfiguration = FlutterTestConfiguration(
17-
// tagExpression: '@debug', // can be used to limit the tests that are run
18+
tagExpression: '@debug2', // can be used to limit the tests that are run
1819
stepDefinitions: [
1920
thenIExpectTheTodos,
2021
whenAnAnimationIsAwaited,
2122
whenStepHasTimeout,
2223
givenTheData,
24+
givenTheText,
2325
thenIExpectFailure,
2426
],
2527
hooks: [

example_with_integration_test/integration_test/gherkin/reports/2022-07-01T13-22-35-v1.json

-1
This file was deleted.

0 commit comments

Comments
 (0)