Skip to content

Move initial e2e navigation into individual tests#9979

Merged
Gudahtt merged 1 commit intodevelopfrom
move-initial-e2e-navigation-into-tests
Dec 3, 2020
Merged

Move initial e2e navigation into individual tests#9979
Gudahtt merged 1 commit intodevelopfrom
move-initial-e2e-navigation-into-tests

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Dec 3, 2020

The e2e test driver used to perform the initial navigation automatically within the buildWebDriver function, so that that step wouldn't need to be repeated at the beginning of each test. However this prevented you from doing any setup in the test before the first navigation.

The navigation has now been moved into each individual test. It should be functionally equivalent, except now it's possible to control exactly when the first navigation occurs.

A 1 second delay was also removed, as it didn't seem to be necessary when testing this. It was initially added as an attempted fix to an intermittent failure. It did not fix that failure.

The e2e test driver used to perform the initial navigation
automatically within the `buildWebDriver` function, so that that step
wouldn't need to be repeated at the beginning of each test. However
this prevented you from doing any setup in the test before the first
navigation.

The navigation has now been moved into each individual test. It should
be functionally equivalent, except now it's possible to control exactly
when the first navigation occurs.

A 1 second delay was also removed, as it didn't seem to be necessary
when testing this. It was initially added as an attempted fix to an
intermittent failure. It did not fix that failure.
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [9a5e153]
Page Load Metrics (370 ± 37 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint296946147
domContentLoaded2804943697637
load2824963707737
domInteractive2804943687637

@Gudahtt Gudahtt marked this pull request as ready for review December 3, 2020 03:15
@Gudahtt Gudahtt requested a review from a team as a code owner December 3, 2020 03:15
@Gudahtt Gudahtt changed the title Move initial e2e navitation into individual tests Move initial e2e navigation into individual tests Dec 3, 2020
Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt merged commit 7a2b3b9 into develop Dec 3, 2020
@Gudahtt Gudahtt deleted the move-initial-e2e-navigation-into-tests branch December 3, 2020 17:30
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2020
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