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

[Regression] TF-2528 Fix sort by sender name incorrect #3257

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

dab246
Copy link
Member

@dab246 dab246 commented Nov 6, 2024

Issue

#2528

Solution

  • Sort email list by Email/query

Resolved

  • Demo:
Screen.Recording.2024-11-06.at.16.42.48.mov
  • Integration Test use Provisioning:
demo-test.webm

@dab246 dab246 requested a review from hoangdat November 6, 2024 09:45
@dab246 dab246 changed the title TF-2528 Fix sort by sender name incorrect [Regression] TF-2528 Fix sort by sender name incorrect Nov 6, 2024
Copy link

github-actions bot commented Nov 6, 2024

This PR has been deployed to https://linagora.github.io/tmail-flutter/3257.

@chibenwa
Copy link
Member

chibenwa commented Nov 6, 2024

Better indeed!

tddang-linagora
tddang-linagora previously approved these changes Nov 7, 2024
Copy link
Member

@hoangdat hoangdat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should have integration_test for this change.

@dab246
Copy link
Member Author

dab246 commented Nov 11, 2024

we should have integration_test for this change.

Done

demo.webm

@tddang-linagora
Copy link
Contributor

tddang-linagora commented Nov 13, 2024

  • Test failed
Logs
java.lang.AssertionError: Dart test failed: tests.search.search_email_with_sort_order_test__Should__see__list__email__displayed__by__sort__order__selected__when__search__email__successfully
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following TestFailure was thrown running a test:
Expected: '[email protected]'
Actual: '[email protected]'
Which: is different.
Expected: charlotte@ ...
Actual: david@exam ...
^
Differ at offset 0

When the exception was thrown, this was the stack:
#4      SearchRobot.expectEmailListSortedCorrectBySenderAscending (file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/robots/search_robot.dart:52:7)
#5      SearchEmailWithSortOrderScenario.execute (file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/scenarios/search_email_with_sort_order_scenario.dart:39:23)
<asynchronous suspension>
#6      main.<anonymous closure> (file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/tests/search/search_email_with_sort_order_test.dart:32: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:183:15)
<asynchronous suspension>
#10     TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1017:5)
<asynchronous suspension>
#11     TestWidgetsFlutterBinding._createTestCompletionHandler.<anonymous closure> (package:flutter_test/src/binding.dart:809:12)
<asynchronous suspension>

This was caught by the test expectation on the following line:
file:///Users/dangdat/Desktop/dev/linagora-master/tmail-flutter/integration_test/robots/search_robot.dart line 52
The test description was:
Should see list email displayed by sort order selected when
search email successfully
═════════════════════════════════════════════════════════════════

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

hoangdat
hoangdat previously approved these changes Nov 13, 2024
@dab246
Copy link
Member Author

dab246 commented Nov 13, 2024

  • Test failed

Logs

Remove current docker image then run again will fix it.

@dab246 dab246 requested a review from hoangdat November 13, 2024 08:52
@dab246
Copy link
Member Author

dab246 commented Nov 13, 2024

  • Build integration test on CI success
Screenshot 2024-11-13 at 16 15 15

@hoangdat hoangdat merged commit 51a4a1b into master Nov 14, 2024
23 checks passed
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.

5 participants