- Update E2E test credentials to match actual seed users (user@veza.music, artist@veza.music, admin@veza.music, mod@veza.music) - Fix hardcoded "Suggested Accounts" in SuggestionsWidget with i18n key - Replace hardcoded amelie_dubois references with CONFIG.users.creator - Refactor auth, player, upload E2E tests for reliability - Add tmt test plans and scripts for CI integration - Simplify CI workflow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
36 lines
673 B
Bash
Executable file
36 lines
673 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
WEB_DIR="$REPO_ROOT/apps/web"
|
|
|
|
echo "Storybook Build & Audit"
|
|
|
|
cd "$WEB_DIR"
|
|
|
|
npm run build-storybook
|
|
|
|
npx serve -s storybook-static -l 6007 &
|
|
SERVER_PID=$!
|
|
|
|
for i in $(seq 1 30); do
|
|
if curl -sf http://localhost:6007 >/dev/null; then
|
|
echo "Storybook ready"
|
|
break
|
|
fi
|
|
sleep 2
|
|
done
|
|
|
|
curl -sf http://localhost:6007 >/dev/null || { echo "Storybook failed to start"; kill $SERVER_PID 2>/dev/null; exit 1; }
|
|
|
|
npm run test:storybook
|
|
STATUS=$?
|
|
|
|
kill $SERVER_PID 2>/dev/null || true
|
|
|
|
if [ $STATUS -ne 0 ]; then
|
|
echo "Storybook audit failed."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Storybook audit passed."
|