implemented E2E suite for multi-file upload, state resets, and UI ins…#299
implemented E2E suite for multi-file upload, state resets, and UI ins…#299BSalaeddin merged 10 commits intoDevinoSolutions:devfrom
Conversation
Fix publish CI and add test-release dry-run for dev branch
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
Hi @stephenOwino thank you so much for your pull request!
There are also some failing checks on this PR; please make sure those are addressed so we can consider merging these tests. |
|
An additional note: I changed the PR to point to the |
|
@AminDhouib thanks for the feedback.! I've submitted PR #300 to fix the issue.The upload button visibility bug. The button was remaining visible (though disabled) after upload failures due to the condition in While testing locally without S3 environment variables configured, uploads fail with a 500 error. This failure scenario revealed that the upload button was staying visible instead of disappearing. The fix ensures the button hides for both SUCCESSFUL and FAILED states. |
…y tests and removed backend dependency
test.mp4the problemThe tests were previously failing because they attempted to communicate with a live /api/upload endpoint. Without the correct environment variables , the requests failed (500 errors) my solutionImplemented Playwright page.route to mock successful 200 OK responses for all upload actions. This ensures the UI receives the "Success" signal regardless of the environment. |
|
Thanks for the PR @stephenOwino ! |
|
@BSalaeddin Felle free to merge! thanks for the improvements! |
This PR adds a Playwright testing suite for the Upup uploader component to automate manual checks and catch regressions early.
What was added:
E2E Framework: Set up a Page Object Model (POM) structure for cleaner, reusable tests.
Test Coverage:
Initial state: Checks that upload instructions display correctly.
Multi-file upload: Validates the component's 10-file limit.
State reset: Confirms "Remove all files" resets the UI.
Bug Documentation: Added a failing test for the "Upload" button, which remains active after a click.
How to run
Ensure Storybook is running on port 6007.
Run pnpm run test:e2e from the packages/upup directory.