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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Sign Transaction UI Test #1172

wants to merge 3 commits into from

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").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog (Not Ready)
Development

Successfully merging this pull request may close these issues.

[Sign Transaction] Add tests
3 participants