Skip to content

Commit

Permalink
TC-47 Test cypress e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Jan 14, 2025
1 parent bfda36c commit 0990e42
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/oxid-esales/cypress.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/bin/bash

# Find and kill any container using port 5900
CONTAINER_ID=$(docker ps --filter "publish=5900" -q)
if [ -n "$CONTAINER_ID" ]; then
for id in $CONTAINER_ID; do
echo "Found container using port 5900: $id"
docker stop $id
docker rm $id
echo "Killed and removed container $id"
done
fi

# Update Selenium service ports in docker-compose.yml
sed -i '/selenium:/,/ports:/ {/5900:5900/s/5900:5900/5980:5900/}' docker-compose.yml

Expand Down

0 comments on commit 0990e42

Please sign in to comment.