daml/daml-assistant
Rohan Jacob-Rao 37ca4af529
create-daml-app: Add end-to-end tests to integration tests (#5540)
This PR gets yarn test running the Puppeteer end-to-end tests in the GSG integration test.

The first step of the test is adding the extra dependencies (Jest, Puppeteer and more). The GSG recommends a yarn add command, but this does not work against HEAD. This is because yarn add does not use resolutions in the parent package.json, and then complains about unknown versions 0.0.0 of the daml TS libaries. The solution here is to hack in the extra dependencies into the ui/package.json and then yarn install. This works, but it hard codes version numbers which we would need to maintain. I would like to be able to say version "latest", which is what yarn add would install.

The next step of the test is to copy the index.test.ts file and run yarn test in CI mode.

I've moved the GSG test to a new create-daml-app-tests target. It's marked "exclusive" in Bazel until we figure out how to avoid hardcoding port numbers. This is a bit tricky since the HTTP port is hardcoded in a couple of places in ui/package.json.

Finally, this PR gets the GSG testing docs to reference the code in the new templates/create-daml-app-test-resources folder.

changelog_begin
changelog_end
2020-04-17 12:42:24 -04:00
..
daml-helper Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
daml-project-config/DA/Daml/Project replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
daml-sdk Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
exe/DA/Daml Rename daml codegen ts to daml codegen js (#5409) 2020-04-03 14:54:46 +00:00
integration-tests create-daml-app: Add end-to-end tests to integration tests (#5540) 2020-04-17 12:42:24 -04:00
scala-daml-project-config Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
src/DA/Daml/Assistant Use relative symlink in daml install on unix. (#5596) 2020-04-17 13:08:49 +01:00
test/DA/Daml/Assistant Use relative symlink in daml install on unix. (#5596) 2020-04-17 13:08:49 +01:00
BUILD.bazel Refactor deployment tests: (#5342) 2020-04-02 10:17:21 +01:00
daml-project-config.cabal update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
get-daml.sh replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00