-
Notifications
You must be signed in to change notification settings - Fork 48
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
#4342 re-fetch cleartext signed message when HTML version is corrupted #4961
#4342 re-fetch cleartext signed message when HTML version is corrupted #4961
Conversation
…cleartext-signed-messages
…cleartext-signed-messages
testWithBrowser('ci.tests.gmail', async (t, browser) => { | ||
const acctEmail = 'ci.tests.gmail@flowcrypt.test'; | ||
const settingsPage = await browser.newExtensionSettingsPage(t, acctEmail); | ||
const accessToken = await BrowserRecipe.getGoogleAccessToken(settingsPage, acctEmail); // todo: include in t? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can simplify some tests if we can extract google access token from t
-- we can put it there in a helper method like setUpCommonAcct
, so we don't have to open a dummy page just to retrieve the access token.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it'll be nice to have access token available through t
. Probably we can include such improvement when working on part 2 of #4494, there we can fetch access token when configuring test account.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done 👍 Just a small improvement for eslint-disable
testWithBrowser('ci.tests.gmail', async (t, browser) => { | ||
const acctEmail = 'ci.tests.gmail@flowcrypt.test'; | ||
const settingsPage = await browser.newExtensionSettingsPage(t, acctEmail); | ||
const accessToken = await BrowserRecipe.getGoogleAccessToken(settingsPage, acctEmail); // todo: include in t? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it'll be nice to have access token available through t
. Probably we can include such improvement when working on part 2 of #4494, there we can fetch access token when configuring test account.
…cleartext-signed-messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
testWithBrowser('ci.tests.gmail', async (t, browser) => { | ||
const acctEmail = 'ci.tests.gmail@flowcrypt.test'; | ||
const settingsPage = await browser.newExtensionSettingsPage(t, acctEmail); | ||
const accessToken = await BrowserRecipe.getGoogleAccessToken(settingsPage, acctEmail); // todo: include in t? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR re-fetches cleartext signed message from
text/plain
alternative part if signature verification failsclose #4342
issue #4810 (sets an example of how to test GmailElementReplacer)
issue #4929 (added a test helper method pgpBlockCheck for checking data in an existing pgp block)
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):