commit | 5c6053038b925662d98576f706f83af9316f6964 | [log] [tgz] |
---|---|---|
author | Jamal Carvalho <jamal@golang.org> | Tue Feb 01 18:11:27 2022 +0000 |
committer | Jamal Carvalho <jamal@golang.org> | Tue Feb 01 21:49:51 2022 +0000 |
tree | ea86f733bd56cfff6f2b904547dee05e810e1529 | |
parent | c4c6069c6b8c6bed95e424d163ec5dad5e05f28a [diff] |
tests/screentest: update snapshots for latest version of screentest The latest version of screentest drops the hostname from file extensions. The script allows for updating the screenshots from multiple environments including CI, staging, and local. Change-Id: I274e9dc00c73d906ba18c5ed9cebd32b162029b1 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/382158 Trust: Jamal Carvalho <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/tests/screentest/run.sh b/tests/screentest/run.sh index e073189..c4aff77 100755 --- a/tests/screentest/run.sh +++ b/tests/screentest/run.sh
@@ -19,9 +19,8 @@ CI/kokoro and should always pass on master. [local] - Run tests against a local server started with ./devtools/run_local.sh staging - frontend. Use to update the staging snapshots to match changes on master - before a deploy. + Run tests against a local server started with ./devtools/run_local.sh <env> + frontend. [exp|dev|staging|prod] Run the tests against live instance of the given env. Use to verify that there @@ -122,9 +121,6 @@ usage ;; esac - if [[ "$update" = -u && "$env" != local ]]; then - die "The --update flag should only be used on localhost." - fi local testfile="tests/screentest/testcases.txt" local cmd="screentest $concurrency $debugger_url $vars $update $testfile"
diff --git a/tests/screentest/testcases.txt b/tests/screentest/testcases.txt index a735954..7217a1b 100644 --- a/tests/screentest/testcases.txt +++ b/tests/screentest/testcases.txt
@@ -1,5 +1,5 @@ windowsize 1536x960 -compare http://localhost:8080::cache {{.Origin}} +compare {{.Origin}}::cache {{.Origin}} {{with .Token}}header Authorization: Bearer {{.}}{{end}} {{with .QuotaBypass}}header X-Go-Discovery-Auth-Bypass-Quota: {{.}}{{end}} output tests/screentest/testdata
diff --git a/tests/screentest/testdata/404-with-fetch-button-540x1080.localhost-8080.a.png b/tests/screentest/testdata/404-with-fetch-button-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/404-with-fetch-button-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/404-with-fetch-button-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/404-with-fetch-button.localhost-8080.a.png b/tests/screentest/testdata/404-with-fetch-button.a.png similarity index 100% rename from tests/screentest/testdata/404-with-fetch-button.localhost-8080.a.png rename to tests/screentest/testdata/404-with-fetch-button.a.png Binary files differ
diff --git a/tests/screentest/testdata/badge-540x1080.localhost-8080.a.png b/tests/screentest/testdata/badge-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/badge-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/badge-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/badge.localhost-8080.a.png b/tests/screentest/testdata/badge.a.png similarity index 100% rename from tests/screentest/testdata/badge.localhost-8080.a.png rename to tests/screentest/testdata/badge.a.png Binary files differ
diff --git a/tests/screentest/testdata/deprecated-package-540x1080.localhost-8080.a.png b/tests/screentest/testdata/deprecated-package-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/deprecated-package-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/deprecated-package-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/deprecated-package.localhost-8080.a.png b/tests/screentest/testdata/deprecated-package.a.png similarity index 100% rename from tests/screentest/testdata/deprecated-package.localhost-8080.a.png rename to tests/screentest/testdata/deprecated-package.a.png Binary files differ
diff --git a/tests/screentest/testdata/empty-jump-to-modal.localhost-8080.a.png b/tests/screentest/testdata/empty-jump-to-modal.a.png similarity index 100% rename from tests/screentest/testdata/empty-jump-to-modal.localhost-8080.a.png rename to tests/screentest/testdata/empty-jump-to-modal.a.png Binary files differ
diff --git a/tests/screentest/testdata/error-540x1080.localhost-8080.a.png b/tests/screentest/testdata/error-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/error-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/error-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/error.localhost-8080.a.png b/tests/screentest/testdata/error.a.png similarity index 100% rename from tests/screentest/testdata/error.localhost-8080.a.png rename to tests/screentest/testdata/error.a.png Binary files differ
diff --git a/tests/screentest/testdata/home-540x1080.localhost-8080.a.png b/tests/screentest/testdata/home-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/home-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/home-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/home.localhost-8080.a.png b/tests/screentest/testdata/home.a.png similarity index 100% rename from tests/screentest/testdata/home.localhost-8080.a.png rename to tests/screentest/testdata/home.a.png Binary files differ
diff --git a/tests/screentest/testdata/license-policy-540x1080.localhost-8080.a.png b/tests/screentest/testdata/license-policy-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/license-policy-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/license-policy-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/license-policy.localhost-8080.a.png b/tests/screentest/testdata/license-policy.a.png similarity index 100% rename from tests/screentest/testdata/license-policy.localhost-8080.a.png rename to tests/screentest/testdata/license-policy.a.png Binary files differ
diff --git a/tests/screentest/testdata/module-that-is-also-a-package-540x1080.localhost-8080.a.png b/tests/screentest/testdata/module-that-is-also-a-package-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/module-that-is-also-a-package-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/module-that-is-also-a-package-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/module-that-is-also-a-package.localhost-8080.a.png b/tests/screentest/testdata/module-that-is-also-a-package.a.png similarity index 100% rename from tests/screentest/testdata/module-that-is-also-a-package.localhost-8080.a.png rename to tests/screentest/testdata/module-that-is-also-a-package.a.png Binary files differ
diff --git a/tests/screentest/testdata/no-documentation-540x1080.localhost-8080.a.png b/tests/screentest/testdata/no-documentation-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/no-documentation-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/no-documentation-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/no-documentation.localhost-8080.a.png b/tests/screentest/testdata/no-documentation.a.png similarity index 100% rename from tests/screentest/testdata/no-documentation.localhost-8080.a.png rename to tests/screentest/testdata/no-documentation.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-not-at-latest-version-of-a-module-540x1080.localhost-8080.a.png b/tests/screentest/testdata/package-not-at-latest-version-of-a-module-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/package-not-at-latest-version-of-a-module-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/package-not-at-latest-version-of-a-module-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-not-at-latest-version-of-a-module.localhost-8080.a.png b/tests/screentest/testdata/package-not-at-latest-version-of-a-module.a.png similarity index 100% rename from tests/screentest/testdata/package-not-at-latest-version-of-a-module.localhost-8080.a.png rename to tests/screentest/testdata/package-not-at-latest-version-of-a-module.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions-540x1080.localhost-8080.a.png b/tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions.localhost-8080.a.png b/tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions.a.png similarity index 100% rename from tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions.localhost-8080.a.png rename to tests/screentest/testdata/package-that-exists-in-multiple-modules-at-the-same-versions.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-with-deprecated-symbols-540x1080.localhost-8080.a.png b/tests/screentest/testdata/package-with-deprecated-symbols-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/package-with-deprecated-symbols-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/package-with-deprecated-symbols-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-with-deprecated-symbols.localhost-8080.a.png b/tests/screentest/testdata/package-with-deprecated-symbols.a.png similarity index 100% rename from tests/screentest/testdata/package-with-deprecated-symbols.localhost-8080.a.png rename to tests/screentest/testdata/package-with-deprecated-symbols.a.png Binary files differ
diff --git a/tests/screentest/testdata/short-readme-has-no-toggle-540x1080.localhost-8080.a.png b/tests/screentest/testdata/package-with-higher-major-version-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/short-readme-has-no-toggle-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/package-with-higher-major-version-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-with-higher-major-version-540x1080.localhost-8080.a.png b/tests/screentest/testdata/package-with-higher-major-version-540x1080.localhost-8080.a.png deleted file mode 100644 index 237fb05..0000000 --- a/tests/screentest/testdata/package-with-higher-major-version-540x1080.localhost-8080.a.png +++ /dev/null Binary files differ
diff --git a/tests/screentest/testdata/short-readme-has-no-toggle.localhost-8080.a.png b/tests/screentest/testdata/package-with-higher-major-version.a.png similarity index 100% rename from tests/screentest/testdata/short-readme-has-no-toggle.localhost-8080.a.png rename to tests/screentest/testdata/package-with-higher-major-version.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-with-higher-major-version.localhost-8080.a.png b/tests/screentest/testdata/package-with-higher-major-version.localhost-8080.a.png deleted file mode 100644 index 3291a21..0000000 --- a/tests/screentest/testdata/package-with-higher-major-version.localhost-8080.a.png +++ /dev/null Binary files differ
diff --git a/tests/screentest/testdata/package-with-multi-GOOS-540x1080.localhost-8080.a.png b/tests/screentest/testdata/package-with-multi-GOOS-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/package-with-multi-GOOS-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/package-with-multi-GOOS-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-with-multi-GOOS.localhost-8080.a.png b/tests/screentest/testdata/package-with-multi-GOOS.a.png similarity index 100% rename from tests/screentest/testdata/package-with-multi-GOOS.localhost-8080.a.png rename to tests/screentest/testdata/package-with-multi-GOOS.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-with-multiple-licenses-540x1080.localhost-8080.a.png b/tests/screentest/testdata/package-with-multiple-licenses-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/package-with-multiple-licenses-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/package-with-multiple-licenses-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/package-with-multiple-licenses.localhost-8080.a.png b/tests/screentest/testdata/package-with-multiple-licenses.a.png similarity index 100% rename from tests/screentest/testdata/package-with-multiple-licenses.localhost-8080.a.png rename to tests/screentest/testdata/package-with-multiple-licenses.a.png Binary files differ
diff --git a/tests/screentest/testdata/really-long-import-path-540x1080.localhost-8080.a.png b/tests/screentest/testdata/really-long-import-path-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/really-long-import-path-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/really-long-import-path-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/really-long-import-path.localhost-8080.a.png b/tests/screentest/testdata/really-long-import-path.a.png similarity index 100% rename from tests/screentest/testdata/really-long-import-path.localhost-8080.a.png rename to tests/screentest/testdata/really-long-import-path.a.png Binary files differ
diff --git a/tests/screentest/testdata/retracted-package-540x1080.localhost-8080.a.png b/tests/screentest/testdata/retracted-package-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/retracted-package-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/retracted-package-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/retracted-package.localhost-8080.a.png b/tests/screentest/testdata/retracted-package.a.png similarity index 100% rename from tests/screentest/testdata/retracted-package.localhost-8080.a.png rename to tests/screentest/testdata/retracted-package.a.png Binary files differ
diff --git a/tests/screentest/testdata/search-help-540x1080.localhost-8080.a.png b/tests/screentest/testdata/search-help-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/search-help-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/search-help-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/search-help.localhost-8080.a.png b/tests/screentest/testdata/search-help.a.png similarity index 100% rename from tests/screentest/testdata/search-help.localhost-8080.a.png rename to tests/screentest/testdata/search-help.a.png Binary files differ
diff --git a/tests/screentest/testdata/search-no-results-540x1080.localhost-8080.a.png b/tests/screentest/testdata/search-no-results-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/search-no-results-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/search-no-results-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/search-no-results.localhost-8080.a.png b/tests/screentest/testdata/search-no-results.a.png similarity index 100% rename from tests/screentest/testdata/search-no-results.localhost-8080.a.png rename to tests/screentest/testdata/search-no-results.a.png Binary files differ
diff --git a/tests/screentest/testdata/short-readme-has-no-toggle-540x1080.localhost-8080.a.png b/tests/screentest/testdata/short-readme-has-no-toggle-540x1080.a.png similarity index 100% copy from tests/screentest/testdata/short-readme-has-no-toggle-540x1080.localhost-8080.a.png copy to tests/screentest/testdata/short-readme-has-no-toggle-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/short-readme-has-no-toggle.localhost-8080.a.png b/tests/screentest/testdata/short-readme-has-no-toggle.a.png similarity index 100% copy from tests/screentest/testdata/short-readme-has-no-toggle.localhost-8080.a.png copy to tests/screentest/testdata/short-readme-has-no-toggle.a.png Binary files differ
diff --git a/tests/screentest/testdata/standard-library-540x1080.localhost-8080.a.png b/tests/screentest/testdata/standard-library-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/standard-library-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/standard-library-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/standard-library-package-540x1080.localhost-8080.a.png b/tests/screentest/testdata/standard-library-package-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/standard-library-package-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/standard-library-package-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/standard-library-package.localhost-8080.a.png b/tests/screentest/testdata/standard-library-package.a.png similarity index 100% rename from tests/screentest/testdata/standard-library-package.localhost-8080.a.png rename to tests/screentest/testdata/standard-library-package.a.png Binary files differ
diff --git a/tests/screentest/testdata/standard-library.localhost-8080.a.png b/tests/screentest/testdata/standard-library.a.png similarity index 100% rename from tests/screentest/testdata/standard-library.localhost-8080.a.png rename to tests/screentest/testdata/standard-library.a.png Binary files differ
diff --git a/tests/screentest/testdata/sub-repositories-540x1080.localhost-8080.a.png b/tests/screentest/testdata/sub-repositories-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/sub-repositories-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/sub-repositories-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/sub-repositories.localhost-8080.a.png b/tests/screentest/testdata/sub-repositories.a.png similarity index 100% rename from tests/screentest/testdata/sub-repositories.localhost-8080.a.png rename to tests/screentest/testdata/sub-repositories.a.png Binary files differ
diff --git a/tests/screentest/testdata/x-tools-540x1080.localhost-8080.a.png b/tests/screentest/testdata/x-tools-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/x-tools-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/x-tools-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/x-tools-directories-expanded-540x1080.localhost-8080.a.png b/tests/screentest/testdata/x-tools-directories-expanded-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/x-tools-directories-expanded-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/x-tools-directories-expanded-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/x-tools-directories-expanded.localhost-8080.a.png b/tests/screentest/testdata/x-tools-directories-expanded.a.png similarity index 100% rename from tests/screentest/testdata/x-tools-directories-expanded.localhost-8080.a.png rename to tests/screentest/testdata/x-tools-directories-expanded.a.png Binary files differ
diff --git a/tests/screentest/testdata/x-tools-readme-expanded-540x1080.localhost-8080.a.png b/tests/screentest/testdata/x-tools-readme-expanded-540x1080.a.png similarity index 100% rename from tests/screentest/testdata/x-tools-readme-expanded-540x1080.localhost-8080.a.png rename to tests/screentest/testdata/x-tools-readme-expanded-540x1080.a.png Binary files differ
diff --git a/tests/screentest/testdata/x-tools-readme-expanded.localhost-8080.a.png b/tests/screentest/testdata/x-tools-readme-expanded.a.png similarity index 100% rename from tests/screentest/testdata/x-tools-readme-expanded.localhost-8080.a.png rename to tests/screentest/testdata/x-tools-readme-expanded.a.png Binary files differ
diff --git a/tests/screentest/testdata/x-tools.localhost-8080.a.png b/tests/screentest/testdata/x-tools.a.png similarity index 100% rename from tests/screentest/testdata/x-tools.localhost-8080.a.png rename to tests/screentest/testdata/x-tools.a.png Binary files differ