@element-hq/element-web-playwright-common 1.1.5 → 1.1.7

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.
@@ -1,4 +1,4 @@
1
- import { AbstractStartedContainer, GenericContainer, type StartedTestContainer } from "testcontainers";
1
+ import { AbstractStartedContainer, GenericContainer, type StartedTestContainer, type ExecResult } from "testcontainers";
2
2
  import { type StartedPostgreSqlContainer } from "@testcontainers/postgresql";
3
3
  import { type Credentials } from "../utils/api.js";
4
4
  declare const DEFAULT_CONFIG: {
@@ -159,7 +159,7 @@ export declare class StartedMatrixAuthenticationServiceContainer extends Abstrac
159
159
  * Retrieves a valid HS admin token
160
160
  */
161
161
  getAdminToken(): Promise<string>;
162
- private manage;
162
+ manage(cmd: string, ...args: string[]): Promise<ExecResult>;
163
163
  private manageRegisterUser;
164
164
  private manageIssueCompatibilityToken;
165
165
  private registerUserInternal;
@@ -1 +1 @@
1
- {"version":3,"file":"mas.d.ts","sourceRoot":"","sources":["../../src/testcontainers/mas.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,wBAAwB,EACxB,gBAAgB,EAChB,KAAK,oBAAoB,EAG5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAK7E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,cAAc,CAAC;AAE9C;;;;;GAKG;AACH,qBAAa,oCAAqC,SAAQ,gBAAgB;IACtE,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,QAAQ,CAAC,I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,cAAc,CAAC;AAE9C;;;;;GAKG;AACH,qBAAa,oCAAqC,SAAQ,gBAAgB;IACtE,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiC;gBAEnC,EAAE,EAAE,0BAA0B;IAajD;;;OAGG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQvC;;OAEG;IACmB,KAAK,IAAI,OAAO,CAAC,2CAA2C,CAAC;CAuBtF;AAED;;GAEG;AACH,qBAAa,2CAA4C,SAAQ,wBAAwB;aAKjE,OAAO,EAAE,MAAM;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI;IALzB,OAAO,CAAC,iBAAiB,CAAC,CAAkB;gBAGxC,SAAS,EAAE,oBAAoB,EACf,OAAO,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EAAE;IAKnC;;OAEG;IACU,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAYhC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAQ1D,kBAAkB;YAgClB,6BAA6B;YAmB7B,oBAAoB;IAoBlC;;;;;OAKG;IACU,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIzG;;;;;OAKG;IACU,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO7F"}
@@ -177,9 +177,8 @@ export class MatrixAuthenticationServiceContainer extends GenericContainer {
177
177
  config;
178
178
  args = ["-c", "/config/config.yaml"];
179
179
  constructor(db) {
180
- // We rely on `mas-cli manage add-email` which isn't in a release yet
181
- // https://github.com/element-hq/matrix-authentication-service/pull/3235
182
- super("ghcr.io/element-hq/matrix-authentication-service:sha-0b90c33");
180
+ // We rely on https://github.com/element-hq/matrix-authentication-service/pull/4529 which isn't in a release yet
181
+ super("ghcr.io/element-hq/matrix-authentication-service:sha-98f2776");
183
182
  this.config = deepCopy(DEFAULT_CONFIG);
184
183
  this.config.database.username = db.getUsername();
185
184
  this.config.database.password = db.getPassword();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@element-hq/element-web-playwright-common",
3
3
  "type": "module",
4
- "version": "1.1.5",
4
+ "version": "1.1.7",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,16 +26,16 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@axe-core/playwright": "^4.10.1",
29
- "@testcontainers/postgresql": "^10.18.0",
29
+ "@testcontainers/postgresql": "^10.24.2",
30
30
  "lodash-es": "^4.17.21",
31
31
  "mailpit-api": "^1.2.0",
32
32
  "strip-ansi": "^7.1.0",
33
- "testcontainers": "^10.18.0",
33
+ "testcontainers": "^10.24.2",
34
34
  "yaml": "^2.7.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@element-hq/element-web-module-api": "*",
38
- "@playwright/test": "^1.51.0",
39
- "playwright-core": "^1.51.0"
38
+ "@playwright/test": "^1.52.0",
39
+ "playwright-core": "^1.52.0"
40
40
  }
41
41
  }
@@ -195,9 +195,8 @@ export class MatrixAuthenticationServiceContainer extends GenericContainer {
195
195
  private readonly args = ["-c", "/config/config.yaml"];
196
196
 
197
197
  public constructor(db: StartedPostgreSqlContainer) {
198
- // We rely on `mas-cli manage add-email` which isn't in a release yet
199
- // https://github.com/element-hq/matrix-authentication-service/pull/3235
200
- super("ghcr.io/element-hq/matrix-authentication-service:sha-0b90c33");
198
+ // We rely on https://github.com/element-hq/matrix-authentication-service/pull/4529 which isn't in a release yet
199
+ super("ghcr.io/element-hq/matrix-authentication-service:sha-98f2776");
201
200
 
202
201
  this.config = deepCopy(DEFAULT_CONFIG);
203
202
  this.config.database.username = db.getUsername();
@@ -277,7 +276,7 @@ export class StartedMatrixAuthenticationServiceContainer extends AbstractStarted
277
276
  return this.adminTokenPromise;
278
277
  }
279
278
 
280
- private async manage(cmd: string, ...args: string[]): Promise<ExecResult> {
279
+ public async manage(cmd: string, ...args: string[]): Promise<ExecResult> {
281
280
  const result = await this.exec(["mas-cli", "manage", cmd, ...this.args, ...args]);
282
281
  if (result.exitCode !== 0) {
283
282
  throw new Error(`Failed mas-cli manage ${cmd}: ${result.output}`);