File tree Expand file tree Collapse file tree
apps/web/playwright/plugins/homeserver/synapse Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ Please see LICENSE files in the repository root for full details.
99import { type SynapseContainer } from "@element-hq/element-web-playwright-common/lib/testcontainers/index.js" ;
1010
1111import { 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
1317export 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 : {
You can’t perform that action at this time.
0 commit comments