Commit Graph
102 Commits
Author SHA1 Message Date
trentlarson b1056fc8dd add icon asset and new capacitor step, and change "test-all" to "test:all" 2025-03-22 16:34:41 -06:00
trentlarson 189bfabcf8 add LogView for those cases where the log download doesn't work 2025-03-22 15:15:17 -06:00
trentlarson e96617ca0f tweak tests for clarity 2025-02-28 12:17:22 -07:00
trentlarson 67afe6a952 wait for some elements before calling 'click' 2025-02-17 08:46:46 -07:00
trentlarson 886202e4c8 fix a check for user's registration status 2025-02-16 21:00:52 -07:00
trentlarson 811fddf24a fix error setting the apiServer to "", plus some refactors while fixing test 40 2025-02-16 20:36:44 -07:00
trentlarson f2febbd94a fix where function is not found 2025-02-16 17:05:01 -07:00
trentlarson c9c3cacfbd fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user) 2025-02-16 09:11:28 -07:00
Matthew Raymer a66093028e docs(tests): Add comprehensive test suite documentation
- Add detailed header documentation to playwright tests
- Document test categories and flows
- Add key selector documentation
- Document state verification and alert handling
- Include code examples and usage patterns
- Add important checks and requirements

The documentation helps developers understand the foundational tests that verify
basic application functionality before running more complex test suites.
2025-02-16 03:29:22 +00:00
Matthew Raymer 5550d6a411 feat(tests): Add structured logging and screenshot capture
Enhances test debugging capabilities by adding:
- Structured logging with timestamps and categories (INFO/STEP/SUCCESS/WAIT)
- Systematic screenshot capture at key test steps
- Comprehensive file documentation headers
- Improved error handling with visual state capture
- Organized test step numbering and progress tracking

Key improvements:
- Added screenshot helper function with consistent naming
- Ensured test-results directory exists before captures
- Replaced console.log with structured logging utility
- Added try-catch blocks with failure state capture
- Improved debugging info for gift button not found error

Tests affected:
- 35-record-gift-from-image-share.spec.ts
- 40-add-contact.spec.ts

Note: Screenshots are stored in test-results/ with test-specific prefixes
2025-02-15 12:50:54 +00:00
Matthew Raymer f07a2de565 fix(tests): Improve gift recording test reliability
- Add better error handling and logging for gift recording flow
- Add explicit navigation to contacts page before finding gift button
- Add info icon click handling when needed
- Add more comprehensive button detection with multiple selectors
- Add debug logging for page state and navigation
- Add screenshot capture on failures
- Add retry logic with proper state verification
- Fix linter errors in playwright config

The changes help diagnose and handle various UI states that can occur during gift recording, making the tests more reliable especially on Linux.
2025-02-15 07:53:48 +00:00
trentlarson 777f72f85d refine instructions & remove duplicate info 2025-02-14 19:23:31 -07:00
Matthew Raymer a5c86fbc53 feat: improve test stability and API routing
- Add proxy configuration for API requests in dev/test
- Target default endorser API server in development
- Add proxy for /api endpoints to handle CORS
- Enhance contact management test reliability
- Add comprehensive error handling and debugging
- Extract test helper functions

Breaking: None
2025-02-14 10:27:01 +00:00
Matthew Raymer 11d1fae35a refactor(tests): enhance contact management test reliability
- Add comprehensive error handling with try-catch blocks
- Add TypeScript type annotations for Page parameters
- Add debug logging for test troubleshooting
- Add retry logic for flaky operations
- Add API request routing for port conflicts
- Add detailed JSDoc documentation
- Extract helper functions for better maintainability
- Add timeout constants for different operations
- Improve error messages with better context
- Add load state handling for network operations
2025-02-14 10:01:12 +00:00
trentlarson 34248a2ee5 fix test 2025-02-04 20:12:08 -07:00
trentlarson 920d3f4d25 fix linting, add to the 10-project timeout 2025-01-29 21:36:27 -07:00
trentlarson aec530f5a8 fix build and auto-test issues 2025-01-20 13:06:05 -07:00
trentlarson 5c58f75d82 fix test number check that increments 2025-01-11 16:41:26 -07:00
trentlarson 5f39beef55 run the tests on a different port (so there's no conflict when running the development server) 2025-01-09 08:51:09 -07:00
trentlarson 0a7645b8e7 fix tests that were broken by contact-edit page changes 2025-01-05 19:37:49 -07:00
trentlarson 3b6d981046 bump version to 0.3.46 and fix vulnerabilities 2025-01-03 13:01:51 -07:00
trentlarson 55abb5d925 add test that copies contact-import JWT to clipboard and imports from it 2025-01-01 20:08:21 -07:00
trentlarson e67ae23879 add number of confirmers to certificate & show DID info when appropriate 2024-12-20 15:49:42 -07:00
trentlarson 9861a1388e allow to deselect the giver & refactor dialog to group giver vs recipient 2024-11-30 17:27:16 -07:00
trentlarson f7fd568c60 add tests for gives to & from projects 2024-11-29 10:42:58 -07:00
trentlarson 7777fa202b finish separation of daily reminder message, bump version to 0.3.34 2024-11-24 13:09:40 -07:00
trentlarson a3b10d9a78 adjust test lines to await/expect appropriately 2024-11-07 19:07:45 -07:00
trentlarson a73f0239c9 fix problem not showing user's projects on project page 2024-11-07 18:48:52 -07:00
trentlarson bacf9d7de6 fix problem with "Affirm Delivery" on offer claim page, plus other look-and-feel tweaks 2024-11-07 18:17:33 -07:00
trentlarson 0d880d1edc add "+" to numbers if hit limit (>50), fix linting 2024-11-05 09:06:04 -07:00
trentlarson f96c5892e7 add test for user-project offers on front page 2024-11-05 05:50:15 -07:00
trentlarson 195ba6c759 add new projects to front page 2024-11-04 19:57:39 -07:00
trentlarson 5f452dcf73 add tests for new activity of offers-directly-to-user 2024-11-03 20:09:54 -07:00
trentlarson 67b2b7199a fix tests (from project-page switch 4 commits ago) and fix linting 2024-11-03 15:23:03 -07:00
trentlarson 00b191c4fd suggest new user going to the front page 2024-10-24 20:04:08 -06:00
trentlarson 45214eabc5 adjust tests for new onboarding messages 2024-10-23 09:07:34 -06:00
trentlarson 98afa8a259 refactor invite link & add test 2024-10-08 08:36:32 -06:00
trentlarson cd9f6b448b add more specific check to avoid complaint about multiple matches 2024-09-22 13:27:21 -06:00
trentlarson 534f3d8a8b allow bulk-imported contacts to have visibility set 2024-09-17 18:30:50 -06:00
trentlarson 4fd2319d53 fix error is OfferDialog where assignment to a project was missed, plus some refactors 2024-09-16 15:12:32 -06:00
trentlarson 008ae9e906 fix alert when looking at one's own activity 2024-09-15 19:53:12 -06:00
trentlarson 8111b0e5cf modify the settings to allow account-specific settings, eg. for "isRegistered" 2024-09-15 16:30:46 -06:00
Jose Olarte III 514ac7b8b5 Variable website, date and time 2024-08-30 16:56:37 +08:00
trentlarson 676a03d379 change tests assuming result will be at top 2024-08-29 19:49:35 -06:00
Jose Olarte III 22f85f2321 Improved create project test
- Added editing to test
- Added variables for other values
2024-08-29 19:25:02 +08:00
Jose Olarte III 7aeeeed229 Removed test.slow() 2024-08-28 19:32:51 +08:00
Jose Olarte III 4228d3c390 Moved common functions to testUtils 2024-08-28 19:12:59 +08:00
Jose Olarte III 2e2705eae8 Remove unneeded timeouts 2024-08-28 16:24:50 +08:00
Jose Olarte III 0e4e6c96e2 Merge branch 'master' into test-playwright 2024-08-28 16:12:52 +08:00
Jose Olarte III 541d8e9935 Remove PWA test
Created a new branch for this specific test, instead
2024-08-28 16:12:30 +08:00