-
Notifications
You must be signed in to change notification settings - Fork 51
Re-phrase lost password when user uses key manager url #3821
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
Conversation
Here is the underlying error that prevents me when trying to create a new test for issue #3781.
|
test/source/tests/compose.ts
Outdated
await inboxPage.waitAll('@dialog-passphrase'); | ||
const passphraseDialog = await inboxPage.getFrame(['passphrase.htm']); | ||
await Util.sleep(5); | ||
expect(await passphraseDialog.readHtml('@lost-pass-phrase-with-ekm')).to.equal('Ask your IT staff for help if you lost your pass phrase.'); |
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.
No need to copy the whole test and make a new one: you should can instead edit the existing EKM test I referred to earlier.
@tomholub I have moved the test to the existing one you're referring to and confirmed the test works properly. But there is still a build error in the CI which I don't have an idea why. |
Live Gmail tests sometimes have problems with login, not your fault. I'm re-running them. |
And bringing updates from master to here, in case we fixed it since. |
test/source/tests/setup.ts
Outdated
await Util.sleep(5); | ||
expect(await passphraseDialog.readHtml('@lost-pass-phrase-with-ekm')).to.equal('Ask your IT staff for help if you lost your pass phrase.'); |
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.
Please use waitForContent
method, which will keep retrying until it can find the text, instead of wait + try once. (it will execute faster, as it doesn't always have to wait for 5 seconds)
Otherwise this looks good. You should also alter one more test - a test that doesn't use EKM, to test the opposite scenario. I'll highlight the discussion below.
As I mentioned in #3781 (comment) , you should also test the opposite scenario without EKM - again but adding one more test condition to the existing test.
|
Thanks, @tomholub. I will pay more attention to small details next time. I think we have the test we want for this. I have learned so much here. Thanks Again! |
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.
Looks good. Thanks!
issue #3781
Re-phrasing the "lost password" context when the user uses key manager which came from org rules.
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):