Skip to content
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

signature approved metrics e2e test #19628

Merged
merged 6 commits into from
Jun 23, 2023

Conversation

brad-decker
Copy link
Contributor

@brad-decker brad-decker commented Jun 15, 2023

Explanation

Part of #19261

Implements E2E tests to ensure that signing signature requests results in requested and approved events being fired to segment. This is important so that if anything changes we are alerted before mixpanel reflects a disturbance in our business metrics. These events are only fired for users who opt-in to metametrics so the controller for MetaMetrics is mocked out to have the opt-in flag set to true.

Manual Testing Steps

  • No functional changes were made in this PR, this should be primarily code review and review of the resulting test runs in CI

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@brad-decker brad-decker changed the title signature approved e2e signature approved metrics e2e test Jun 15, 2023
@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Merging #19628 (4c5675b) into develop (89cec53) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop   #19628   +/-   ##
========================================
  Coverage    69.83%   69.83%           
========================================
  Files          979      979           
  Lines        36905    36905           
  Branches      9909     9909           
========================================
  Hits         25769    25769           
  Misses       11136    11136           

@metamaskbot
Copy link
Collaborator

Builds ready [3172ffd]
Page Load Metrics (1583 ± 39 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1023391315024
domContentLoaded1455186815648239
load1485186915838239
domInteractive1455186815648239
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@brad-decker brad-decker force-pushed the test/e2e-test-permission-metricss-19261 branch from d1eedd6 to 5d35243 Compare June 20, 2023 15:28
@metamaskbot
Copy link
Collaborator

Builds ready [5d35243]
Page Load Metrics (1688 ± 95 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint981741292110
domContentLoaded14522339166520096
load14662340168819795
domInteractive14522339166520096
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@brad-decker brad-decker force-pushed the test/e2e-test-permission-metricss-19261 branch from 7211b8e to efcb891 Compare June 21, 2023 16:56
@brad-decker brad-decker marked this pull request as ready for review June 22, 2023 17:32
@brad-decker brad-decker requested a review from a team as a code owner June 22, 2023 17:32
@brad-decker brad-decker requested a review from DDDDDanica June 22, 2023 17:32
@metamaskbot
Copy link
Collaborator

Builds ready [20e1ebd]
Page Load Metrics (1532 ± 28 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint10013711194
domContentLoaded1427158315004622
load1436164215325828
domInteractive1427158315004622
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

PeterYinusa
PeterYinusa previously approved these changes Jun 22, 2023
DDDDDanica
DDDDDanica previously approved these changes Jun 22, 2023
test/e2e/metrics/signature-approved.spec.js Outdated Show resolved Hide resolved
test/e2e/metrics/signature-approved.spec.js Outdated Show resolved Hide resolved
@brad-decker brad-decker force-pushed the test/e2e-test-permission-metricss-19261 branch from 20e1ebd to d1ef16d Compare June 22, 2023 18:59
@brad-decker brad-decker dismissed stale reviews from PeterYinusa and DDDDDanica via 62f1010 June 22, 2023 19:24
@metamaskbot
Copy link
Collaborator

Builds ready [62f1010]
Page Load Metrics (1597 ± 48 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1152231462512
domContentLoaded14031817159610148
load14031817159710148
domInteractive14031817159610148
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@brad-decker brad-decker force-pushed the test/e2e-test-permission-metricss-19261 branch from c831b7c to 4c5675b Compare June 22, 2023 20:21
@metamaskbot
Copy link
Collaborator

Builds ready [4c5675b]
Page Load Metrics (1443 ± 23 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint107166124147
domContentLoaded1346153514434823
load1346153514434823
domInteractive1346153514434823
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

Copy link
Contributor

@PeterYinusa PeterYinusa left a comment

Choose a reason for hiding this comment

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

LGTM

@brad-decker brad-decker merged commit b86326b into develop Jun 23, 2023
@brad-decker brad-decker deleted the test/e2e-test-permission-metricss-19261 branch June 23, 2023 14:48
@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2023
@metamaskbot metamaskbot added the release-10.34.0 Issue or pull request that will be included in release 10.34.0 label Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-10.34.0 Issue or pull request that will be included in release 10.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants