@appsemble/e2e 0.36.7 → 0.36.8

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 CHANGED
@@ -1,8 +1,8 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.36.7/config/assets/logo.svg) Appsemble End 2 End Tests
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.36.8/config/assets/logo.svg) 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
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.36.7/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.36.7)
5
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.36.8/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.36.8)
6
6
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
7
7
 
8
8
  ## Table of Contents
@@ -102,5 +102,5 @@ When writing end-to-end tests, have a look at the
102
102
 
103
103
  ## License
104
104
 
105
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.7/LICENSE.md) ©
105
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.8/LICENSE.md) ©
106
106
  [Appsemble](https://appsemble.com)
@@ -48,8 +48,7 @@ export const authenticatedTest = baseTest.extend({
48
48
  { scope: 'worker' },
49
49
  ],
50
50
  async request({ baseURL, storageState }, use) {
51
- const accessToken = JSON.parse(await readFile(String(storageState), 'utf8')).origins[0]
52
- .localStorage[1].value;
51
+ const accessToken = JSON.parse(await readFile(String(storageState), 'utf8')).origins[0].localStorage.find(({ name }) => name === 'access_token').value;
53
52
  const newRequest = await request.newContext({
54
53
  baseURL,
55
54
  extraHTTPHeaders: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/e2e",
3
- "version": "0.36.7",
3
+ "version": "0.36.8",
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/lang-sdk": "0.36.7",
42
- "@appsemble/node-utils": "0.36.7",
43
- "@appsemble/types": "0.36.7",
41
+ "@appsemble/lang-sdk": "0.36.8",
42
+ "@appsemble/node-utils": "0.36.8",
43
+ "@appsemble/types": "0.36.8",
44
44
  "@playwright/test": "1.58.2",
45
45
  "strip-indent": "^4.0.0"
46
46
  },
@@ -1,10 +1,11 @@
1
- import { createUser } from '@appsemble/node-utils';
1
+ import { createUser, deleteUser } from '@appsemble/node-utils';
2
2
  import { test as setup } from '@playwright/test';
3
3
  setup('create accounts for workers', async ({}, testInfo) => {
4
4
  for (let i = 0; i < testInfo.config.workers; i += 1) {
5
5
  const id = `worker-${i}`;
6
6
  const email = `${id}@appsemble.com`;
7
7
  const password = id;
8
+ await deleteUser(email);
8
9
  await createUser(id, email, password);
9
10
  }
10
11
  });