Skip to content

Re-enable live gmail tests - #3941

Merged
rrrooommmaaa merged 7 commits into
masterfrom
issue-3929-re-enable-live-gmail-tests
Aug 31, 2021
Merged

Re-enable live gmail tests#3941
rrrooommmaaa merged 7 commits into
masterfrom
issue-3929-re-enable-live-gmail-tests

Conversation

@limonte

@limontelimonte commented Aug 29, 2021

Copy link
Copy Markdown

This PR re-enables 4 live gmail tests that were broken (#3929)

issue #3929


Tests(delete all except exactly one):

  • Does not need tests (refactor only, docs or internal changes)

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@limontelimonte changed the title [WIP] Re-enable live gmail testsRe-enable live gmail tests (part 1)Aug 30, 2021
@limonte
limonte marked this pull request as ready for review August 30, 2021 10:43
@limonte

Copy link
Copy Markdown
Author

@rrrooommmaaa In this PR I re-enabled 4 tests, there are still 5 of them left to re-enable, but that is blocked by this.

Let's review and merge this PR, and the rest of the tests I will re-enable in another one.

@limonte
limonte marked this pull request as draft August 30, 2021 10:47
@limonte

Copy link
Copy Markdown
Author

@rrrooommmaaa In this PR I re-enabled 4 tests, there are still 5 of them left to re-enable, but that is blocked by this.

Let's review and merge this PR, and the rest of the tests I will re-enable in another one.

Sorry, I just noticed the email from Tom which will help me to re-enable the rest of the tests. I will continue working on this PR.

@limontelimonte changed the title Re-enable live gmail tests (part 1)[WIP] Re-enable live gmail testsAug 30, 2021
@limonte

Copy link
Copy Markdown
Author

Ready for review 🚀

  1. While re-enabling Thunderbird tests I faced 2 issues which are reported in Thunderbird signed + encrypted message: "..." instead of actual subject #3943 and Thunderbird signed + encrypted message - shows "Message Not Signed" in FlowCrypt [waiting for OpenPGP.js upgrade] #3944
  2. I merged two "Thunderbird [html]" tests into 1 for the sake of tests speed, those two tests were using the same message for testing.
  3. I merged two "Thunderbird [plain]" tests into 1 for the sake of tests speed, those two tests were using the same message for testing.

@limontelimonte changed the title [WIP] Re-enable live gmail testsRe-enable live gmail testsAug 30, 2021
@limonte
limonte marked this pull request as ready for review August 30, 2021 15:48
yourKeyCantOpenImportIfHave: 'Your current key cannot open this message. If you have any other keys available, you should import them now.\n',
encryptedCorrectlyFileBug: 'It\'s correctly encrypted for you. Please file a bug report if you see this on multiple messages. ',
singleSender: 'Normally, messages are encrypted for at least two people (sender and the receiver). It seems the sender encrypted this message manually for themselves, and forgot to add you as a receiver. This sometimes happens when the sender is using OpenPGP software other than FlowCrypt, because they have to configure encryption manually, and mistakes can happen.',
singleSender: 'Normally, messages are encrypted for at least two people (sender and the receiver). It seems the sender encrypted this message manually for themselves, and forgot to add you as a receiver. This sometimes happens when the sender is using OpenPGP software other than FlowCrypt, because they have to configure encryption manually, and mistakes can happen.',

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

tiny fix for this:

CleanShot 2021-08-30 at 21 42 49@2x

@rrrooommmaaa

Copy link
Copy Markdown
Contributor

I guess some of lost messages may be present in exported-messages folder. It would be good to add these new Gmail messages there (or to another folder (or in EML format)) and add remarks in the tests with their message ids (file names) for easier restoration next time.

@limonte

limonte commented Aug 31, 2021

Copy link
Copy Markdown
Author

I guess some of lost messages may be present in exported-messages folder. It would be good to add these new Gmail messages there (or to another folder (or in EML format)) and add remarks in the tests with their message ids (file names) for easier restoration next time.

Done, thanks 👍

I did backup in this format: .../exported-messages/live-gmail-test-emails/{EMAIL_SUBJECT} ({EMAIL_ID}).eml

@limonte

Copy link
Copy Markdown
Author

Tests are failing with the reason that seems to be unrelated to the PR:

CleanShot 2021-08-31 at 15 17 57@2x

@rrrooommmaaa@martgil could that be related to #3942 even though it's not merged yet?

@rrrooommmaaa

rrrooommmaaa commented Aug 31, 2021

Copy link
Copy Markdown
Contributor

yes, exported-messages are parsed automatically (JSONs files are expected to be there), so presence of a directory there makes it fail. Can you move this live-gmail... directory up one level, please?

@limonte

Copy link
Copy Markdown
Author

yes, exported-messages are parsed automatically (JSONs files are expected to be there), so presence of a directory there makes it fail. Can you move this live-gmail... directory up one level, please?

Oh, didn't expect that, thanks for the hint!

@limonte

Copy link
Copy Markdown
Author

All good now, ready for review 🚀

btw, this

  1. I merged two "Thunderbird [html]" tests into 1 for the sake of tests speed, those two tests were using the same message for testing.
  2. I merged two "Thunderbird [plain]" tests into 1 for the sake of tests speed, those two tests were using the same message for testing.

saved around 1 min of running time for live gmail tests

@rrrooommmaaa
rrrooommmaaa merged commit 25205d6 into masterAug 31, 2021
@rrrooommmaaa
rrrooommmaaa deleted the issue-3929-re-enable-live-gmail-tests branch August 31, 2021 14:58
Sign up for freeto 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.

2 participants

@limonte@rrrooommmaaa