tests/e2e: skip unit page tests in CI
Temporarily skipping unit page tests until versions tab
tests are separated in a followup CL.
Change-Id: I47af1146ab9cc9d168943af624ccae3721bfa742
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/336949
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
diff --git a/tests/e2e/unit.testcases.ts b/tests/e2e/unit.testcases.ts
index 369e32c..1a8ca07 100644
--- a/tests/e2e/unit.testcases.ts
+++ b/tests/e2e/unit.testcases.ts
@@ -11,7 +11,11 @@
${'page that will redirect'} | ${'/github.com/jackc/pgx/pgxpool'}
*/
-export const testcases = test.each`
+const isCI = process.env.CI;
+
+// Temporarily skipping unit page tests until versions page
+// tests are separated in a followup CL.
+export const testcases = (isCI ? test.skip.each : test.each)`
name | path
${'standard library'} | ${'/std@go1.16.3'}
${'standard library versions'} | ${'/std?tab=versions'}
@@ -21,7 +25,6 @@
${'errors imports'} | ${'/errors@go1.16.3?tab=imports'}
${'tools'} | ${'/golang.org/x/tools@v0.1.1'}
${'tools licenses'} | ${'/golang.org/x/tools@v0.1.1?tab=licenses'}
- ${'tools imports'} | ${'/golang.org/x/tools?tab=versions'}
${'module that is not a package'} | ${'/golang.org/x/tools@v0.1.1'}
${'module that is also a package'} | ${'/gocloud.dev@v0.22.0'}
${'really long import path'} | ${'/github.com/envoyproxy/go-control-plane@v0.9.8/envoy/config/filter/network/http_connection_manager/v2'}