Add Playwright end-to-end testing setup with email notifications#323
Merged
Conversation
…d wallet integration - Introduced Dockerfile for Playwright to set up the testing environment. - Created docker-compose configuration for orchestrating services including PostgreSQL and the application. - Added detailed instructions for running Playwright tests locally in RUNNING_LOCALLY.md. - Implemented authentication fixtures to handle wallet session management during tests. - Developed wallet fixture for CIP-0030 wallet injection and interaction with the application. - Added global setup for environment variable validation and context loading. - Implemented helper functions for signing transactions and fetching UTxOs from Blockfrost. - Created a comprehensive ring transfer test suite to validate multi-signature transactions. - Added configuration for Playwright tests including output directories and reporting.
fix: instantiate provider lazily in resolveAdaHandle to prevent crashes in preprod environments feat: persist hasCheckedSession in sessionStorage to avoid redundant session checks and modal displays refactor: make NEXT_PUBLIC_BLOCKFROST_API_KEY_MAINNET optional for better environment handling fix: ensure BlockfrostProvider is instantiated only with a valid API key
- Updated walletFixture to improve error handling and state management during wallet interactions. - Modified meshSign to correctly handle transaction signing with CIP-30 compliance. - Enhanced ring-transfer tests to include better diagnostics and ensure spendable UTxOs are available before transactions. - Improved new transaction page to handle insufficient funds gracefully. - Updated UTxO selector to reset state on fetch failure. - Added early return in sendDiscordMessage for empty recipient lists. - Configured default network setting in Zustand store based on environment variable. - Introduced stored payment script wallet handling in wallet building logic. - Excluded additional directories from TypeScript compilation.
- Added build arguments for Blockfrost API keys in docker-compose files to ensure consistent client bundle paths. - Updated Dockerfile to handle Blockfrost API keys as environment variables for production builds. - Modified CI workflow to allow insecure cookies for wallet sessions during testing. - Refactored wallet handling in various components to use the new useMeshWallet hook, ensuring compatibility with the latest wallet API. - Enhanced error handling in wallet session management to prevent issues with unconnected wallets.
…and added parallel playwright workers
- Updated @playwright/test from ^1.50.0 to 1.60.0 in package.json and package-lock.json. - Removed unnecessary comments and improved code readability in resolve-adahandle.tsx. - Simplified session checking logic in layout.tsx by removing sessionStorage handling. - Cleaned up data-testid attributes in RecipientRow.tsx and index.tsx. - Removed redundant state management in UTxOSelector.tsx. - Removed unused broadcastDone state in transaction-card.tsx. - Enforced required Blockfrost API key in env.js. - Refactored wallet session cookie handling in walletSession.ts. - Removed unused function buildStoredPaymentScriptWallet in common.ts. - Simplified getProvider function to directly return BlockfrostProvider instance.
…and address encoding
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… lookupMultisigWallet API
…al/non-critical step failures
…in governance routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a comprehensive Playwright testing environment with PostgreSQL and wallet integration. Enhance wallet handling and implement an email notification system for wallet signatures. Update configurations and improve error handling across various components. Include detailed instructions for local testing and ensure compatibility with the latest wallet API.