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

Sign Transaction UI Test #1172

Merged
merged 4 commits into from
Nov 25, 2024
Merged

Sign Transaction UI Test #1172

merged 4 commits into from
Nov 25, 2024

Conversation

jeesunikim
Copy link
Contributor

@jeesunikim jeesunikim commented Nov 21, 2024

Sign Transaction UI Test

  • flow for the XDR with one operation that also checks its final signed xdr with two signatures signed from secret keys and signature
  • flow for the XDR with 3 operations that also checks its final signed xdr with two signatures signed from secret keys and signature
  • flow for the non transaction enveloper XDR

For Ledgers and Wallet Extension, it checks its happy path - making sure the dropdown works and trezor to open the new link. Ledger opens an extension so i skipped the new tab flow for ledger. Wallet Extension checks to make sure the modal pops up and it lists 6 wallets that it supports.

@stellar-jenkins
Copy link

@jeesunikim jeesunikim changed the title Add a Sign TX Test Add Sign TX UI Test Nov 22, 2024
@jeesunikim jeesunikim changed the title Add Sign TX UI Test Sign Transaction UI Test Nov 22, 2024
@stellar-jenkins
Copy link

@jeesunikim jeesunikim marked this pull request as ready for review November 22, 2024 00:48
@jeesunikim jeesunikim linked an issue Nov 22, 2024 that may be closed by this pull request
@stellar-jenkins
Copy link

await expect(page.getByRole("listitem")).toHaveCount(6);

// Exit out of the wallet extension modal
await page.click("body", { position: { x: 10, y: 10 } });
Copy link
Contributor

Choose a reason for hiding this comment

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

This test will break if the close button position changes, but style changes shouldn't affect the tests. We can't use a class selector? Something like page.locator(".wallets-header__button").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's more of a clicking outside of the modal

@stellar-jenkins
Copy link

@jeesunikim jeesunikim merged commit 2268150 into master Nov 25, 2024
3 checks passed
@jeesunikim jeesunikim deleted the sign-tx-test branch November 25, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Sign Transaction] Add tests
3 participants