Add Playwright e2e tests and ngrok support#5
Merged
Merged
Conversation
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.
This pull request introduces a comprehensive Playwright-based end-to-end (E2E) testing suite for the
clipcraft-webproject, along with supporting documentation and continuous integration (CI) workflow automation. The main themes are the addition of E2E test coverage for core user flows, mocking of backend APIs for stable testing, and integration with GitHub Actions for automated test execution.E2E Test Coverage and Structure:
auth.spec.ts,project.spec.ts,analysis-flow.spec.ts,editor.spec.ts) covering authentication, project creation, analysis flow, and editor interactions, ensuring that critical user scenarios are automatically validated. [1] [2] [3] [4]support/flows.ts) providing reusable helper functions for login, project creation, video upload, scenario input, API mocking, and end-to-end analysis flow orchestration.API Mocking for Reliable Testing:
Documentation and Developer Guidance:
README.mdin the E2E directory, documenting test setup, execution commands, test structure, mocking strategy, and integration points with CI.Continuous Integration Automation:
clipcraft-web-e2e.yml) that automatically installs dependencies, builds the app, installs Playwright browsers, and runs E2E tests on pushes and pull requests affecting theclipcraft-webdirectory.Test Suite Implementation:
clipcraft-web/e2e/, covering all major user interactions. [1] [2] [3] [4]API Mocking:
Documentation:
clipcraft-web/e2e/README.mdwith detailed instructions for setup, running tests, test structure, API mocking, result locations, and CI integration.CI Integration:
.github/workflows/clipcraft-web-e2e.ymlto automate E2E test runs on relevant pushes and pull requests, ensuring test coverage is maintained.