From 4c22a0b5345f9459a94926764d3c39e787017314 Mon Sep 17 00:00:00 2001 From: Hein van Vlastuin <94352322+hein-obox@users.noreply.github.com> Date: Wed, 10 Dec 2025 14:26:16 +0200 Subject: [PATCH] Internal: Fix flaky daily test [TMZ-997] (#596) --- tests/wp-env/config/setup.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/wp-env/config/setup.sh b/tests/wp-env/config/setup.sh index 1f8d5f2b..0c6c5291 100644 --- a/tests/wp-env/config/setup.sh +++ b/tests/wp-env/config/setup.sh @@ -12,21 +12,21 @@ echo "" echo "Checking for hello-elementor theme specifically:" if [ -d "/var/www/html/wp-content/themes/hello-elementor" ]; then - echo "✅ hello-elementor directory found" + echo "hello-elementor directory found" echo "Contents:" - ls -la /var/www/html/wp-content/themes/hello-elementor/ | head -10 + ls -la /var/www/html/wp-content/themes/hello-elementor/ echo "" echo "Checking for style.css:" if [ -f "/var/www/html/wp-content/themes/hello-elementor/style.css" ]; then - echo "✅ style.css found" + echo "style.css found" echo "Theme header:" - head -10 /var/www/html/wp-content/themes/hello-elementor/style.css + head -10 /var/www/html/wp-content/themes/hello-elementor/style.css || true else - echo "❌ style.css missing" + echo "style.css missing" fi else - echo "❌ hello-elementor directory not found" + echo "hello-elementor directory not found" echo "Available theme directories:" ls -la /var/www/html/wp-content/themes/ fi @@ -39,13 +39,13 @@ echo "" echo "Attempting to activate hello-theme theme..." wp theme activate hello-theme || { - echo "❌ Failed to activate hello-theme, trying hello-elementor..." + echo "Failed to activate hello-theme, trying hello-elementor..." wp theme activate hello-elementor || { - echo "❌ Both activation attempts failed. Final theme list:" + echo "Both activation attempts failed. Final theme list:" wp theme list - echo "❌ Available theme directories in WordPress:" + echo "Available theme directories in WordPress:" ls -la /var/www/html/wp-content/themes/ - echo "❌ Theme activation completely failed" + echo "Theme activation completely failed" exit 1 } }