diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-21 16:15:51 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-21 16:15:51 -0600 |
| commit | a920a8cfe415858bb2777371a77018599ffed23f (patch) | |
| tree | dd7dcf8e78ea554d071ad502f92b7908687daa3e /test/integration/ui.go | |
| parent | 16c27cd885b9c0d1241dfead3120643f0e8c556c (diff) | |
| parent | 5f76ebe3b95b491a7a07ddb9dd5799735cf3e159 (diff) | |
Merge branch 'minit' into 'main'
Replace entrypoint.sh with a Procfile runner
See merge request gitlab-org/software-supply-chain-security/authorization/sparkled!18
Diffstat (limited to 'test/integration/ui.go')
| -rw-r--r-- | test/integration/ui.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/test/integration/ui.go b/test/integration/ui.go deleted file mode 100644 index 1af0744..0000000 --- a/test/integration/ui.go +++ /dev/null @@ -1,33 +0,0 @@ -package test - -import ( - "testing" - - playwright "github.com/playwright-community/playwright-go" - "github.com/stretchr/testify/require" - "github.com/xlgmokha/x/pkg/env" - "github.com/xlgmokha/x/pkg/x" -) - -func WithUI(t *testing.T, callback x.Visitor[playwright.Browser]) { - t.Run("UI", func(t *testing.T) { - if isGitlabCI(t) { - t.Skip() - } - _ = playwright.Install() - - driver, err := playwright.Run() - require.NoError(t, err) - - browser, err := driver.Firefox.Launch(playwright.BrowserTypeLaunchOptions{ - Headless: playwright.Bool(env.Fetch("HEADLESS", "true") == "true"), - SlowMo: playwright.Float(1000), - }) - require.NoError(t, err) - - defer browser.Close() - defer driver.Stop() - - callback(browser) - }) -} |
