Skip to content

Conversation

@NiranjanaBinoy
Copy link
Contributor

Fixes: #10772

Explanation:

  1. Moved the file to test/e2e/tests
  2. Added new state.json to test/e2e/fixtures/send-edit
  3. Updated send-edit.spec.js to use fixtures.
  4. Updated run-all.sh to use the new test file.

@NiranjanaBinoy NiranjanaBinoy requested review from Gudahtt and danjm March 31, 2021 23:07
@NiranjanaBinoy NiranjanaBinoy self-assigned this Mar 31, 2021
@NiranjanaBinoy NiranjanaBinoy requested a review from a team as a code owner March 31, 2021 23:07
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot
Copy link
Collaborator

Builds ready [f8c6543]
Page Load Metrics (568 ± 57 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint457958105
domContentLoaded34287556611957
load34487656811957
domInteractive34287556611957

@metamaskbot
Copy link
Collaborator

Builds ready [35b57d3]
Page Load Metrics (516 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint43705594
domContentLoaded31164051410450
load31364251610450
domInteractive31164051310450

@metamaskbot
Copy link
Collaborator

Builds ready [f17bbde]
Page Load Metrics (556 ± 37 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint44765594
domContentLoaded3536245547737
load3556255567737
domInteractive3536245547737

DONALDSULLENDER
DONALDSULLENDER previously approved these changes Apr 1, 2021
Gudahtt
Gudahtt previously approved these changes Apr 2, 2021
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

This test seems a bit on the long side, but at least it's much shorter than before. Maybe we can split this up more later? Or consider re-introducing it blocks within a withFixtures block. But that can wait for another time.

await driver.delay(regularDelayMs);
});

it('has correct updated value on the confirm screen the transaction', async function () {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: It would be nice to at least preserve these descriptions as comments, to make these tests easier to understand.

@NiranjanaBinoy NiranjanaBinoy dismissed stale reviews from ghost , Gudahtt, and DONALDSULLENDER via 165beab April 3, 2021 22:21
@metamaskbot
Copy link
Collaborator

Builds ready [165beab]
Page Load Metrics (537 ± 45 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint44665473
domContentLoaded3316475369345
load3336485379345
domInteractive3316475359345

@NiranjanaBinoy NiranjanaBinoy merged commit 966b2dc into develop Apr 4, 2021
@NiranjanaBinoy NiranjanaBinoy deleted the e2e-fixtures-send-edit branch April 4, 2021 19:06
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2021
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.

Refactor send-edit.spec.js to follow pattern in metamask-extension/test/e2e/tests

5 participants