Skip to content

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • New comprehensive E2E test for complete sell flow on Sepolia testnet
  • Full MetaMask integration with Chrome 126 and Synpress
  • Handles network switch popup (Mainnet → Sepolia)
  • Includes Sepolia Etherscan transaction verification

Test Coverage

  1. Login Flow: Navigate to /sell → CRYPTO WALLET → MetaMask → Connect → Sign
  2. Network Switch: Automatic handling of MetaMask network switch popup
  3. Sell Form: Enter amount, select IBAN, initiate transaction
  4. Transaction: MetaMask approval and blockchain submission
  5. Verification: Sepolia Etherscan API verification + visual screenshot

How to Run

# Prerequisites
npm install
npm run synpress:setup  # Chrome 126 + MetaMask 11.9.1

# Set TEST_SEED in .env (wallet with Sepolia ETH + USDT)
echo "TEST_SEED=your mnemonic" >> .env

# Run test
npx playwright test --config=playwright.synpress.config.ts e2e/synpress/sepolia-sell-e2e.spec.ts

Status

🚧 Draft - Test flow works through authentication, still refining transaction completion handling.

Screenshots

Screenshots are saved to e2e/screenshots/debug/ during test execution.

- New comprehensive E2E test for complete sell flow on Sepolia testnet
- Handles MetaMask wallet setup with Chrome 126
- Implements login flow: CRYPTO WALLET → MetaMask → Connect → Sign
- Handles network switch popup (Mainnet → Sepolia)
- Navigates to /sell with Sepolia USDT
- Includes IBAN selection and transaction flow
- Adds Sepolia Etherscan transaction verification with visual screenshot
- Updates playwright.synpress.config.ts to include new test file

Test command: npx playwright test --config=playwright.synpress.config.ts e2e/synpress/sepolia-sell-e2e.spec.ts
if (await ibanInput.isVisible({ timeout: 3000 }).catch(() => false)) {
await ibanInput.fill('CH9300762011623852957'); // Test IBAN
console.log('Entered test IBAN');
ibanSelected = true;
Copy link
Member

Choose a reason for hiding this comment

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

Please fix?

@github-actions
Copy link

github-actions bot commented Jan 13, 2026

🤖 PR Review Bot

⚠️ Security: 0 critical, 30 high vulnerabilities


This is an automated review. Please address the issues above.

- Change default test amount from 0.01 to 10 USDT
- Add wallet2 visual regression baseline screenshots
@TaprootFreak TaprootFreak marked this pull request as ready for review January 13, 2026 23:14
@TaprootFreak TaprootFreak merged commit 7a72ab7 into develop Jan 13, 2026
6 checks passed
@TaprootFreak TaprootFreak deleted the feature/sepolia-e2e-metamask-sell branch January 13, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants