diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-12 16:33:27 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-12 16:33:27 -0600 |
| commit | 29b59441a4bbada64d8d07bd2609f15dfde670e5 (patch) | |
| tree | 3b3583edb261279cfcdfd9eed904d118c4bf67b1 /test/integration | |
| parent | 78ccd9a4312eab7e11da4413733a12953f88a4fe (diff) | |
test: remove UI tests
Diffstat (limited to 'test/integration')
| -rw-r--r-- | test/integration/container_test.go | 27 |
1 files changed, 0 insertions, 27 deletions
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()) - }) - }) } |
