Skip to content

fix(UX-1105): Updated search bar to use internal text field #596

fix(UX-1105): Updated search bar to use internal text field

fix(UX-1105): Updated search bar to use internal text field #596

Triggered via pull request October 14, 2024 11:40
@mikecoombermikecoomber
opened #186
Status Failure
Total duration 2m 51s
Artifacts

pull-request.yml

on: pull_request_target
Deploy preview version of the storybook on firebase
0s
Deploy preview version of the storybook on firebase
Fit to window
Zoom out
Zoom in

Annotations

1 error
code-quality
⛔️ - Static analysis failed; 1 issue found.</br> <details><summary>See details</summary> <table> <tr><th></th><th>Type</th><th>File name</th><th>Details</th></tr><tr><td>ℹ️</td><td>Error</td><td>example/widgetbook/pages/components/search_bar_widgetbook.dart:52:17</td><td>info</td></tr></table></details> ; ⛔️ - 10 tests failed</br > <details><summary>See details</summary> <details><summary>ZetaSearchBar renders with default parameters</br></summary>`══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════<br>The following TestFailure was thrown running a test:<br>Expected: exactly one matching candidate<br> Actual: _TypeWidgetFinder:<Found 0 widgets with type "TextFormField": []><br> Which: means none were found but one was expected<br><br>When the exception was thrown, this was the stack:<br>#4 main.<anonymous closure>.<anonymous closure> (file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/search_bar/search_bar_test.dart:50:7)<br><asynchronous suspension><br>#5 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:189:15)<br><asynchronous suspension><br>#6 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)<br><asynchronous suspension><br><asynchronous suspension><br>(elided one frame from package:stack_trace)<br><br>This was caught by the test expectation on the following line:<br> file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/search_bar/search_bar_test.dart line 50<br>The test description was:<br> renders with default parameters<br>════════════════════════════════════════════════════════════════════════════════════════════════════`</details><details><summary>ZetaSearchBar golden: renders initializes correctly</br></summary>`══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════<br>The following TestFailure was thrown running a test:<br>Expected: one widget whose rasterized image matches golden image<br>"file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/search_bar/golden/search_bar_default.png"<br> Actual: _TypeWidgetFinder:<Found 1 widget with type "ZetaSearchBar": [<br> ZetaSearchBar(requirementLevel: none, controller: null, size: medium, shape: rounded,<br>initialValue: "", showSpeechToText: true, focusNode: null, textInputAction: null,<br>microphoneSemanticLabel: null, clearSemanticLabel: null, placeholder: null, dependencies:<br>[UnmanagedRestorationScope, Zeta], state: _ZetaSearchBarState#c9a75(effectiveController:<br>TextEditingController#018eb(TextEditingValue(text: ┤├, selection: TextSelection.invalid, composing:<br>TextRange(start: -1, end: -1))))),<br> ]><br> Which: does not match<br><br>When the exception was thrown, this was the stack:<br>#0 fail (package:matcher/src/expect/expect.dart:149:31)<br>#1 _expect.<anonymous closure> (package:matcher/src/expect/expect.dart:125:9)<br><asynchronous suspension><br><asynchronous suspension><br>#8 expectLater.<anonymous closure> (package:flutter_test/src/widget_tester.dart:518:24)<br><asynchronous suspension><br>#9 main.<anonymous closure>.<anonymous closure> (file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/search_bar/search_bar_test.dart:61:7)<br><asynchronous suspension><br>#10 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:189:15)<br><asynchronous suspension><br>#11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)<br><asynchronous suspension><br><asynchronous suspension><br>(elided 7 frames from dart:async and package:stack_trace)<br><br>The test description was:<br> golden: renders initializes correctly<br>════════════════════════════════════════════════════════════════════════════════════════════════════`</details><details><summary>ZetaSearchBar golden: renders size medium correctly</br></summary>`══