Commit Graph

176 Commits

Author SHA1 Message Date
Sarah Jamie Lewis bc846ee4df Add wait for text to be absent 2023-02-08 14:59:22 -08:00
Sarah Jamie Lewis f20a14f3d8 Formatting + Dropdown Widgets 2023-02-08 14:55:24 -08:00
Sarah Jamie Lewis 9b817676e4 debug 2023-01-31 20:24:33 -08:00
Sarah Jamie Lewis 46b9efda9f Increase Size 2023-01-31 19:25:14 -08:00
Sarah Jamie Lewis 1f0f798d5f Fix return 2023-01-31 19:22:12 -08:00
Sarah Jamie Lewis 62793908a7 resize 2023-01-31 19:13:57 -08:00
Sarah Jamie Lewis cdcdec9915 Resize Screenshot 2023-01-31 19:10:46 -08:00
Sarah Jamie Lewis 94b6d96468 Support Flutter 3, Fix Screenshots on Linux, Temp Fix for DropDowns, Have Contains Text actually search for wdigets Containing Text 2023-01-31 11:29:17 -08:00
Bart Vermeulen e8c874f0c0
Update lib/src/flutter/code_generation/generators/gherkin_suite_test_generator.dart
Co-authored-by: August Oberhauser <86839043+golane-august@users.noreply.github.com>
2022-12-24 21:03:49 +01:00
Bart Vermeulen b7c50bde9f
Update lib/src/flutter/code_generation/generators/gherkin_suite_test_generator.dart
Co-authored-by: August Oberhauser <86839043+golane-august@users.noreply.github.com>
2022-12-24 21:03:39 +01:00
Bart Vermeulen f42a15d482 Added the possibility to use flutter test instead of flutter drive 2022-12-07 19:55:11 +01:00
lsuhov a16595d8c4
Change scroll code to make it working also for AnimatedList
AnimatedList is not subclassing from ScrollView, and the seen behaviour was that nativeDriver.state was trying to ensure that a single state is available which is not true for AnimatedList. Regression test was performed on ListView.
2022-10-27 11:43:19 +03:00
Jon eff82509c7 - 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
2022-07-25 17:08:05 +10:00
Jon Samwell 4378a2447d
Merge pull request #244 from robert-virkus/integration_test__package_support
feat: add standard configuration for web
2022-07-12 15:51:09 +10:00
Jon Samwell c80557e291
Merge pull request #246 from youssef-t/integration_test__package_support
- Fix #245 - removing the redundant escaping
2022-07-12 15:50:39 +10:00
huy 8ae1e47fc7 --keep-app-running is no more avaliable 2022-07-12 12:44:03 +07:00
youssef-t be29f5af45 Fix redundant escaping 2022-07-06 17:38:42 +02:00
Robert Virkus ce1edacf59 feat: add standard configuration for web
This eases running tests on Flutter web #243
2022-07-06 09:42:25 +02:00
Jon 7ee9f801d1 - 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
  - Scenarios can now have descriptions which also appear in the json reporter output
2022-07-01 13:25:36 +10:00
Jon b73da409b3 fix(#231): Exposed `frameBindingPolicy` on the test runner when running tests which can affect how frames are painted and the speed of the test run, I've removed the default value which might be responsible for #231 2022-06-29 11:49:08 +10:00
Jon 66919d6539 fix(#237): remove reference to dart:html and gaurd stdout function so library works on web 2022-06-28 09:04:01 +10:00
Jon 9667db0df6 - Fix #235 - fix issue taking a screenshot on an Android device
- Resolved #170: Added example code to ensure json report is save to disk even when the test run fails. Also added script to generate a HTML report from a JSON report
2022-06-27 12:39:31 +10:00
Jon 6736af335e fix(#222): escape single quotation marks in data tables 2022-06-24 14:14:11 +10:00
Jon 1f63ecc858 - Fix #231 - Removed the use of explicitly calling `pumpAndSettle` in the pre-defined steps in favour of the implicit `pumpAndSettle` calls used in the `WidgetTesterAppDriverAdapter`.
- Added ability to add a `appLifecyclePumpHandler` to override the default handler that determines how the app is pumped during lifecycle events.  Useful if your app has a long splash screen etc. Parameter is on `executeTestSuite`.
  - Added ability to ensure feature paths are relative when generating reports `useAbsolutePaths` on the `GherkinTestSuite` attribute

* BREAKING CHANGE: The parameters on `executeTestSuite` are now keyed to allow for the above changes
2022-06-24 12:26:45 +10:00
Jon 2c5ba2a69e fix(app): pump and settle app after test to ensure finalisation can happen 2022-06-23 13:30:11 +10:00
Jon 551a4fc34c chore(lints): fixed linting and improved code quality
fix(reporters): fixed summary reporter being called after each feature
2022-06-20 11:46:48 +10:00
Jon 0961916daa feat(config): re-worked configuration so it can stay mostly immutable
- Fix #195: Adding missing export for `wait_until_key_exists_step.dart`
- Fix #226: Allow compatibility with dev and master flutter branches
- Feat #218: Allow retry steps in case of intermittent failure by setting the configuration properties `stepMaxRetries` & `retryDelay`
- Fix #210 & #191: Ability to take screenshots on web
- Fix #198: Allow the use of implicit pumpAndSettle methods in the app driver to be turned off using the configuration property `waitImplicitlyAfterAction`
2022-06-17 16:25:39 +10:00
Bart Vermeulen 5c15f0c2c0 Started on the dart_gherkin 3.0 conversion 2022-06-15 18:22:37 +02:00
Bart Vermeulen 6339791e9c Fixed the max retries to at least have 1 try and a delay has been added 2022-05-04 08:59:10 +02:00
Bart Vermeulen eb3827c369 Lint fixes 2022-05-04 08:38:02 +02:00
Bart Vermeulen 06d6908507 Max attempts can be changed by the user 2022-05-03 19:53:21 +02:00
Bart Vermeulen 3772e89b9c The test case gets retried 3 times and the other steps will get skipped 2022-05-03 19:39:22 +02:00
Bart Vermeulen 434db8405c
Added path support 2022-03-14 22:32:55 +01:00
Gustl22 55c19dc870 Allow disabling handle semantics in testWidgets 2022-02-05 18:47:49 +01:00
Jon Samwell 09b2a47452
Merge pull request #187 from AFASbart/fix_deprated
Code generation variables put on deprecated.
2022-01-07 08:53:42 +11:00
Bart Vermeulen 7f809daaba
Changed consistency of @deprecated 2021-12-21 16:06:48 +01:00
Bart Vermeulen 8c43d91bf7 Fixed unnecessary assignment in runScenario 2021-12-21 15:21:52 +01:00
Bart Vermeulen 4ef9105584 Reversed the path change for this pull request. 2021-12-17 16:19:00 +01:00
Jon Samwell c5d9197241 fix(generation): fix when generating empty feature files 2021-11-18 15:17:57 +11:00
Bart Vermeulen a586cb48e4 updated isNotEmpty 2021-11-13 22:36:37 +01:00
Bart Vermeulen 220dfd7fe1 Fixed an issue with code generation.
Fixed issue #165
2021-11-12 14:29:19 +01:00
Jon Samwell 29eeb73f39 - Fix: #165: Empty .feature files causing void functions which get compiled out at runtime and cause errors
- Fix: #162: Incorrect feature name in HTML reports - many thanks to @AFASbart for suggesting the cause and fix.
- Fix: #159: Swipe step is not working due to bad '??' statement
- Fix: #155: Ensure stdout reporter only add ascii colour code when the target supports it
2021-11-10 11:14:17 +11:00
Jon Samwell 2db755d23b - BREAKING CHANGE: Made `appMainFunction` return a `Future<void>` so it can be async
- Fix: #159: Swipe step not working
- Ensure Hook.onBeforeRun is called before the run starts
- Set Frame policy- defaults to `LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive` to slightly improve performance
2021-10-27 20:13:49 +11:00
Jon Samwell 3c0e1c6270 fix(runner): Ensure scenario support files (world etc) as always disposed ensure when test throws error 2021-09-16 11:37:16 +10:00
Jon Samwell ed88094462 chore(debug): removed debug code 2021-09-15 15:14:22 +10:00
Jon Samwell 0f99f0f343 fix(#150 #141 #128): fixed handling of json in multiline string and improved and added example of generating html report 2021-09-15 14:32:48 +10:00
Jon Samwell 359c800e54 chore(lint): various code liniting changes 2021-05-25 17:16:27 +10:00
Jon Samwell 6d54ef7799 chore(rename): renamed rawDriver -> nativeDriver 2021-05-25 17:13:33 +10:00
Jon Samwell cfb9febe66 chore(dependencies): updates to pubspec to allow alpha release 2021-05-25 17:10:34 +10:00
Jon Samwell a2dd3213b0 chore(null-safety): more fixes
fix(adapters): fixed an issue with the pumpAndSettle method
2021-05-25 16:59:51 +10:00