-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontend_admin_interactions_smoke.sh
More file actions
33 lines (26 loc) · 1.21 KB
/
Copy pathfrontend_admin_interactions_smoke.sh
File metadata and controls
33 lines (26 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
set -euo pipefail
PORT="${FRONTEND_SMOKE_PORT:-3001}"
BASE_URL="http://127.0.0.1:${PORT}"
SERVER_LOG="${FRONTEND_SMOKE_LOG:-/tmp/deploymate-frontend-admin-interactions-smoke.log}"
DIST_DIR="${FRONTEND_SMOKE_DIST_DIR:-.next-smoke-${PORT}}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
source "${SCRIPT_DIR}/frontend_smoke_shared.sh"
source "${SCRIPT_DIR}/lib/frontend_smoke_checks.sh"
cleanup() {
if [ "${FRONTEND_SMOKE_REUSE_SERVER:-0}" != "1" ]; then
stop_frontend_smoke_server
fi
}
trap cleanup EXIT
if [ "${FRONTEND_SMOKE_REUSE_SERVER:-0}" != "1" ]; then
start_frontend_smoke_server
fi
wait_for_frontend_smoke_url "/app/users"
frontend_smoke_assert_checks "frontend-admin-interactions-smoke" "$BASE_URL" automation_smoke_admin_interactions_checks
echo "[frontend-admin-interactions-smoke] users saved views rendered with active state"
echo "[frontend-admin-interactions-smoke] users bulk actions surface rendered"
echo "[frontend-admin-interactions-smoke] upgrade saved views rendered with active state"
echo "[frontend-admin-interactions-smoke] upgrade bulk actions surface rendered"
echo "[frontend-admin-interactions-smoke] complete"