Skip to content

Commit dd95f93

Browse files
committed
Fix consentHomeserver.ts
1 parent ea2a878 commit dd95f93

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

apps/web/playwright/plugins/homeserver/synapse/consentHomeserver.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ Please see LICENSE files in the repository root for full details.
99
import { type SynapseContainer } from "@element-hq/element-web-playwright-common/lib/testcontainers/index.js";
1010

1111
import { type Fixtures } from "../../../element-web-test.ts";
12+
import { dirname, join } from "node:path";
13+
import { fileURLToPath } from "node:url";
14+
15+
const __dirname = dirname(fileURLToPath(import.meta.url));
1216

1317
export const consentHomeserver: Fixtures = {
1418
_homeserver: [
1519
async ({ _homeserver: container, mailpit }, use) => {
1620
(container as SynapseContainer)
17-
.withCopyDirectoriesToContainer([
18-
{ source: "playwright/plugins/homeserver/synapse/res", target: "/data/res" },
19-
])
21+
.withCopyDirectoriesToContainer([{ source: join(__dirname, "res"), target: "/data/res" }])
2022
.withSmtpServer(mailpit)
2123
.withConfig({
2224
user_consent: {

0 commit comments

Comments
 (0)