Skip to content

Integration test is failing #3493

Closed
Closed
@tddang-linagora

Description

@tddang-linagora

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions