Skip to content

Commit a25bad6

Browse files
committed
chore: fix workflow config file
1 parent 5fd4001 commit a25bad6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

ui-automation/start.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,22 @@ echo "Running tests in parallel"
2323
docker compose exec playwright npx playwright test $TEST_FILES --reporter=list --workers=2
2424

2525
echo "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
3435
done
3536

3637
echo "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

0 commit comments

Comments
 (0)