@element-hq/element-web-playwright-common 2.2.1 → 2.2.3
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/lib/expect/axe.d.ts +1 -1
- package/lib/expect/axe.d.ts.map +1 -1
- package/lib/expect/screenshot.d.ts +1 -1
- package/lib/expect/screenshot.d.ts.map +1 -1
- package/lib/fixtures/axe.d.ts +4 -4
- package/lib/fixtures/axe.d.ts.map +1 -1
- package/lib/fixtures/axe.js +1 -1
- package/lib/fixtures/index.d.ts +1 -1
- package/lib/fixtures/index.d.ts.map +1 -1
- package/lib/fixtures/index.js +1 -1
- package/lib/fixtures/services.d.ts +1 -1
- package/lib/fixtures/services.d.ts.map +1 -1
- package/lib/fixtures/user.d.ts +2 -2
- package/lib/fixtures/user.d.ts.map +1 -1
- package/lib/testcontainers/HomeserverContainer.d.ts +3 -3
- package/lib/testcontainers/HomeserverContainer.d.ts.map +1 -1
- package/lib/testcontainers/synapse.d.ts +1 -6
- package/lib/testcontainers/synapse.d.ts.map +1 -1
- package/lib/testcontainers/synapse.js +1 -6
- package/package.json +1 -1
- package/src/fixtures/axe.ts +1 -1
- package/src/fixtures/index.ts +1 -1
- package/src/testcontainers/HomeserverContainer.ts +3 -3
- package/src/testcontainers/synapse.ts +1 -6
- package/tsconfig.json +2 -0
package/lib/expect/axe.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export type Expectations = {
|
|
|
7
7
|
*/
|
|
8
8
|
toHaveNoViolations: (this: ExpectMatcherState, receiver: AxeBuilder) => Promise<MatcherReturnType>;
|
|
9
9
|
};
|
|
10
|
-
export declare const expect: import("playwright/test").Expect<Expectations>;
|
|
10
|
+
export declare const expect: import("@playwright/test").Expect<Expectations>;
|
|
11
11
|
//# sourceMappingURL=axe.d.ts.map
|
package/lib/expect/axe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axe.d.ts","sourceRoot":"","sources":["../../src/expect/axe.ts"],"names":[],"mappings":"AAQA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE/G,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACvB;;;OAGG;IACH,kBAAkB,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,UAAU,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACtG,CAAC;AAEF,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"axe.d.ts","sourceRoot":"","sources":["../../src/expect/axe.ts"],"names":[],"mappings":"AAQA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE/G,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACvB;;;OAGG;IACH,kBAAkB,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,UAAU,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACtG,CAAC;AAEF,eAAO,MAAM,MAAM,iDAgBjB,CAAC"}
|
|
@@ -9,5 +9,5 @@ export type Expectations = {
|
|
|
9
9
|
* Provides an upgrade to the `toHaveScreenshot` expectation.
|
|
10
10
|
* Unfortunately, we can't just extend the existing `toHaveScreenshot` expectation
|
|
11
11
|
*/
|
|
12
|
-
export declare const expect: import("playwright/test").Expect<Expectations>;
|
|
12
|
+
export declare const expect: import("@playwright/test").Expect<Expectations>;
|
|
13
13
|
//# sourceMappingURL=screenshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/expect/screenshot.ts"],"names":[],"mappings":"AAQA,OAAO,EAIH,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,qCAAqC,EAC1C,KAAK,iBAAiB,EACzB,MAAM,kBAAkB,CAAC;AAa1B,MAAM,WAAW,wBAAyB,SAAQ,qCAAqC;IACnF,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,iBAAiB,EAAE,CACf,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,IAAI,GAAG,OAAO,EACxB,IAAI,EAAE,GAAG,MAAM,MAAM,EACrB,OAAO,CAAC,EAAE,wBAAwB,KACjC,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/expect/screenshot.ts"],"names":[],"mappings":"AAQA,OAAO,EAIH,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,qCAAqC,EAC1C,KAAK,iBAAiB,EACzB,MAAM,kBAAkB,CAAC;AAa1B,MAAM,WAAW,wBAAyB,SAAQ,qCAAqC;IACnF,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,iBAAiB,EAAE,CACf,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,IAAI,GAAG,OAAO,EACxB,IAAI,EAAE,GAAG,MAAM,MAAM,EACrB,OAAO,CAAC,EAAE,wBAAwB,KACjC,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,iDA+BjB,CAAC"}
|
package/lib/fixtures/axe.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import AxeBuilder from "@axe-core/playwright";
|
|
2
|
-
export declare const test: import("playwright/test").TestType<import("playwright/test").PlaywrightTestArgs & import("playwright/test").PlaywrightTestOptions & import("./services").TestFixtures & {
|
|
2
|
+
export declare const test: import("playwright/test").TestType<import("playwright/test").PlaywrightTestArgs & import("playwright/test").PlaywrightTestOptions & import("./services.js").TestFixtures & {
|
|
3
3
|
displayName?: string;
|
|
4
|
-
credentials: import("../utils/api").Credentials;
|
|
4
|
+
credentials: import("../utils/api.js").Credentials;
|
|
5
5
|
pageWithCredentials: import("playwright-core").Page;
|
|
6
|
-
user: import("../utils/api").Credentials;
|
|
6
|
+
user: import("../utils/api.js").Credentials;
|
|
7
7
|
} & {
|
|
8
8
|
/**
|
|
9
9
|
* AxeBuilder instance for the current page
|
|
10
10
|
*/
|
|
11
11
|
axe: AxeBuilder;
|
|
12
|
-
}, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions & import("./services").WorkerOptions & import("./services").Services>;
|
|
12
|
+
}, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions & import("./services.js").WorkerOptions & import("./services.js").Services>;
|
|
13
13
|
//# sourceMappingURL=axe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axe.d.ts","sourceRoot":"","sources":["../../src/fixtures/axe.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAM9C,eAAO,MAAM,IAAI;;;;;;IACb;;OAEG;SACE,UAAU;
|
|
1
|
+
{"version":3,"file":"axe.d.ts","sourceRoot":"","sources":["../../src/fixtures/axe.ts"],"names":[],"mappings":"AAQA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAM9C,eAAO,MAAM,IAAI;;;;;;IACb;;OAEG;SACE,UAAU;iLAMjB,CAAC"}
|
package/lib/fixtures/axe.js
CHANGED
|
@@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
6
6
|
Please see LICENSE files in the repository root for full details.
|
|
7
7
|
*/
|
|
8
8
|
import AxeBuilder from "@axe-core/playwright";
|
|
9
|
-
import { test as base } from "./user";
|
|
9
|
+
import { test as base } from "./user.js";
|
|
10
10
|
// We want to avoid using `mergeTests` because it drops useful type information about the fixtures. Instead, we extend
|
|
11
11
|
// the definition of `test` from `user.ts`, so that there is a linear hierarchy.
|
|
12
12
|
export const test = base.extend({
|
package/lib/fixtures/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fixtures/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAIlE,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fixtures/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAIlE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC"}
|
package/lib/fixtures/index.js
CHANGED
|
@@ -6,4 +6,4 @@ Please see LICENSE files in the repository root for full details.
|
|
|
6
6
|
*/
|
|
7
7
|
// We avoid using `mergeTests` because it drops useful type information about the fixtures.
|
|
8
8
|
// `axe` is the top of our stack of extensions (it extends `user`, etc), so it's the one we want to use.
|
|
9
|
-
export { test } from "./axe";
|
|
9
|
+
export { test } from "./axe.js";
|
|
@@ -53,5 +53,5 @@ export interface Services {
|
|
|
53
53
|
*/
|
|
54
54
|
mas?: StartedMatrixAuthenticationServiceContainer;
|
|
55
55
|
}
|
|
56
|
-
export declare const test: import("playwright/test").TestType<import("playwright/test").PlaywrightTestArgs & import("playwright/test").PlaywrightTestOptions & TestFixtures, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions & WorkerOptions & Services>;
|
|
56
|
+
export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & TestFixtures, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions & WorkerOptions & Services>;
|
|
57
57
|
//# sourceMappingURL=services.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/fixtures/services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAuB,KAAK,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAElG,OAAO,EACH,KAAK,aAAa,EAElB,KAAK,2CAA2C,EAChD,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAE/B,KAAK,uBAAuB,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,aAAa,EAAE,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,0BAA0B,CAAC;IAErC;;OAEG;IACH,OAAO,EAAE,uBAAuB,CAAC;IAEjC;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC1C;;OAEG;IACH,UAAU,EAAE,0BAA0B,CAAC;IAEvC;;;OAGG;IACH,GAAG,CAAC,EAAE,2CAA2C,CAAC;CACrD;AAED,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/fixtures/services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAuB,KAAK,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAElG,OAAO,EACH,KAAK,aAAa,EAElB,KAAK,2CAA2C,EAChD,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAE/B,KAAK,uBAAuB,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,aAAa,EAAE,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,QAAQ,EAAE,0BAA0B,CAAC;IAErC;;OAEG;IACH,OAAO,EAAE,uBAAuB,CAAC;IAEjC;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC1C;;OAEG;IACH,UAAU,EAAE,0BAA0B,CAAC;IAEvC;;;OAGG;IACH,GAAG,CAAC,EAAE,2CAA2C,CAAC;CACrD;AAED,eAAO,MAAM,IAAI,uRA0Gf,CAAC"}
|
package/lib/fixtures/user.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type Page } from "@playwright/test";
|
|
|
2
2
|
import { type Credentials } from "../utils/api.js";
|
|
3
3
|
/** Adds an initScript to the given page which will populate localStorage appropriately so that Element will use the given credentials. */
|
|
4
4
|
export declare function populateLocalStorageWithCredentials(page: Page, credentials: Credentials): Promise<void>;
|
|
5
|
-
export declare const test: import("playwright/test").TestType<import("playwright/test").PlaywrightTestArgs & import("playwright/test").PlaywrightTestOptions & import("./services.js").TestFixtures & {
|
|
5
|
+
export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & import("./services.js").TestFixtures & {
|
|
6
6
|
/**
|
|
7
7
|
* The displayname to use for the user registered in {@link #credentials}.
|
|
8
8
|
*
|
|
@@ -29,5 +29,5 @@ export declare const test: import("playwright/test").TestType<import("playwright
|
|
|
29
29
|
* app.
|
|
30
30
|
*/
|
|
31
31
|
user: Credentials;
|
|
32
|
-
}, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions & import("./services.js").WorkerOptions & import("./services.js").Services>;
|
|
32
|
+
}, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions & import("./services.js").WorkerOptions & import("./services.js").Services>;
|
|
33
33
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/fixtures/user.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,0IAA0I;AAC1I,wBAAsB,mCAAmC,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,iBAuB7F;AAED,eAAO,MAAM,IAAI;IACb;;;;;OAKG;kBACW,MAAM;IAEpB;;;OAGG;iBACU,WAAW;IAExB;;;;;;OAMG;yBACkB,IAAI;IAEzB;;;;OAIG;UACG,WAAW;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/fixtures/user.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,0IAA0I;AAC1I,wBAAsB,mCAAmC,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,iBAuB7F;AAED,eAAO,MAAM,IAAI;IACb;;;;;OAKG;kBACW,MAAM;IAEpB;;;OAGG;iBACU,WAAW;IAExB;;;;;;OAMG;yBACkB,IAAI;IAEzB;;;;OAIG;UACG,WAAW;mLA+BnB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type AbstractStartedContainer, type GenericContainer } from "testcontainers";
|
|
2
2
|
import { type APIRequestContext, type TestInfo } from "@playwright/test";
|
|
3
|
-
import { type StartedMatrixAuthenticationServiceContainer } from "./mas";
|
|
4
|
-
import { type ClientServerApi, type Credentials } from "../utils/api";
|
|
5
|
-
import { type StartedMailpitContainer } from "./mailpit";
|
|
3
|
+
import { type StartedMatrixAuthenticationServiceContainer } from "./mas.js";
|
|
4
|
+
import { type ClientServerApi, type Credentials } from "../utils/api.js";
|
|
5
|
+
import { type StartedMailpitContainer } from "./mailpit.js";
|
|
6
6
|
export interface HomeserverInstance {
|
|
7
7
|
readonly baseUrl: string;
|
|
8
8
|
readonly csApi: ClientServerApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomeserverContainer.d.ts","sourceRoot":"","sources":["../../src/testcontainers/HomeserverContainer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EAAE,KAAK,2CAA2C,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HomeserverContainer.d.ts","sourceRoot":"","sources":["../../src/testcontainers/HomeserverContainer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAA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Q,wBAAwB,EAAE,kBAAkB;IAC5F;;;OAGG;IACH,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAE7C;;;OAGG;IACH,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD"}
|
|
@@ -133,12 +133,7 @@ declare const DEFAULT_CONFIG: {
|
|
|
133
133
|
room_name: string;
|
|
134
134
|
};
|
|
135
135
|
allow_guest_access: boolean;
|
|
136
|
-
experimental_features:
|
|
137
|
-
/**
|
|
138
|
-
* MSC4143 Matrix RTC: Required for `matrix_rtc` configuration.
|
|
139
|
-
*/
|
|
140
|
-
msc4143_enabled: boolean;
|
|
141
|
-
};
|
|
136
|
+
experimental_features: Record<string, boolean>;
|
|
142
137
|
matrix_rtc: undefined | {
|
|
143
138
|
transports: Array<{
|
|
144
139
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synapse.d.ts","sourceRoot":"","sources":["../../src/testcontainers/synapse.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,wBAAwB,EACxB,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAE5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQzE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACrG,OAAO,EAAE,KAAK,2CAA2C,EAAE,MAAM,UAAU,CAAC;AAC5E,OAAO,EAAE,GAAG,EAAE,eAAe,EAAa,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE5D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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: undefined,
|
|
128
128
|
allow_guest_access: false,
|
|
129
|
-
experimental_features: {
|
|
130
|
-
/**
|
|
131
|
-
* MSC4143 Matrix RTC: Required for `matrix_rtc` configuration.
|
|
132
|
-
*/
|
|
133
|
-
msc4143_enabled: false,
|
|
134
|
-
},
|
|
129
|
+
experimental_features: {},
|
|
135
130
|
matrix_rtc: undefined,
|
|
136
131
|
oidc_providers: [],
|
|
137
132
|
serve_server_wellknown: true,
|
package/package.json
CHANGED
package/src/fixtures/axe.ts
CHANGED
|
@@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
|
|
|
8
8
|
|
|
9
9
|
import AxeBuilder from "@axe-core/playwright";
|
|
10
10
|
|
|
11
|
-
import { test as base } from "./user";
|
|
11
|
+
import { test as base } from "./user.js";
|
|
12
12
|
|
|
13
13
|
// We want to avoid using `mergeTests` because it drops useful type information about the fixtures. Instead, we extend
|
|
14
14
|
// the definition of `test` from `user.ts`, so that there is a linear hierarchy.
|
package/src/fixtures/index.ts
CHANGED
|
@@ -9,4 +9,4 @@ export { type Services, type WorkerOptions } from "./services.js";
|
|
|
9
9
|
|
|
10
10
|
// We avoid using `mergeTests` because it drops useful type information about the fixtures.
|
|
11
11
|
// `axe` is the top of our stack of extensions (it extends `user`, etc), so it's the one we want to use.
|
|
12
|
-
export { test } from "./axe";
|
|
12
|
+
export { test } from "./axe.js";
|
|
@@ -8,9 +8,9 @@ Please see LICENSE files in the repository root for full details.
|
|
|
8
8
|
import { type AbstractStartedContainer, type GenericContainer } from "testcontainers";
|
|
9
9
|
import { type APIRequestContext, type TestInfo } from "@playwright/test";
|
|
10
10
|
|
|
11
|
-
import { type StartedMatrixAuthenticationServiceContainer } from "./mas";
|
|
12
|
-
import { type ClientServerApi, type Credentials } from "../utils/api";
|
|
13
|
-
import { type StartedMailpitContainer } from "./mailpit";
|
|
11
|
+
import { type StartedMatrixAuthenticationServiceContainer } from "./mas.js";
|
|
12
|
+
import { type ClientServerApi, type Credentials } from "../utils/api.js";
|
|
13
|
+
import { type StartedMailpitContainer } from "./mailpit.js";
|
|
14
14
|
|
|
15
15
|
export interface HomeserverInstance {
|
|
16
16
|
readonly baseUrl: string;
|
|
@@ -170,12 +170,7 @@ const DEFAULT_CONFIG = {
|
|
|
170
170
|
room_name: string;
|
|
171
171
|
},
|
|
172
172
|
allow_guest_access: false,
|
|
173
|
-
experimental_features: {
|
|
174
|
-
/**
|
|
175
|
-
* MSC4143 Matrix RTC: Required for `matrix_rtc` configuration.
|
|
176
|
-
*/
|
|
177
|
-
msc4143_enabled: false,
|
|
178
|
-
},
|
|
173
|
+
experimental_features: {} as Record<string, boolean>,
|
|
179
174
|
matrix_rtc: undefined as
|
|
180
175
|
| undefined
|
|
181
176
|
| {
|