@appsemble/e2e 0.34.11 → 0.34.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/package.json +4 -4
- package/playwright.config.js +5 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#  Appsemble End 2 End Tests
|
|
2
2
|
|
|
3
3
|
> Run end 2 end tests on an Appsemble environment and provide Appsemble fixtures
|
|
4
4
|
|
|
5
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.34.12)
|
|
6
6
|
[](https://prettier.io)
|
|
7
7
|
|
|
8
8
|
## Table of Contents
|
|
@@ -60,10 +60,14 @@ The end to end tests use the following environment variables:
|
|
|
60
60
|
|
|
61
61
|
- `BOT_ACCOUNT_EMAIL` — The email address used to login.
|
|
62
62
|
- `BOT_ACCOUNT_PASSWORD` — The password used to login.
|
|
63
|
-
- `CI_MERGE_REQUEST_IID` — By default tests are run against the staging environment on
|
|
64
|
-
<https://staging.appsemble.review>. If this variable is specified, tests are run against the merge
|
|
65
|
-
request review environment instead.
|
|
66
63
|
- `ACCESS_TOKEN` — The access token of the account that's logged in.
|
|
64
|
+
- `CI` — Whether the tests are run in CI.
|
|
65
|
+
- `CI_MERGE_REQUEST_IID` — The id of the merge request if it's present.
|
|
66
|
+
- `APPSEMBLE_REVIEW_DOMAIN` — The review appsemble domain to use.
|
|
67
|
+
- `APPSEMBLE_STAGING_DOMAIN` — The staging appsemble domain to use.
|
|
68
|
+
|
|
69
|
+
Check the `baseURL` setting in the `playwright.config.ts` file to see how the environment variables
|
|
70
|
+
are used.
|
|
67
71
|
|
|
68
72
|
## Authentication
|
|
69
73
|
|
|
@@ -87,5 +91,5 @@ When writing end-to-end tests, have a look at the
|
|
|
87
91
|
|
|
88
92
|
## License
|
|
89
93
|
|
|
90
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.
|
|
94
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.12/LICENSE.md) ©
|
|
91
95
|
[Appsemble](https://appsemble.com)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/e2e",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.12",
|
|
4
4
|
"description": "End-to-end tests used for testing Appsemble apps in an existing environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"test": "vitest"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@appsemble/utils": "0.34.
|
|
42
|
-
"@appsemble/types": "0.34.
|
|
43
|
-
"@appsemble/lang-sdk": "0.34.
|
|
41
|
+
"@appsemble/utils": "0.34.12",
|
|
42
|
+
"@appsemble/types": "0.34.12",
|
|
43
|
+
"@appsemble/lang-sdk": "0.34.12",
|
|
44
44
|
"jwt-decode": "^4.0.0",
|
|
45
45
|
"@fortawesome/fontawesome-free": "^6.0.0",
|
|
46
46
|
"@playwright/test": "1.51.1",
|
package/playwright.config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineConfig, devices } from '@playwright/test';
|
|
2
|
-
const { CI, CI_MERGE_REQUEST_IID, E2E_HOST } = process.env;
|
|
2
|
+
const { APPSEMBLE_REVIEW_DOMAIN, APPSEMBLE_STAGING_DOMAIN, CI, CI_MERGE_REQUEST_IID, E2E_HOST } = process.env;
|
|
3
3
|
/**
|
|
4
4
|
* See https://playwright.dev/docs/test-configuration.
|
|
5
5
|
*/
|
|
@@ -19,7 +19,10 @@ export default defineConfig({
|
|
|
19
19
|
use: {
|
|
20
20
|
// Base URL to use in actions like `await page.goto('/')`.
|
|
21
21
|
baseURL: CI
|
|
22
|
-
? (E2E_HOST ??
|
|
22
|
+
? (E2E_HOST ??
|
|
23
|
+
`https://${CI_MERGE_REQUEST_IID
|
|
24
|
+
? `${CI_MERGE_REQUEST_IID}.${APPSEMBLE_REVIEW_DOMAIN || 'appsemble.review'}`
|
|
25
|
+
: APPSEMBLE_STAGING_DOMAIN || 'staging.appsemble.eu'}`)
|
|
23
26
|
: 'http://localhost:9999',
|
|
24
27
|
// Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer
|
|
25
28
|
trace: 'on-first-retry',
|