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

Integration test is failing #3493

Open
1 task
tddang-linagora opened this issue Feb 19, 2025 · 1 comment
Open
1 task

Integration test is failing #3493

tddang-linagora opened this issue Feb 19, 2025 · 1 comment
Assignees
Labels
bug Something isn't working integration-test

Comments

@tddang-linagora
Copy link
Contributor

tddang-linagora commented Feb 19, 2025

Description

Out of 9 test cases on master branch, 1 is failing

Expected result

All pass

Reproduction Steps

Run patrol-local-integration-test-with-docker.sh script

Additional information

logs
java.lang.AssertionError: Dart test failed: tests.search.search_email_by_date_time_and_sort_order_relevance_test Should see list email displayed by date time `Last 7 days` and sort order `Relevance` when search email successfully
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following WaitUntilVisibleTimeoutException was thrown running
a test:
TimeoutException after 0:00:05.000000: Finder "Found 0 widgets
with key [<'mobile_dateTime_search_filter_button'>] (considering
only hit-testable ones): []" did not find any visible (i.e.
hit-testable) widgets

When the exception was thrown, this was the stack:
#0      PatrolTester.dragUntilVisible.<anonymous closure> (package:patrol_finders/src/custom_finders/patrol_tester.dart:557:9)
<asynchronous suspension>
#1      TestAsyncUtils.guard.<anonymous closure> (package:flutter_test/src/test_async_utils.dart:120:7)
<asynchronous suspension>
#2      PatrolTester.scrollUntilVisible.<anonymous closure> (package:patrol_finders/src/custom_finders/patrol_tester.dart:676:30)
<asynchronous suspension>
#3      TestAsyncUtils.guard.<anonymous closure> (package:flutter_test/src/test_async_utils.dart:120:7)
<asynchronous suspension>
#4      SearchRobot.scrollToDateTimeButtonFilter (file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/robots/search_robot.dart:45:5)
<asynchronous suspension>
#5      SearchEmailByDatetimeAndSortOrderRelevanceScenario.execute (file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/scenarios/search_email_by_date_time_and_sort_order_relevance_scenario.dart:47:5)
<asynchronous suspension>
#6      main.<anonymous closure> (file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/tests/search/search_email_by_date_time_and_sort_order_relevance_test.dart:41:7)
<asynchronous suspension>
#7      TestBase.runPatrolTest.<anonymous closure> (file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/base/test_base.dart:28:7)
<asynchronous suspension>
#8      patrolTest.<anonymous closure> (package:patrol/src/common.dart:136:7)
<asynchronous suspension>
#9      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:189:15)
<asynchronous suspension>
#10     TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1032:5)
<asynchronous suspension>
#11     TestWidgetsFlutterBinding._createTestCompletionHandler.<anonymous closure> (package:flutter_test/src/binding.dart:824:12)
<asynchronous suspension>

The test description was:
Should see list email displayed by date time `Last 7 days` and
sort order `Relevance` when search email successfully
═════════════════════════════════════════════════════════════════

at pl.leancode.patrol.PatrolJUnitRunner.runDartTest(PatrolJUnitRunner.java:147)
at com.linagora.android.tmail.MainActivityTest.runDartTest(MainActivityTest.java:31)

Bonus

  • Update Patrol CLI and Patrol dependency version
@dab246
Copy link
Member

dab246 commented Feb 19, 2025

Current test files fail

  • no_disposition_inline_test.dart
 ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
        The following TestFailure was thrown running a test:
        Expected: exactly one matching candidate
        Actual: PatrolFinder:<Found 0 widgets with widget matching
        predicate descending from widgets with type "HtmlContentViewer"
        descending from widgets with type "EmailView" inclusive: []>
        Which: means none were found but one was expected
  • search_email_by_date_time_and_sort_order_relevance_test.dart
 ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
        The following WaitUntilVisibleTimeoutException was thrown running
        a test:
        TimeoutException after 0:00:05.000000: Finder "Found 0 widgets
        with key [<'mobile_dateTime_search_filter_button'>] (considering
        only hit-testable ones): []" did not find any visible (i.e.
        hit-testable) widgets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration-test
Projects
None yet
Development

No branches or pull requests

2 participants