From 90a51d4487653b333cf66ff5daca6b23dbb63d7a Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Tue, 5 Aug 2025 09:35:13 +0200 Subject: [PATCH] Allow overriding the MAS docker image --- .../src/testcontainers/mas.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/element-web-playwright-common/src/testcontainers/mas.ts b/packages/element-web-playwright-common/src/testcontainers/mas.ts index 7d248cbd9c..c177376ee4 100644 --- a/packages/element-web-playwright-common/src/testcontainers/mas.ts +++ b/packages/element-web-playwright-common/src/testcontainers/mas.ts @@ -143,9 +143,11 @@ export class MatrixAuthenticationServiceContainer extends GenericContainer { private config: MasConfig; private readonly args = ["-c", "/config/config.yaml"]; - public constructor(db: StartedPostgreSqlContainer) { - // We rely on https://github.com/element-hq/matrix-authentication-service/pull/4563 which isn't in a release yet - super("ghcr.io/element-hq/matrix-authentication-service:sha-3207d23"); + public constructor( + db: StartedPostgreSqlContainer, + image: string = "ghcr.io/element-hq/matrix-authentication-service:latest", + ) { + super(image); this.config = deepCopy(DEFAULT_CONFIG); this.config.database.username = db.getUsername();