Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing PR action DO NOT MERGE #224

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

testing PR action DO NOT MERGE #224

wants to merge 1 commit into from

Conversation

DE7924
Copy link
Contributor

@DE7924 DE7924 commented Dec 13, 2024

No description provided.

Copy link
Contributor

PR Checks complete

  • ✅ - Linting / Formatting
  • ⛔️ - Static analysis failed; 1 issue found.
    See details
    TypeFile nameDetails
    ℹ️Errorlib/src/components/buttons/button.dart:231:17info
  • ⛔️ - 9 tests failed
    See details
    Golden Tests navigation_bar_action golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/navigation_bar/golden/navigation_bar_action.png"
    Actual: _TypeWidgetFinder: ZetaNavigationBar(rounded: null, items: [Instance of 'ZetaNavigationBarItem', Instance
    of 'ZetaNavigationBarItem', Instance of 'ZetaNavigationBarItem', Instance of
    'ZetaNavigationBarItem'], currentIndex: null, splitItems: false, dividerIndex: null, semanticLabel:
    null, shrinkItems: false, useSafeArea: true, dependencies: [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    navigation_bar_action golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Content Tests Initializes with correct Label
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: exactly one matching candidate
    Actual: _TextWidgetFinder:
    Which: means none were found but one was expected

    When the exception was thrown, this was the stack:
    icons/test-1 #4 main.. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/button_test.dart:43:7)

    icons/test-1 #5 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    bump version #6 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided one frame from package:stack_trace)

    This was caught by the test expectation on the following line:
    file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/button_test.dart line 43
    The test description was:
    Initializes with correct Label
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Golden Tests button_primary golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/golden/button_primary.png"
    Actual: _TypeWidgetFinder: ZetaButton(rounded: null, label: "Test Button", has onPressed, type: primary,
    borderType: null, size: medium, leadingIcon: null, trailingIcon: null, focusNode: null,
    semanticLabel: null, dependencies: [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    button_primary golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Golden Tests button_positive golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/golden/button_positive.png"
    Actual: _TypeWidgetFinder: ZetaButton(rounded: null, label: "Test Button", has onPressed, type: positive,
    borderType: null, size: medium, leadingIcon: null, trailingIcon: IconData(U+F04B6), focusNode: null,
    semanticLabel: null, dependencies: [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    button_positive golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Golden Tests button_outline golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/golden/button_outline.png"
    Actual: _TypeWidgetFinder: ZetaButton(rounded: null, label: "Test Button", has onPressed, type: outline,
    borderType: null, size: large, leadingIcon: null, trailingIcon: null, focusNode: null,
    semanticLabel: null, dependencies: [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    button_outline golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Golden Tests button_outline_subtle golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/golden/button_outline_subtle.png"
    Actual: _TypeWidgetFinder: ZetaButton(rounded: null, label: "Test Button", type: outlineSubtle, borderType: sharp,
    size: medium, leadingIcon: null, trailingIcon: null, focusNode: null, semanticLabel: null,
    dependencies: [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    button_outline_subtle golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Golden Tests button_text golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/golden/button_text.png"
    Actual: _TypeWidgetFinder: ZetaButton(rounded: null, label: "Test Button", has onPressed, type: text, borderType:
    full, size: medium, leadingIcon: null, trailingIcon: null, focusNode: null, semanticLabel: null,
    dependencies: [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    button_text golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Golden Tests button_disabled golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/button/golden/button_disabled.png"
    Actual: _TypeWidgetFinder: ZetaButton(rounded: null, label: "Test Button", type: text, borderType: full, size:
    medium, leadingIcon: null, trailingIcon: null, focusNode: null, semanticLabel: null, dependencies:
    [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    button_disabled golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
    Golden Tests in_page_banner_buttons golden
    `══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
    The following TestFailure was thrown running a test:
    Expected: one widget whose rasterized image matches golden image
    "file:///home/runner/work/zeta_flutter/zeta_flutter/test/src/components/in_page_banner/golden/in_page_banner_buttons.png"
    Actual: _TypeWidgetFinder: ZetaInPageBanner(rounded: null, status: neutral, title: null, customIcon: null,
    dependencies: [Zeta]),
    ]>
    Which: does not match

    When the exception was thrown, this was the stack:
    #0 fail (package:matcher/src/expect/expect.dart:149:31)
    System theme support #1 _expect. (package:matcher/src/expect/expect.dart:125:9)


    Refactor theme declaration and introduce theme service in Example #8 expectLater. (package:flutter_test/src/widget_tester.dart:518:24)

    Checkbox #9 goldenTest. (file:///home/runner/work/zeta_flutter/zeta_flutter/test/test_utils/utils.dart:65:5)

    Chore/updates #10 testWidgets.. (package:flutter_test/src/widget_tester.dart:189:15)

    chore(main): release zeta_flutter 0.3.0 #11 TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)


    (elided 7 frames from dart:async and package:stack_trace)

    The test description was:
    in_page_banner_buttons golden
    ════════════════════════════════════════════════════════════════════════════════════════════════════`
  • 📈 - Code coverage: 48.36% (⬆️ up from 48.34%)
    See details
    File Name%Passing?
    lib/generated/tokens/primitives.g.dart31.1%⛔️
    lib/generated/tokens/semantics.g.dart10.7%⛔️
    lib/src/components/accordion/accordion.dart100%
    lib/src/utils/rounded.dart100%
    lib/src/components/avatar_rail/avatar_rail.dart53.7%⛔️
    lib/src/components/avatars/avatar.dart94.7%
    lib/src/components/badges/indicator.dart100%
    lib/src/components/badges/label.dart100%
    lib/src/components/badges/priority_pill.dart100%
    lib/src/components/badges/status_label.dart100%
    lib/src/components/badges/tag.dart98.5%
    lib/src/components/banner/banner.dart88.4%
    lib/src/components/bottom sheets/bottom_sheet.dart0%⛔️
    lib/src/components/bottom sheets/menu_items.dart0%⛔️
    lib/src/components/breadcrumb/breadcrumb.dart86.5%
    lib/src/components/button_group/button_group.dart0%⛔️
    lib/src/components/buttons/button.dart96.3%
    lib/src/components/buttons/button_style.dart100%
    lib/src/components/buttons/icon_button.dart51.2%⛔️
    lib/src/components/buttons/input_icon_button.dart72.7%⛔️
    lib/src/components/chat_item/chat_item.dart98.4%
    lib/src/components/checkbox/checkbox.dart100%
    lib/src/components/chips/assist_chip.dart0%⛔️
    lib/src/components/chips/chip.dart81.6%
    lib/src/components/chips/filter_chip.dart0%⛔️
    lib/src/components/chips/input_chip.dart0%⛔️
    lib/src/components/chips/status_chip.dart90.9%
    lib/src/components/comms_button/comms_button.dart82%
    lib/src/components/contact_item/contact_item.dart0%⛔️
    lib/src/components/date_input/date_input.dart0%⛔️
    lib/src/components/dial_pad/dial_pad.dart100%
    lib/src/components/dialog/dialog.dart0%⛔️
    lib/src/components/dropdown/dropdown.dart0%⛔️
    lib/src/components/fabs/fab.dart96.9%
    lib/src/components/filter_selection/filter_selection.dart0%⛔️
    lib/src/components/global_header/global_header.dart0%⛔️
    lib/src/components/global_header/header_tab_item.dart0%⛔️
    lib/src/components/icon/icon.dart100%
    lib/src/components/in_page_banner/in_page_banner.dart100%
    lib/src/components/list_item/dropdown_list_item.dart0%⛔️
    lib/src/components/list_item/list_item.dart0%⛔️
    lib/src/components/list_item/notification_list_item.dart0%⛔️
    lib/src/components/navigation bar/navigation_bar.dart100%
    lib/src/components/navigation_rail/navigation_rail.dart0%⛔️
    lib/src/components/pagination/pagination.dart0.6%⛔️
    lib/src/components/password/password_input.dart100%
    lib/src/components/phone_input/phone_input.dart0%⛔️
    lib/src/components/progress/progress_bar.dart0%⛔️
    lib/src/components/progress/progress_circle.dart0%⛔️
    lib/src/components/radio/radio.dart0%⛔️
    lib/src/components/range_selector/range_selector.dart84.5%
    lib/src/components/screen_header_bar/screen_header_bar.dart0%⛔️
    lib/src/components/search_bar/search_bar.dart98.1%
    lib/src/components/segmented_control/segmented_control.dart0%⛔️
    lib/src/components/select_input/select_input.dart0%⛔️
    lib/src/components/slider/slider.dart82.3%
    lib/src/components/snack_bar/snack_bar.dart0%⛔️
    lib/src/components/stepper/stepper.dart95.1%
    lib/src/components/stepper_input/stepper_input.dart71.9%⛔️
    lib/src/components/switch/zeta_switch.dart0%⛔️
    lib/src/components/tabs/tab.dart0%⛔️
    lib/src/components/tabs/tab_bar.dart0%⛔️
    lib/src/components/text_input/text_input.dart0%⛔️
    lib/src/components/time_input/time_input.dart0%⛔️
    lib/src/components/tooltip/tooltip.dart98.9%
    lib/src/components/top_app_bar/top_app_bar.dart86%
    lib/src/interfaces/form_field.dart81.4%
    lib/src/components/text_input/internal_text_input.dart72.5%⛔️
    lib/src/components/list_item/list_scope.dart0%⛔️
    lib/src/components/phone_input/countries.dart10%⛔️
    lib/src/components/progress/progress.dart0%⛔️
    lib/src/components/switch/material_switch.dart0%⛔️
    lib/src/components/text_input/hint_text.dart77.8%⛔️
    lib/src/components/text_input/input_label.dart0%⛔️
    lib/src/components/top_app_bar/extended_top_app_bar.dart93.9%
    lib/src/components/top_app_bar/search_top_app_bar.dart88%
    lib/src/theme/breakpoints.dart100%
    lib/src/theme/color_extensions.dart100%
    lib/src/theme/color_swatch.dart77.3%⛔️
    lib/src/theme/contrast.dart100%
    lib/src/theme/color_scheme.dart100%
    lib/src/theme/colors.dart100%
    lib/src/theme/theme_data.dart100%
    lib/src/theme/tokens.dart50%⛔️
    lib/src/utils/debounce.dart100%
    lib/src/utils/extensions.dart100%
    lib/src/utils/nothing.dart100%
    lib/src/utils/platform/platform_is.dart10%⛔️
    lib/src/utils/platform/universal_platform_vm.dart21.4%⛔️
    lib/src/utils/zeta.dart97.8%
    lib/src/utils/zeta_provider.dart100%

Created with Flutter code quality action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant