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

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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"version": "1.1.6",
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
  }
@@ -277,7 +277,7 @@ export class StartedMatrixAuthenticationServiceContainer extends AbstractStarted
277
277
  return this.adminTokenPromise;
278
278
  }
279
279
 
280
- private async manage(cmd: string, ...args: string[]): Promise<ExecResult> {
280
+ public async manage(cmd: string, ...args: string[]): Promise<ExecResult> {
281
281
  const result = await this.exec(["mas-cli", "manage", cmd, ...this.args, ...args]);
282
282
  if (result.exitCode !== 0) {
283
283
  throw new Error(`Failed mas-cli manage ${cmd}: ${result.output}`);