mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-09-08 23:50:48 +02:00
- Introduced a new script for installing UI testing dependencies, including Node.js and Playwright browsers. - Added comprehensive tests for managing storage providers, covering creation, editing, deletion, and connection testing. - Implemented helper functions for user login and provider management in the test setup. - Enhanced test coverage for various storage provider types, including SFTP, FTP, SMB, S3, and cloud services.
19 lines
580 B
Bash
Executable File
19 lines
580 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to install UI testing dependencies
|
|
|
|
echo "Installing Node.js dependencies for UI testing..."
|
|
npm install
|
|
|
|
echo "Installing Playwright browsers..."
|
|
npx playwright install
|
|
|
|
echo "UI testing setup complete!"
|
|
echo ""
|
|
echo "You can now run UI tests with the following commands:"
|
|
echo " npm test - Run all tests"
|
|
echo " npm run test:headed - Run tests with visible browsers"
|
|
echo " npm run test:debug - Run tests in debug mode"
|
|
echo " npm run test:ui - Run tests with Playwright UI"
|
|
echo ""
|
|
echo "For more information, see tests/README.md" |