diff options
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()) - }) - }) } |
