Skip to content

Commit

Permalink
chore: Bump Cypress & TestCafe version (#975)
Browse files Browse the repository at this point in the history
* chore: Bump Cypress&TestCafe version

* unpin browser version

* disable redefines-builtin-id

* fix

* fix lint err

* try to change to warning

* if it does not work, remove it

* lint

---------

Co-authored-by: Alex Plischke <[email protected]>
  • Loading branch information
tianfeng92 and alexplischke authored Nov 14, 2024
1 parent a1cad0e commit f1bb316
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
run: ./saucectl run -c .sauce/playwright.yml --timeout 10m

- name: Saucectl RUN - CLI Driven
run: ./saucectl run playwright ".*.js" -c "" --name "CLI Driven" --browser chromium --rootDir tests/e2e/playwright/ --playwright.version 1.43.1 --timeout 10m -r us-west-1
run: ./saucectl run playwright ".*.js" -c "" --name "CLI Driven" --browser chromium --rootDir tests/e2e/playwright/ --playwright.version 1.48.2 --timeout 10m -r us-west-1

testcafe:
needs: build
Expand All @@ -170,7 +170,7 @@ jobs:
run: ./saucectl run -c .sauce/testcafe.yml --timeout 10m

- name: Saucectl RUN - CLI Driven
run: ./saucectl run testcafe "*.test.js" -c "" --name "CLI Driven" --browser chrome --browserVersion 128 --rootDir tests/e2e/testcafe/ --testcafe.version 3.5.0 --timeout 10m -r us-west-1
run: ./saucectl run testcafe "*.test.js" -c "" --name "CLI Driven" --browser chrome --browserVersion 128 --rootDir tests/e2e/testcafe/ --testcafe.version 3.7.0 --timeout 10m -r us-west-1

cypress:
needs: build
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
-c "" --name "CLI Driven" \
--rootDir tests/e2e/cypress_10/e2e/ \
--browser chrome \
--cypress.version 13.7.3 \
--cypress.version 13.15.2 \
--cypress.configFile "cypress.config.js" \
--timeout 10m \
-r us-west-1
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ linters-settings:
# https://staticcheck.io/docs/configuration/options/#checks
# Default: ["*"]
checks: [ "all", "-SA1019" ]

2 changes: 1 addition & 1 deletion .sauce/cypress-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rootDir: tests/e2e/cypress_10/e2e/
defaults:
timeout: 5m
cypress:
version: 13.15.1
version: 13.15.2
configFile: "cypress.config.js"
suites:
# - name: "(experimental) webkit test"
Expand Down
3 changes: 1 addition & 2 deletions .sauce/testcafe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ sauce:
defaults:
timeout: 5m
testcafe:
version: 3.6.2
version: 3.7.0
rootDir: tests/e2e/testcafe/
suites:
- name: Chrome in sauce
browserName: chrome
browserVersion: "128" # TODO(AlexP): Pinned due to TestCafe <= 3.6.2 not working with Chrome 130+.
src:
- "*.test.js"
platformName: "macOS 12"
Expand Down
2 changes: 2 additions & 0 deletions api/saucectl.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@
"version": {
"enum": [
"package.json",
"13.15.2",
"13.15.1",
"13.14.2",
"13.13.3",
Expand Down Expand Up @@ -1653,6 +1654,7 @@
"$ref": "#/allOf/7/then/properties/playwright/properties/version",
"enum": [
"package.json",
"3.7.0",
"3.6.2",
"3.6.1",
"3.6.0",
Expand Down
1 change: 1 addition & 0 deletions api/v1/framework/cypress.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"$ref": "../subschema/common.schema.json#/definitions/version",
"enum": [
"package.json",
"13.15.2",
"13.15.1",
"13.14.2",
"13.13.3",
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha/framework/testcafe.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"$ref": "../subschema/common.schema.json#/definitions/version",
"enum": [
"package.json",
"3.7.0",
"3.6.2",
"3.6.1",
"3.6.0",
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/docker/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ func logPushProgress(reader io.ReadCloser) error {
}

// createBar returns a customized progress bar for Docker image pushes.
func createBar(max int64, desc string) *progressbar.ProgressBar {
func createBar(limit int64, desc string) *progressbar.ProgressBar {
return progressbar.NewOptions64(
max,
limit,
progressbar.OptionSetDescription(desc),
progressbar.OptionSetWriter(os.Stderr),
progressbar.OptionShowBytes(true),
Expand Down
6 changes: 3 additions & 3 deletions internal/http/resto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ func TestResto_GetJobAssetFileContent(t *testing.T) {
}

func randJobStatus(j *restoJob, isComplete bool) {
min := 1
max := 10
randNum := rand.Intn(max-min+1) + min
lower := 1
upper := 10
randNum := rand.Intn(upper-lower+1) + lower

status := "error"
if isComplete {
Expand Down
9 changes: 0 additions & 9 deletions internal/multipartext/seeker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package multipartext
import (
"fmt"
"io"

"golang.org/x/exp/constraints"
)

// SizedReadSeeker is a ReadSeeker that also knows its size.
Expand Down Expand Up @@ -125,10 +123,3 @@ func (mr *multiReadSeeker) WriteTo(w io.Writer) (sum int64, err error) {
}
return sum, nil
}

func min[T constraints.Ordered](a, b T) T {
if a < b {
return a
}
return b
}

0 comments on commit f1bb316

Please sign in to comment.