From 29b59441a4bbada64d8d07bd2609f15dfde670e5 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 12 May 2025 16:33:27 -0600 Subject: test: remove UI tests --- test/integration/container_test.go | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'test/integration') diff --git a/test/integration/container_test.go b/test/integration/container_test.go index 40bbe74..ae9ae84 100644 --- a/test/integration/container_test.go +++ b/test/integration/container_test.go @@ -11,13 +11,11 @@ import ( "time" "github.com/oauth2-proxy/mockoidc" - "github.com/playwright-community/playwright-go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/testcontainers/testcontainers-go" "github.com/testcontainers/testcontainers-go/wait" "github.com/xlgmokha/x/pkg/env" - "github.com/xlgmokha/x/pkg/x" "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/oidc" ) @@ -93,29 +91,4 @@ func TestContainer(t *testing.T) { assert.Equal(t, http.StatusOK, response.StatusCode) }) } - - t.Run("UI", func(t *testing.T) { - if env.Fetch("SKIP_E2E", "") != "" { - t.Skip() - } - - _ = playwright.Install() - - pw := x.Must(playwright.Run()) - browser := x.Must(pw.Firefox.Launch(playwright.BrowserTypeLaunchOptions{ - Headless: playwright.Bool(env.Fetch("HEADLESS", "true") == "true"), - SlowMo: playwright.Float(1000), - })) - page := x.Must(browser.NewPage()) - - defer browser.Close() - defer pw.Stop() - - t.Run("initiates an OIDC login", func(t *testing.T) { - require.NoError(t, page.Context().ClearCookies()) - response, err := page.Goto(sparkleEndpoint + "/") - require.NoError(t, err) - assert.True(t, response.Ok()) - }) - }) } -- cgit v1.2.3