gsg test: pin puppeteer (#15422)

Somehow our setup doesn't work with puppeteer 19+.

CHANGELOG_BEGIN
- GSG: Several TypeScript warnings have been fixed in the final "Testing
  Your Web App" section of the Getting Started Guide. The
  `create-daml-app` template includes an updated `config.ts` file, and the
  documentation page as been updated to pin the `puppeteer` version to a
  known-working one and tweak the `index.test.ts` file.
CHANGELOG_END
This commit is contained in:
Gary Verhaegen 2022-11-02 14:46:01 +01:00 committed by GitHub
parent 5a3a013b21
commit 216f9f4775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ Of course there are more to choose from, but this is one combination that works.
To install Puppeteer and some other testing utilities we are going to use, To install Puppeteer and some other testing utilities we are going to use,
run the following command in the ``ui`` directory:: run the following command in the ``ui`` directory::
npm add --only=dev puppeteer wait-on @types/jest @types/node @types/puppeteer @types/wait-on npm add --only=dev puppeteer@18.2.1 wait-on @types/jest @types/node @types/puppeteer @types/wait-on
Because these things are easier to describe with concrete examples, this Because these things are easier to describe with concrete examples, this
section will show how to set up end-to-end tests for the application you would section will show how to set up end-to-end tests for the application you would