File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,22 @@ echo "Running tests in parallel"
2323docker compose exec playwright npx playwright test $TEST_FILES --reporter=list --workers=2
2424
2525echo " Modifying config for Sepolia..."
26- docker compose exec nextjs sed -i ' s/chains.devnet/chains.sepolia/g' packages/nextjs/scaffold.config.ts
26+ sed -i ' s/chains.devnet/chains.sepolia/g' packages/nextjs/scaffold.config.ts
2727
28- echo " Waiting 10s for redeploy..."
28+ echo " Rebuilding and restarting nextjs service..."
29+ docker compose up -d --build nextjs
2930
30- sleep 10
31+ echo " Waiting for nextjs to be ready... "
3132
32- while ! curl -s http://localhost:3000 > /dev/null; do
33+ until curl -s http://localhost:3000 > /dev/null; do
3334 sleep 1
3435done
3536
3637echo " Running argentx test..."
37- docker compose exec playwright npx playwright test " /app/tests/argentx-wallet-interaction.spec.ts" --reporter=list
38- [ $? -eq 0 ] && echo " ✅ argentx test passed" || echo " ❌ argentx test failed"
38+
39+ if docker compose exec playwright npx playwright test " /app/tests/argentx-wallet-interaction.spec.ts" --reporter=list; then
40+ echo " ✅ Test passed"
41+ else
42+ echo " ❌ Test failed"
43+ exit 1
44+ fi
You can’t perform that action at this time.
0 commit comments