You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/master/developers-guide/e2e-tests.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,28 +129,27 @@ One great feature of Cypress is that you can use the Chrome inspector after each
129
129
130
130
`yarn build` and `yarn build-hot` each overwrite an HTML template to reference the correct JavaScript files. If you run `yarn build` before building an Uberjar for Cypress tests, you won’t see changes to your JavaScript reflected even if you then start `yarn build-hot`.
131
131
132
-
### Running Cypress on M1 machines
132
+
### Running Cypress on Apple Silicon
133
+
134
+
You might run into problems when running Cypress on Apple Silicon processors.
133
135
134
-
You might run into problems when running Cypress on M1 machine.
135
136
This is caused by the `@bahmutov/cypress-esbuild-preprocessor` that is using `esbuild` as a dependency. The error might look [like this](https://github.com/evanw/esbuild/issues/1819#issuecomment-1018771557). [The solution](https://github.com/evanw/esbuild/issues/1819#issuecomment-1080720203) is to install NodeJS using one of the Node version managers like [nvm](https://github.com/nvm-sh/nvm) or [n](https://github.com/tj/n).
136
137
137
-
Another issue you will almost surely face is the inability to connect to our Mongo QA Database. You can solve it by providing the following env:
138
+
Another issue you will almost surely face is the inability to connect to our Mongo QA Database. The supported Docker image is incompatible (AMD64). You can solve it by providing the following env:
138
139
139
140
```shell
140
141
export EXPERIMENTAL_DOCKER_DESKTOP_FORCE_QEMU=1
141
142
```
142
143
143
-
### Running tests that depend on Docker images
144
+
Please note that some users experienced Mongo connection timeouts even with this env var set. If that happens, try using OrbStack instead of Docker Desktop.
144
145
145
-
A subset of our tests depend on the external services that are available through the Docker images. At the time of this writing, those are the three supported external QA databases, Webmail, Snowplow and LDAP servers. The default cypress command will spin up all necessary docker containers for these tests to function properly, but you can toggle them off if you want
146
+
### Running tests that depend on Docker images
146
147
147
-
```sh
148
-
START_CONTAINERS=false yarn test-cypress
149
-
```
148
+
A large portion of our tests depend on the external services that are available through the Docker images. At the time of this writing, those are the three supported external QA databases, Webmail, Snowplow and LDAP servers. See `e2e/test/scenarios/docker-compose.yml` for up to date information. The default cypress command will spin up all necessary Docker containers for the tests to function properly. You can manually set up the e2e environment without them but be aware that you will run into test failures.
150
149
151
150
### Running tests with Snowplow involved
152
151
153
-
Tests that depend on Snowplow expect a running server. This is enabled by default. You can manually enable them as well by spinning up the snowplow micro docker container and setting the appropriate environment variables:
152
+
Tests that depend on Snowplow expect a running server. This is enabled by default. You can manually enable them as well by spinning up the Snowplow micro Docker container and setting the appropriate environment variables:
154
153
155
154
```
156
155
docker-compose -f ./snowplow/docker-compose.yml up -d
0 commit comments