Commit graph

7 commits

Author SHA1 Message Date
4cd2872d6a
Merge related e2e tests to reduce redundancy
- Merge 'admin can access pricing page and UI elements are correct' with 'can view current pricing configuration' into single test
- Merge 'can update pricing configuration' with 'form fields update correctly when values change' into single test
- Reduced from 9 tests to 7 tests while maintaining same coverage
- All 40 e2e tests still passing
2025-12-26 22:39:18 +01:00
728aec2bf6
Fix e2e test flakiness by using networkidle instead of response listeners
- Remove response listener promises that were timing out in full suite
- Use waitForLoadState('networkidle') after confirm click
- Add small delay before reading updated value to ensure state refresh
- All 42 e2e tests now passing consistently
2025-12-26 21:15:34 +01:00
1ef5ebe493
Fix ConfirmationButton usage in pricing page and e2e tests
- Update pricing page to use ConfirmationButton API correctly (isConfirming, onConfirm, onCancel, onActionClick)
- Fix e2e tests to set up response listeners before navigation
- Fix validation error selector to use .first() for multiple matches
- All 9 e2e tests now passing
2025-12-26 21:07:56 +01:00
1874c3a057
Fix e2e tests to wait for API calls and form rendering
- Wait for GET /api/admin/pricing response before checking elements
- Wait for heading to be visible before interacting with form
- Wait for inputs to be visible before reading values
- This ensures the page has finished loading before tests run
2025-12-26 21:02:45 +01:00
c9efcf79ff
Fix duplicate variable declarations in e2e tests 2025-12-26 21:00:29 +01:00
7f547d667d
Fix e2e tests for pricing page
- Update selectors to use input indices instead of labels (labels not associated)
- Fix validation error status expectation (400 instead of 422)
- Update exchange.spec.ts to check new config fields (eur_min_buy, etc.)
2025-12-26 20:59:10 +01:00
2ee27cf5b2
Add e2e tests for admin pricing page
- Test admin can access pricing page and view current configuration
- Test admin can update pricing configuration with confirmation
- Test form validation prevents invalid values
- Test regular users cannot access pricing page
- Test API permissions (admin can access, regular user cannot)
- Test API validation works correctly
2025-12-26 20:57:32 +01:00