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

test(TXL-308): initial e2e for stx using swaps #27215

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open

Conversation

dbrans
Copy link
Contributor

@dbrans dbrans commented Sep 17, 2024

Description

  • Initial e2e test for stx

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@dbrans dbrans requested review from a team as code owners September 17, 2024 13:00
@dbrans dbrans marked this pull request as draft September 17, 2024 13:00
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.

@github-actions github-actions bot added the team-transactions Transactions team label Sep 17, 2024
@dbrans dbrans changed the title test(stx): initial e2e for stx using swaps test(stx): initial e2e for stx using swaps – TXL-308 Sep 17, 2024
@dbrans dbrans changed the title test(stx): initial e2e for stx using swaps – TXL-308 test(TXL-308): initial e2e for stx using swaps Sep 17, 2024
@dbrans dbrans marked this pull request as ready for review September 17, 2024 13:18
Copy link

sonarcloud bot commented Sep 18, 2024

Copy link
Contributor Author

@dbrans dbrans Sep 18, 2024

Choose a reason for hiding this comment

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

Diff summary

Added:

  • "crypto.com"
  • "transaction.api.cx.metamask.io"
  • "verify.walletconnect.com"

@metamaskbot
Copy link
Collaborator

Builds ready [fff9e5d]
Page Load Metrics (1917 ± 67 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint24821761657598287
domContentLoaded16922167189113163
load17032195191713967
domInteractive14144443115
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 177 Bytes (0.00%)
  • ui: 111 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [ad69471]
Page Load Metrics (1844 ± 110 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29925181758395190
domContentLoaded155824041804208100
load156825311844229110
domInteractive1399362110
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 177 Bytes (0.00%)
  • ui: 111 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [b0c6e80]
Page Load Metrics (1839 ± 104 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint32823261686461221
domContentLoaded147923131818209101
load149123881839217104
domInteractive13192484019
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 177 Bytes (0.00%)
  • ui: 111 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [db9d7f3]
Page Load Metrics (1695 ± 69 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15542179169114670
domContentLoaded15472083166513163
load15622186169514369
domInteractive15201514321
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 177 Bytes (0.00%)
  • ui: 111 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

const summary = await driver.waitForSelector(
'[data-testid="exchange-rate-display-quote-rate"]',
);
const summaryText = await summary.getText();
console.log('============\nsummaryText\n============', {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to remove this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

mobileActive: true,
extensionActive: true,
},
localhost: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

method: 'eth_getBalance',
params: ['0x5cfe73b6021e818b776b421b1c4db2474086a7e1'],
})
// .once()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this commented code here and in other places?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@dbrans dbrans requested review from a team as code owners September 24, 2024 10:51
dan437
dan437 previously approved these changes Sep 24, 2024
Copy link
Contributor

@dan437 dan437 left a comment

Choose a reason for hiding this comment

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

LGTM!

@dbrans
Copy link
Contributor Author

dbrans commented Oct 3, 2024

Spoke with @matthewwalsh0 and will attack these two tasks in follow-up PRs:

  • Page object model refactor
  • Add e2e test for dApp smart transaction

matthewwalsh0
matthewwalsh0 previously approved these changes Oct 7, 2024
@dbrans dbrans dismissed stale reviews from matthewwalsh0 and dan437 via decc1b8 October 7, 2024 14:31
@metamaskbot
Copy link
Collaborator

Builds ready [06d4b97]
Page Load Metrics (1826 ± 97 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint159123821813208100
domContentLoaded15862366178319996
load15902375182620297
domInteractive26189573517
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 177 Bytes (0.00%)
  • ui: 111 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@dbrans dbrans enabled auto-merge October 7, 2024 18:54
@metamaskbot
Copy link
Collaborator

Builds ready [bfcc184]
Page Load Metrics (1712 ± 103 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23925361495561269
domContentLoaded143725211691215103
load144525331712213103
domInteractive16211504320
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 177 Bytes (0.00%)
  • ui: 111 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

matthewwalsh0
matthewwalsh0 previously approved these changes Oct 9, 2024
vinnyhoward
vinnyhoward previously approved these changes Oct 9, 2024
Copy link
Contributor

@vinnyhoward vinnyhoward left a comment

Choose a reason for hiding this comment

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

✅✅✅

chloeYue
chloeYue previously approved these changes Oct 10, 2024
@chloeYue
Copy link
Contributor

LGTM !

jclancy93
jclancy93 previously approved these changes Oct 10, 2024
@dbrans dbrans added this pull request to the merge queue Oct 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 10, 2024
@dbrans dbrans added this pull request to the merge queue Oct 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 10, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Where are these calls coming from?

Copy link
Member

Choose a reason for hiding this comment

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

I see that transaction.api.cx.metamask.io is used for smart transactions, and has e2e fetch mocks.

But it's unclear to me why the other two domains have been added, and I don't see any mocks for them.

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.

Had a couple of questions about the privacy snapshot

Copy link

sonarcloud bot commented Oct 10, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-transactions Transactions team
Projects
Status: Needs more work from the author
Development

Successfully merging this pull request may close these issues.

8 participants