mirror of
https://github.com/jetkvm/kvm.git
synced 2026-06-20 05:24:32 +00:00
* Implement local update testing framework with Makefile integration and E2E tests - Added `scripts/test_local_update.sh` for orchestrating local OTA update tests. - Modified `Makefile` to include a new `test_e2e` target that builds the binary and calls the new script. - Created `ui/e2e/local-update-flow.spec.ts` for end-to-end testing of the update process. - Enhanced UI components with `data-testid` attributes for better testability. - Introduced `getCurrentVersion()` helper function to retrieve the app version from the `/metrics` endpoint. - Ensured cleanup processes are robust, even on failure or interruption. * Update Makefile and E2E test scripts for improved OTA testing and version management - Bump version from 0.5.1 to 0.5.2 in the Makefile. - Modify `test_e2e` target to use DEVICE_IP from environment or prompt for input. - Replace `test_release_on_device.sh` with `test_local_update.sh` for consistency in testing. - Enhance `test_local_update.sh` to include stable version retrieval from GitHub and improve logging. - Remove deprecated `local-update-flow.spec.ts` and streamline E2E tests for better coverage. - Refactor helper functions for clarity and maintainability in test scripts. * Refactor E2E test scripts and Makefile for improved clarity and functionality - Update `Makefile` to streamline the `test_e2e` target by removing unnecessary dependencies and simplifying the Playwright installation command. - Enhance `scripts/test_local_update.sh` by cleaning up logging, removing redundant output, and improving the structure for better readability. - Update E2E test scripts to remove excessive console logging, ensuring a cleaner output during test execution. - Refactor test steps for better organization and clarity, particularly in the OTA update flow tests. - Adjust Playwright configuration to enable step printing for better visibility during test runs. * Fix linting errors