Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Enable recovery key experiment for test emails #6468

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

vbudhram
Copy link
Contributor

Didn't get a chance to mention this in yesterday meeting but wanted to enable account recovery for Mozilla and Softvision emails this train.

This is targeted as a point release so we can rollback if needed.

// to enable the panel have been performed.
.sleep(1000)

.then(testElementExists(selectors.SETTINGS.HEADER));

Choose a reason for hiding this comment

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

the SETTINGS.HEADER element was already looked for on line 236, do you want to check for the panel here?


// Perform a slight sleep here to ensure that the checks
// to enable the panel have been performed.
.sleep(1000)

Choose a reason for hiding this comment

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

I feel like we would be better off extending the amount of time testElementExists waits for an element to be in the DOM than using sleep like this.


// Perform a slight sleep here to ensure that the checks
// to enable the panel have been performed.
.sleep(1000)

Choose a reason for hiding this comment

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

Same comment here about the sleep.

Copy link
Contributor

Choose a reason for hiding this comment

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

replace it with a JS selector to check the height of the panel or something like that

Choose a reason for hiding this comment

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

replace it with a JS selector to check the height of the panel or something like that

Even better

Copy link
Contributor Author

@vbudhram vbudhram Aug 22, 2018

Choose a reason for hiding this comment

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

Tried using the selector but got stale element exception. However, using the similar pattern as obscure element, I was able to get this passing 5/5 times (against circle). It was also faster because it would only sleep when it needed too.

@vbudhram vbudhram force-pushed the enable-recovery-key-experiment branch from 998bd4a to f251272 Compare August 22, 2018 14:17
@vbudhram vbudhram requested a review from a team August 22, 2018 16:43
@vbudhram
Copy link
Contributor Author

@mozilla/fxa-devs Made some updates, this is ready for review!

Copy link

@shane-tomlinson shane-tomlinson left a comment

Choose a reason for hiding this comment

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

r+ - looks great @vbudhram!

@@ -208,6 +208,22 @@ const click = thenify(function (selector, readySelector) {
})
.end();
}

// Check to see if the error is a `stale element exception` and

Choose a reason for hiding this comment

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

I dig this.

@vbudhram vbudhram merged commit bc7a821 into train-119 Aug 23, 2018
@vbudhram vbudhram deleted the enable-recovery-key-experiment branch November 12, 2018 20:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants