From 0ed905fd4e7e59a2068a02e90c8a50f79c3da945 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 29 May 2025 20:49:53 -0400 Subject: [PATCH] fix(internal/test): skip integration tests if SKIP_INTEGRATION is set (#586) Signed-off-by: Xe Iaso --- internal/test/playwright_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/internal/test/playwright_test.go b/internal/test/playwright_test.go index 66c84df..2ac5d94 100644 --- a/internal/test/playwright_test.go +++ b/internal/test/playwright_test.go @@ -214,6 +214,11 @@ func TestPlaywrightBrowser(t *testing.T) { return } + if os.Getenv("SKIP_INTEGRATION") != "" { + t.Skip("SKIP_INTEGRATION was set") + return + } + startPlaywright(t) pw := setupPlaywright(t) @@ -289,6 +294,11 @@ func TestPlaywrightWithBasePrefix(t *testing.T) { return } + if os.Getenv("SKIP_INTEGRATION") != "" { + t.Skip("SKIP_INTEGRATION was set") + return + } + t.Skip("NOTE(Xe)\\ these tests require HTTPS support in #364") startPlaywright(t)