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

TF-3543 E2E composer read receipt #3544

Open
wants to merge 1 commit into
base: patrol-integration-test
Choose a base branch
from

Conversation

tddang-linagora
Copy link
Contributor

Issue

Test result

✅ Should see read receipt dialog (integration_test/tests/compose/composer_read_receipt_test.dart) (24s)

Test summary:
📝 Total: 1
✅ Successful: 1
❌ Failed: 0
⏩ Skipped: 0
📊 Report: .../tmail-flutter/build/app/reports/androidTests/connected/index.html
⏱️  Duration: 44s

Test video

integration-test-composer-read-receipt.webm

Copy link

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

await composerRobot.addContent(content);
await composerRobot.tapMoreOptions();
await composerRobot.toggleReadReceipt();
await expectViewVisible($(AppLocalizations().requestReadReceiptHasBeenEnabled));
Copy link
Member

Choose a reason for hiding this comment

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

We should create instant object for AppLocalizations to re-use


await $.pumpAndSettle(duration: seconds(5));
await threadRobot.openEmailWithSubject(subject);
await expectViewVisible($(AppLocalizations().titleReadReceiptRequestNotificationMessage));
Copy link
Member

Choose a reason for hiding this comment

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

We should describe expect more clearly.


Future<void> _expectSendEmailSuccessToast() async {
await expectViewVisible(
$(find.text(AppLocalizations().message_has_been_sent_successfully)),
Copy link
Member

Choose a reason for hiding this comment

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

idem


void main() {
TestBase().runPatrolTest(
description: 'Should see read receipt dialog',
Copy link
Member

Choose a reason for hiding this comment

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

We should describe test case more clearly.

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

Successfully merging this pull request may close these issues.

[Integration test] [Composer] Toggle read receipt
2 participants