зеркало из https://github.com/golang/pkgsite.git
devtools,e2e: remove legacy e2e config
Remove unused config files and obsolete tests. Change-Id: Ia99baf9a328be31327b1783768be27e686e82946 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/310929 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>
This commit is contained in:
Родитель
b6b1be2cd5
Коммит
51c067f992
|
@ -1,34 +0,0 @@
|
|||
# Copyright 2021 The Go Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
# This Dockerfile expects the build context to be the public repo root.
|
||||
|
||||
################################################################
|
||||
FROM golang:1.15.5 AS builder
|
||||
# If you change the Go version above, change the FROM line below as well.
|
||||
|
||||
# Set the working directory outside $GOPATH to ensure module mode is enabled.
|
||||
WORKDIR /src
|
||||
|
||||
# Copy go.mod and go.sum into the container.
|
||||
# If they don't change, which is the common case, then docker can
|
||||
# cache this COPY and the subsequent RUN.
|
||||
COPY go.mod go.sum /
|
||||
|
||||
# Download the dependencies.
|
||||
RUN go mod download
|
||||
|
||||
# Copy the repo into a subdirectory.
|
||||
# See .dockerignore at the repo root for excluded files.
|
||||
COPY . .
|
||||
|
||||
RUN go build -mod=readonly ./cmd/frontend
|
||||
|
||||
################################################################
|
||||
FROM golang:1.15.5
|
||||
|
||||
WORKDIR app
|
||||
|
||||
COPY --from=builder src/frontend frontend
|
||||
COPY content/static content/static
|
|
@ -1,27 +0,0 @@
|
|||
# Copyright 2020 The Go Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
FROM node:14.15.1
|
||||
|
||||
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic,
|
||||
# Hebrew, Thai and a few others)
|
||||
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
|
||||
# installs, work.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y wget gnupg \
|
||||
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
||||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
google-chrome-stable \
|
||||
fonts-ipafont-gothic \
|
||||
fonts-wqy-zenhei \
|
||||
fonts-thai-tlwg \
|
||||
fonts-kacst \
|
||||
fonts-freefont-ttf \
|
||||
libxss1 \
|
||||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /pkgsite
|
|
@ -1,88 +0,0 @@
|
|||
# Copyright 2020 The Go Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
version: '2.4'
|
||||
services:
|
||||
# nodejs is used to run npm scripts from ../../package.json. It mounts the
|
||||
# pkgsite root directory into a container and obscures the git directories
|
||||
# as a precaution so they can't be written to during npm package installs.
|
||||
nodejs:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: devtools/config/Dockerfile.nodejs
|
||||
environment:
|
||||
FRONTEND_URL: ${GO_DISCOVERY_FRONTEND_URL:-http://host.docker.internal:8080}
|
||||
image: pkgsite_nodejs
|
||||
init: true
|
||||
volumes:
|
||||
- ../..:/pkgsite
|
||||
- /pkgsite/.git
|
||||
- /pkgsite/private/.git
|
||||
|
||||
# ci extends the nodejs config above and is used to run the e2e tests in CI.
|
||||
# It starts the frontend server and then runs a given npm command.
|
||||
ci:
|
||||
depends_on:
|
||||
- frontend
|
||||
environment:
|
||||
FRONTEND_URL: ${GO_DISCOVERY_FRONTEND_URL:-http://frontend:8080}
|
||||
extends: nodejs
|
||||
image: pkgsite_ci
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: devtools/config/Dockerfile.frontend
|
||||
command: ./frontend -host=0.0.0.0:8080
|
||||
depends_on:
|
||||
- migrate
|
||||
environment:
|
||||
- GO_DISCOVERY_DATABASE_USER=postgres
|
||||
- GO_DISCOVERY_DATABASE_PASSWORD=postgres
|
||||
- GO_DISCOVERY_DATABASE_HOST=db
|
||||
- GO_DISCOVERY_DATABASE_NAME=discovery-db
|
||||
- PORT=8080
|
||||
image: pkgsite_frontend
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- './e2e-config.yaml:/app/experiment.yaml'
|
||||
|
||||
migrate:
|
||||
depends_on:
|
||||
- wait_for_db
|
||||
image: migrate/migrate:v4.14.1
|
||||
restart: on-failure:5
|
||||
volumes:
|
||||
- ../../migrations:/pkgsite/migrations
|
||||
command:
|
||||
[
|
||||
'-path',
|
||||
'/pkgsite/migrations',
|
||||
'-database',
|
||||
'postgres://postgres:postgres@db:5432/discovery-db?sslmode=disable',
|
||||
'up',
|
||||
]
|
||||
|
||||
# wait_for_db is used to delay migrations until the database is ready for connections.
|
||||
wait_for_db:
|
||||
image: ubuntu:14.04
|
||||
depends_on:
|
||||
- db
|
||||
command: >
|
||||
/bin/bash -c "
|
||||
while ! nc -z db 5432;
|
||||
do
|
||||
echo sleeping;
|
||||
sleep 1;
|
||||
done;
|
||||
echo connected!;
|
||||
"
|
||||
|
||||
db:
|
||||
image: postgres:13.2
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_DB=discovery-db
|
|
@ -1,3 +0,0 @@
|
|||
experiments:
|
||||
- Name: sticky-header
|
||||
Rollout: 100
|
|
@ -1,26 +0,0 @@
|
|||
let config = {
|
||||
preset: 'ts-jest',
|
||||
rootDir: '../../',
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
isolatedModules: true,
|
||||
},
|
||||
},
|
||||
moduleFileExtensions: ['ts', 'js'],
|
||||
testRunner: 'jest-circus/runner',
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
const e2e = process.argv.includes('e2e');
|
||||
if (e2e) {
|
||||
config = {
|
||||
...config,
|
||||
setupFilesAfterEnv: ['<rootDir>/e2e/setup.ts'],
|
||||
globalSetup: '<rootDir>/e2e/global-setup.ts',
|
||||
globalTeardown: '<rootDir>/e2e/global-teardown.ts',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
module.exports = config;
|
|
@ -1,63 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright 2020 The Go Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
source devtools/lib.sh || { echo "Are you at repo root?"; exit 1; }
|
||||
|
||||
if [[ ! -x "$(command -v docker-compose)" ]]; then
|
||||
err "docker-compose must be installed: see https://docs.docker.com/compose/install/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
usage() {
|
||||
cat <<EOUSAGE
|
||||
Usage: $0 {--build} [nodejs|ci] {command}
|
||||
|
||||
Run services using docker-compose. Used to build, lint, and test static assets and run
|
||||
e2e tests.
|
||||
|
||||
EOUSAGE
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
info "Cleaning up..."
|
||||
runcmd docker-compose -f devtools/config/docker-compose.yaml down --remove-orphans --rmi local
|
||||
}
|
||||
|
||||
run_build=false
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
"-h" | "--help" | "help")
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
"--build")
|
||||
run_build=true
|
||||
shift
|
||||
;;
|
||||
"logs")
|
||||
runcmd docker-compose -f devtools/config/docker-compose.yaml logs -f
|
||||
exit $EXIT_CODE
|
||||
;;
|
||||
"nodejs" | "ci")
|
||||
trap cleanup EXIT SIGINT
|
||||
|
||||
if $run_build; then
|
||||
docker-compose -f devtools/config/docker-compose.yaml build
|
||||
fi
|
||||
|
||||
# Run an npm command and capture the exit code.
|
||||
runcmd docker-compose -f devtools/config/docker-compose.yaml run --rm $@
|
||||
|
||||
# Exit with the code from the docker-compose command.
|
||||
exit $EXIT_CODE
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 85 KiB |
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 111 KiB |
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 149 KiB |
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 465 KiB |
|
@ -1,626 +0,0 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`License Policy accessibility tree matches snapshot 1`] = `
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"name": "Black Lives Matter",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Support the Equal Justice Initiative",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Link to Go homepage",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Search for a package",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"description": "Search for a package",
|
||||
"name": "Search for a package",
|
||||
"role": "textbox",
|
||||
},
|
||||
Object {
|
||||
"description": "Why Go",
|
||||
"name": "Why Go",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Getting Started",
|
||||
"name": "Getting Started",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Discover Packages",
|
||||
"name": "Discover Packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "About",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"level": 1,
|
||||
"name": "License Disclaimer",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "The Go website displays license information in order to help users evaluate packages for their intended use. Licenses are detected using heuristics based on their file name and contents. We hope this information is helpful, but this is not legal advice and we do not make any guarantees regarding the accuracy of our license detection.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "If we are not able to detect one of the licenses below, only limited package and module information will be made available. If you are a package author seeking to make your content available on the Go website, please be aware that our detection algorithms can be affected by any modifications of the license text, or by the use of an uncommon license file name.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "We currently use",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "github.com/google/licensecheck",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "for license detection, and look for licenses in files with the following names: COPYING, COPYING.md, COPYING.markdown, COPYING.txt, LICENCE, LICENCE.md, LICENCE.markdown, LICENCE.txt, LICENSE, LICENSE.md, LICENSE.markdown, LICENSE.txt, LICENSE-2.0.txt, LICENCE-2.0.txt, LICENSE-APACHE, LICENCE-APACHE, LICENSE-APACHE-2.0.txt, LICENCE-APACHE-2.0.txt, LICENSE-MIT, LICENCE-MIT, LICENSE.MIT, LICENCE.MIT, LICENSE.code, LICENCE.code, LICENSE.docs, LICENCE.docs, LICENSE.rst, LICENCE.rst, MIT-LICENSE, MIT-LICENCE, MIT-LICENSE.md, MIT-LICENCE.md, MIT-LICENSE.markdown, MIT-LICENCE.markdown, MIT-LICENSE.txt, MIT-LICENCE.txt, MIT_LICENSE, MIT_LICENCE, UNLICENSE, UNLICENCE. The match is case-insensitive.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "We currently detect and recognize the following licenses:",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "0BSD",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "AFL-3.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "AGPL-3.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "AGPL-3.0-only",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "AGPL-3.0-or-later",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Apache-1.1",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Apache-2.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Artistic-2.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-1-Clause",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-2-Clause",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-2-Clause-Views",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-3-Clause",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-3-Clause-Clear",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-3-Clause-Open-MPI",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-4-Clause",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-4-Clause-UC",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSL-1.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BlueOak-1.0.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "CC-BY-3.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "CC-BY-4.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "CC-BY-SA-3.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "CC-BY-SA-4.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "CC0-1.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "EPL-1.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "EPL-2.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "EUPL-1.2",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "GPL-2.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "GPL-2.0-only",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "GPL-2.0-or-later",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "GPL-3.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "GPL-3.0-only",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "GPL-3.0-or-later",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "HPND",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "ISC",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "JSON",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "LGPL-2.1",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "LGPL-2.1-or-later",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "LGPL-3.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "LGPL-3.0-or-later",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "MIT",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "MIT-0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "MPL-2.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "MPL-2.0-no-copyleft-exception",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "NCSA",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "NIST-PD",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "NIST-PD-fallback",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "OSL-3.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "OpenSSL",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "PostgreSQL",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Python-2.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "UPL-1.0",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Unlicense",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Zlib",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "If you use a package whose license is not detected, please inform the package author. If you are a package author who believes a license for one of your packages should have been detected and was not, please check for discrepancies between your license and the official text. If you still believe there is an error, please",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "file an issue",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"description": "Why Go",
|
||||
"name": "Why Go",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Use Cases",
|
||||
"name": "Use Cases",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Case Studies",
|
||||
"name": "Case Studies",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Getting Started",
|
||||
"name": "Getting Started",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Playground",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Tour",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Stack Overflow",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Discover Packages",
|
||||
"name": "Discover Packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "About",
|
||||
"name": "About",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Download",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Blog",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Release Notes",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Brand Guidelines",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Code of Conduct",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Connect",
|
||||
"name": "Connect",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Twitter",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "GitHub",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Slack",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Meetup",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Gopher in flight goggles",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"name": "Copyright",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Terms of Service",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Privacy Policy",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Report an Issue",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "golang.org",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Google logo",
|
||||
"role": "link",
|
||||
},
|
||||
],
|
||||
"name": "Licenses · pkg.go.dev",
|
||||
"role": "WebArea",
|
||||
}
|
||||
`;
|
|
@ -1,741 +0,0 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`golang.org/x/pkgsite accessibility tree matches snapshot 1`] = `
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"name": "Black Lives Matter",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Support the Equal Justice Initiative",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Link to Go homepage",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Search for a package",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"description": "Search for a package",
|
||||
"name": "Search for a package",
|
||||
"role": "textbox",
|
||||
},
|
||||
Object {
|
||||
"description": "Why Go",
|
||||
"name": "Why Go",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Getting Started",
|
||||
"name": "Getting Started",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Discover Packages",
|
||||
"name": "Discover Packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "About",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Discover Packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ">",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "golang.org/x/pkgsite",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Copy path to clipboard. golang.org/x/pkgsite",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "Go",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"level": 1,
|
||||
"name": "pkgsite",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "module",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Version: v0.0.0-...-4500fee",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "LATEST",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "|",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Published: Mar 23, 2021",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "|",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "License:",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "BSD-3-Clause",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Jump to ...",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "find",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Pkg.go.dev",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "A site for discovering Go packages",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Roadmap",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Issues",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Contributing",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "License",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Links",
|
||||
"role": "treeitem",
|
||||
},
|
||||
],
|
||||
"expanded": true,
|
||||
"level": 1,
|
||||
"name": "README",
|
||||
"role": "treeitem",
|
||||
"selected": true,
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Pkg.go.dev",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "A site for discovering Go packages",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Roadmap",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Issues",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Contributing",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "License",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Links",
|
||||
"role": "treeitem",
|
||||
},
|
||||
Object {
|
||||
"level": 1,
|
||||
"name": "Directories",
|
||||
"role": "treeitem",
|
||||
},
|
||||
],
|
||||
"name": "Outline",
|
||||
"role": "tree",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "README",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"level": 3,
|
||||
"name": "Pkg.go.dev",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "Go Reference",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"level": 4,
|
||||
"name": "A site for discovering Go packages",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "Pkg.go.dev is a website for discovering and evaluating Go packages and modules.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "You can check it out at",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "https://pkg.go.dev",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 4,
|
||||
"name": "Roadmap",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "Pkg.go.dev",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "launched",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "in November 2019, and is currently under active development by the Go team.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Here's what we are currently working on:",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Design updates: We have some design changes planned for pkg.go.dev, to address",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "UX feedback",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "that we have received. You can expect a more cohesive search and navigation experience coming soon. We plan to share these designs for feedback once they are ready.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Godoc.org redirect: Longer term, we are working towards",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "redirecting godoc.org traffic",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "to pkg.go.dev. We know that there are features available on godoc.org that users want to see on pkg.go.dev, and we want to ensure that we address these. We’ve been keeping track of issues related to redirecting godoc.org traffic on",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Go issue #39144",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ". These issues will be prioritized in the next few months. We also plan to continue improving our license detection algorithm.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Search improvements: We’ll be improving our search experience based on feedback in",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Go issue #37810",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ", to make it easier for users to find the dependencies they are looking for and make better decisions around which ones to import.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "We encourage everyone to begin using",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "pkg.go.dev",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "today for all of their needs and to",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "file feedback",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "! You can redirect all of your requests from godoc.org to pkg.go.dev, by clicking",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Always use pkg.go.dev",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "at the top of any page on",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "godoc.org",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 4,
|
||||
"name": "Issues",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "If you want to report a bug or have a feature suggestion, please first check the",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "known issues",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "to see if your issue is already being discussed. If an issue does not already exist, feel free to",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "file an issue",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "For answers to frequently asked questions, see",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "go.dev/about",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "You can also chat with us on the #tools slack channel on the",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Gophers slack",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 4,
|
||||
"name": "Contributing",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "We would love your help!",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Our canonical Git repository is located at",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "go.googlesource.com/pkgsite",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ". There is a mirror of the repository at",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "github.com/golang/pkgsite",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "To contribute, please read our",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "contributing guide",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 4,
|
||||
"name": "License",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "LICENSE",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "file.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 4,
|
||||
"name": "Links",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Homepage",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Feedback",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "•",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Issue Tracker",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Expand ▾",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Directories",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "Expand all",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "Path",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Synopsis",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "4 more from cmd",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "cmd",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "4 more from devtools",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "devtools",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "39 more from internal",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "internal",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Package internal contains data used through x/pkgsite.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Details",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Learn more",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "checked",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"name": "Valid",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "go.mod",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "file",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "more info",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "checked",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"name": "Redistributable license",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "more info",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "unchecked",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"name": "Tagged version",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "more info",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "unchecked",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"name": "Stable version",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "more info",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"name": "Repository",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"description": "https://github.com/golang/pkgsite",
|
||||
"name": "https://github.com/golang/pkgsite",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Links",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"description": "https://pkg.go.dev",
|
||||
"name": "Homepage",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "https://golang.org/s/pkgsite-feedback",
|
||||
"name": "Feedback",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "https://golang.org/s/pkgsite-issues",
|
||||
"name": "Issue Tracker",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Why Go",
|
||||
"name": "Why Go",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Use Cases",
|
||||
"name": "Use Cases",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Case Studies",
|
||||
"name": "Case Studies",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Getting Started",
|
||||
"name": "Getting Started",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Playground",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Tour",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Stack Overflow",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Discover Packages",
|
||||
"name": "Discover Packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "About",
|
||||
"name": "About",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Download",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Blog",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Release Notes",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Brand Guidelines",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Code of Conduct",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Connect",
|
||||
"name": "Connect",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Twitter",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "GitHub",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Slack",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Meetup",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Gopher in flight goggles",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"name": "Copyright",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Terms of Service",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Privacy Policy",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Report an Issue",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "golang.org",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Google logo",
|
||||
"role": "link",
|
||||
},
|
||||
],
|
||||
"name": "pkgsite · pkg.go.dev",
|
||||
"role": "WebArea",
|
||||
}
|
||||
`;
|
|
@ -1,233 +0,0 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Search Help accessibility tree matches snapshot 1`] = `
|
||||
Object {
|
||||
"children": Array [
|
||||
Object {
|
||||
"name": "Black Lives Matter",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "Support the Equal Justice Initiative",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Link to Go homepage",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Search for a package",
|
||||
"role": "button",
|
||||
},
|
||||
Object {
|
||||
"description": "Search for a package",
|
||||
"name": "Search for a package",
|
||||
"role": "textbox",
|
||||
},
|
||||
Object {
|
||||
"description": "Why Go",
|
||||
"name": "Why Go",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Getting Started",
|
||||
"name": "Getting Started",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Discover Packages",
|
||||
"name": "Discover Packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "About",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"level": 1,
|
||||
"name": "Search help",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "You can use symbols or words in your search to make your search results more precise.",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Search for an exact match",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "Put a word or phrase inside quotes. For example,",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "\\"go cloud\\"",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Combine searches",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "Put OR between each search query. For example,",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "yaml OR json",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"level": 2,
|
||||
"name": "Search by package path",
|
||||
"role": "heading",
|
||||
},
|
||||
Object {
|
||||
"name": "You can search for a package by its full or partial import path. For example,",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "go/packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "If the query matches a package import path, you will be redirected to the package details page for the latest version of that package. For example,",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"name": "golang.org/x/tools/go/packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": ".",
|
||||
"role": "text",
|
||||
},
|
||||
Object {
|
||||
"description": "Why Go",
|
||||
"name": "Why Go",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Use Cases",
|
||||
"name": "Use Cases",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Case Studies",
|
||||
"name": "Case Studies",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Getting Started",
|
||||
"name": "Getting Started",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Playground",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Tour",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Stack Overflow",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Discover Packages",
|
||||
"name": "Discover Packages",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "About",
|
||||
"name": "About",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Download",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Blog",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Release Notes",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Brand Guidelines",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Code of Conduct",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"description": "Connect",
|
||||
"name": "Connect",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Twitter",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "GitHub",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Slack",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Meetup",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Gopher in flight goggles",
|
||||
"role": "img",
|
||||
},
|
||||
Object {
|
||||
"name": "Copyright",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Terms of Service",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Privacy Policy",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Report an Issue",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "golang.org",
|
||||
"role": "link",
|
||||
},
|
||||
Object {
|
||||
"name": "Google logo",
|
||||
"role": "link",
|
||||
},
|
||||
],
|
||||
"name": "Search Help · pkg.go.dev",
|
||||
"role": "WebArea",
|
||||
}
|
||||
`;
|
|
@ -1,40 +0,0 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2020 The Go Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
import './global-types';
|
||||
import puppeteer, { Page } from 'puppeteer';
|
||||
|
||||
const baseUrl = process.env.FRONTEND_URL ?? '';
|
||||
|
||||
describe('License Policy', () => {
|
||||
let page: Page;
|
||||
|
||||
beforeEach(async () => {
|
||||
page = await browser.newPage();
|
||||
await page.goto(baseUrl + '/license-policy');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await page.close();
|
||||
});
|
||||
|
||||
test('accessibility tree matches snapshot', async () => {
|
||||
const a11yTree = await page.accessibility.snapshot();
|
||||
expect(a11yTree).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('desktop viewport matches image snapshot', async () => {
|
||||
const image = await page.screenshot({ fullPage: true });
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
|
||||
test('mobile viewport matches image snapshot', async () => {
|
||||
await page.emulate(puppeteer.devices['Pixel 2']);
|
||||
const image = await page.screenshot({ fullPage: true });
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
});
|
|
@ -1,63 +0,0 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2020 The Go Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
import './global-types';
|
||||
import puppeteer, { Page } from 'puppeteer';
|
||||
|
||||
const baseUrl = process.env.FRONTEND_URL ?? '';
|
||||
|
||||
describe('golang.org/x/pkgsite', () => {
|
||||
let page: Page;
|
||||
|
||||
beforeAll(async () => {
|
||||
page = await browser.newPage();
|
||||
await page.goto(baseUrl);
|
||||
await page.evaluate(() => fetch(`/fetch/golang.org/x/pkgsite`, { method: 'POST' }));
|
||||
}, 30000);
|
||||
|
||||
beforeEach(async () => {
|
||||
page = await browser.newPage();
|
||||
await page.goto(baseUrl + '/golang.org/x/pkgsite');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await page.close();
|
||||
});
|
||||
|
||||
test('accessibility tree matches snapshot', async () => {
|
||||
const a11yTree = await page.accessibility.snapshot();
|
||||
expect(a11yTree).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('desktop viewport matches image snapshot', async () => {
|
||||
const image = await page.screenshot({ fullPage: true });
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
|
||||
test('mobile viewport matches image snapshot', async () => {
|
||||
await page.emulate(puppeteer.devices['Pixel 2']);
|
||||
const image = await page.screenshot({ fullPage: true });
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
|
||||
test('desktop fixed header appears after scrolling', async () => {
|
||||
await page.mouse.wheel({ deltaY: 250 });
|
||||
// wait for css transition
|
||||
await page.waitForTimeout(500);
|
||||
const image = await page.screenshot();
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
|
||||
test('mobile fixed header appears after scrolling', async () => {
|
||||
await page.emulate(puppeteer.devices['Pixel 2']);
|
||||
await page.mouse.wheel({ deltaY: 250 });
|
||||
// wait for css transition
|
||||
await page.waitForTimeout(500);
|
||||
const image = await page.screenshot();
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
});
|
|
@ -1,40 +0,0 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2020 The Go Authors. All rights reserved.
|
||||
* Use of this source code is governed by a BSD-style
|
||||
* license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
import './global-types';
|
||||
import puppeteer, { Page } from 'puppeteer';
|
||||
|
||||
const baseUrl = process.env.FRONTEND_URL ?? '';
|
||||
|
||||
describe('Search Help', () => {
|
||||
let page: Page;
|
||||
|
||||
beforeEach(async () => {
|
||||
page = await browser.newPage();
|
||||
await page.goto(baseUrl + '/search-help');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await page.close();
|
||||
});
|
||||
|
||||
test('accessibility tree matches snapshot', async () => {
|
||||
const a11yTree = await page.accessibility.snapshot();
|
||||
expect(a11yTree).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('desktop viewport matches image snapshot', async () => {
|
||||
const image = await page.screenshot({ fullPage: true });
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
|
||||
test('mobile viewport matches image snapshot', async () => {
|
||||
await page.emulate(puppeteer.devices['Pixel 2']);
|
||||
const image = await page.screenshot({ fullPage: true });
|
||||
expect(image).toMatchImageSnapshot();
|
||||
});
|
||||
});
|
|
@ -1,3 +0,0 @@
|
|||
describe('Unit Details', () => {
|
||||
test.todo('todo');
|
||||
});
|
|
@ -1,3 +0,0 @@
|
|||
describe('Unit Imported By', () => {
|
||||
test.todo('todo');
|
||||
});
|
|
@ -1,3 +0,0 @@
|
|||
describe('Unit Imports', () => {
|
||||
test.todo('todo');
|
||||
});
|
|
@ -1,3 +0,0 @@
|
|||
describe('Unit Licenses', () => {
|
||||
test.todo('todo');
|
||||
});
|
|
@ -1,3 +0,0 @@
|
|||
describe('Unit Version', () => {
|
||||
test.todo('todo');
|
||||
});
|
Загрузка…
Ссылка в новой задаче