x/pkgsite: frontend testing strategy #43361
Open
Comments
This was referenced Dec 24, 2020
Change https://golang.org/cl/280711 mentions this issue: |
Change https://golang.org/cl/280893 mentions this issue: |
gopherbot
pushed a commit
to golang/pkgsite
that referenced
this issue
Jan 5, 2021
This change updates the jest config to specify test environments separately for unit and e2e tests and adds the isolated modules option to the ts-jest config to improve test startup time. For golang/go#43361 Change-Id: I3fbfae2a42c26bd0eeb2d235dab1cced0c8701ea Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/280711 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>
gopherbot
pushed a commit
to golang/pkgsite
that referenced
this issue
Jan 5, 2021
Migrates CopyToClipboardController to TypeScript and adds a unit test. For golang/go#43359 For golang/go#43361 Change-Id: I2e1179aa7cecb0e280a57d420ee2f885c4d6db3c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/280893 Reviewed-by: Julie Qiu <julie@golang.org> Trust: Jamal Carvalho <jamal@golang.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The frontend testing strategy will include a combination of unit, e2e, visual diffing, accessibility, and performance tests using Puppeteer and the Jest testing framework. Lighthouse will be integrated in the testing suite to make assertions on performance and accessibility.
Details
Code in script files should be tested by co-located .test.ts files.
Snapshot tests will be written for pages served by the pkgsite.
Example performance tests.
Related Issues
The text was updated successfully, but these errors were encountered: