diff --git a/go.mod b/go.mod index 365a2a07d..3adcc2da0 100644 --- a/go.mod +++ b/go.mod @@ -33,7 +33,7 @@ require ( require ( github.com/google/uuid v1.6.0 - github.com/playwright-community/playwright-go v0.5200.0 + github.com/mxschmitt/playwright-go v0.6100.0 github.com/spf13/viper v1.20.1 ) @@ -48,7 +48,7 @@ require ( github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect github.com/cloudflare/circl v1.6.3 // indirect - github.com/deckarep/golang-set/v2 v2.7.0 // indirect + github.com/deckarep/golang-set/v2 v2.8.0 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/emicklei/go-restful/v3 v3.11.2 // indirect github.com/evanphx/json-patch/v5 v5.9.11 // indirect @@ -146,4 +146,4 @@ go 1.24.4 toolchain go1.24.13 -tool github.com/playwright-community/playwright-go/cmd/playwright +tool github.com/mxschmitt/playwright-go/cmd/playwright diff --git a/go.sum b/go.sum index 43354f72d..cba63d4ee 100644 --- a/go.sum +++ b/go.sum @@ -35,8 +35,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/deckarep/golang-set/v2 v2.7.0 h1:gIloKvD7yH2oip4VLhsv3JyLLFnC0Y2mlusgcvJYW5k= -github.com/deckarep/golang-set/v2 v2.7.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= +github.com/deckarep/golang-set/v2 v2.8.0 h1:swm0rlPCmdWn9mESxKOjWk8hXSqoxOp+ZlfuyaAdFlQ= +github.com/deckarep/golang-set/v2 v2.8.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4= github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= @@ -185,8 +185,6 @@ github.com/migueleliasweb/go-github-mock v0.0.18 h1:0lWt9MYmZQGnQE2rFtjlft/YtD6h github.com/migueleliasweb/go-github-mock v0.0.18/go.mod h1:CcgXcbMoRnf3rRVHqGssuBquZDIcaplxL2W6G+xs7kM= github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= -github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc= -github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -200,6 +198,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mxschmitt/playwright-go v0.6100.0 h1:HYNnbGZsTHz8veJyDGe4fU1iPxfvXqzmwKchzuvGCsY= +github.com/mxschmitt/playwright-go v0.6100.0/go.mod h1:A7VtrS3j/c8ToGnSVUaOfNtQQVxi6JotUS0jeuus6r4= github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32 h1:W6apQkHrMkS0Muv8G/TipAy/FJl/rCYT0+EuS8+Z0z4= github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32/go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= @@ -217,8 +217,6 @@ github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNH github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/playwright-community/playwright-go v0.5200.0 h1:z/5LGuX2tBrg3ug1HupMXLjIG93f1d2MWdDsNhkMQ9c= -github.com/playwright-community/playwright-go v0.5200.0/go.mod h1:UnnyQZaqUOO5ywAZu60+N4EiWReUqX1MQBBA3Oofvf8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= diff --git a/test/e2e/devsandbox-dashboard/activities_page_test.go b/test/e2e/devsandbox-dashboard/activities_page_test.go index 3a5947438..85be8abd5 100644 --- a/test/e2e/devsandbox-dashboard/activities_page_test.go +++ b/test/e2e/devsandbox-dashboard/activities_page_test.go @@ -5,7 +5,7 @@ import ( "testing" sandboxui "github.com/codeready-toolchain/toolchain-e2e/testsupport/devsandbox-dashboard" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/test/e2e/devsandbox-dashboard/fresh_signup_test.go b/test/e2e/devsandbox-dashboard/fresh_signup_test.go index 1233bf0a1..6a297dbfc 100644 --- a/test/e2e/devsandbox-dashboard/fresh_signup_test.go +++ b/test/e2e/devsandbox-dashboard/fresh_signup_test.go @@ -10,7 +10,7 @@ import ( toolchainv1alpha1 "github.com/codeready-toolchain/api/api/v1alpha1" "github.com/codeready-toolchain/toolchain-e2e/testsupport" sandboxui "github.com/codeready-toolchain/toolchain-e2e/testsupport/devsandbox-dashboard" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "github.com/spf13/viper" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/test/e2e/devsandbox-dashboard/header_test.go b/test/e2e/devsandbox-dashboard/header_test.go index 34d163037..01278db57 100644 --- a/test/e2e/devsandbox-dashboard/header_test.go +++ b/test/e2e/devsandbox-dashboard/header_test.go @@ -5,7 +5,7 @@ import ( "testing" sandboxui "github.com/codeready-toolchain/toolchain-e2e/testsupport/devsandbox-dashboard" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "github.com/stretchr/testify/require" ) diff --git a/testsupport/devsandbox-dashboard/login.go b/testsupport/devsandbox-dashboard/login.go index d7dc8e46e..42607de2b 100644 --- a/testsupport/devsandbox-dashboard/login.go +++ b/testsupport/devsandbox-dashboard/login.go @@ -4,7 +4,7 @@ import ( "log" "testing" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/testsupport/devsandbox-dashboard/popup.go b/testsupport/devsandbox-dashboard/popup.go index bdf052f54..23629b1cb 100644 --- a/testsupport/devsandbox-dashboard/popup.go +++ b/testsupport/devsandbox-dashboard/popup.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "k8s.io/apimachinery/pkg/util/wait" ) diff --git a/testsupport/devsandbox-dashboard/setup.go b/testsupport/devsandbox-dashboard/setup.go index 522d6b2a7..9613a83cb 100644 --- a/testsupport/devsandbox-dashboard/setup.go +++ b/testsupport/devsandbox-dashboard/setup.go @@ -8,7 +8,7 @@ import ( "sync" "testing" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "github.com/spf13/viper" "github.com/stretchr/testify/require" ) @@ -58,7 +58,7 @@ func Setup(t *testing.T, testName string) playwright.Page { traceDirectory := getTraceDirectory(t) opts.RecordVideo = &playwright.RecordVideo{ - Dir: traceDirectory, + Dir: playwright.String(traceDirectory), } context, err := browser.NewContext(opts) diff --git a/testsupport/devsandbox-dashboard/trace.go b/testsupport/devsandbox-dashboard/trace.go index fd62838d3..897869c0a 100644 --- a/testsupport/devsandbox-dashboard/trace.go +++ b/testsupport/devsandbox-dashboard/trace.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "github.com/stretchr/testify/require" ) diff --git a/testsupport/devsandbox-dashboard/utils.go b/testsupport/devsandbox-dashboard/utils.go index 59b8fd407..e56d30783 100644 --- a/testsupport/devsandbox-dashboard/utils.go +++ b/testsupport/devsandbox-dashboard/utils.go @@ -3,7 +3,7 @@ package sandboxui import ( "testing" - "github.com/playwright-community/playwright-go" + "github.com/mxschmitt/playwright-go" "github.com/stretchr/testify/require" )