diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-21 15:44:05 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-21 15:44:05 -0600 |
| commit | d0190ae7146a1a7f89b76ccb7f71430fca136d9d (patch) | |
| tree | 58cdff53c9ba15730e0ccdc7f21e59620c6e725e /test/integration/ui.go | |
| parent | d319c49c79b85a7000a9453589a15536f97f97eb (diff) | |
chore: remote UI tests
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) - }) -} |
