Skip to content

Commit

Permalink
Switch over from template to container hs
Browse files Browse the repository at this point in the history
  • Loading branch information
MidhunSureshR committed Jan 8, 2025
1 parent 04413ed commit a7facfa
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 162 deletions.
3 changes: 2 additions & 1 deletion playwright/e2e/right-panel/memberlist.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ Please see LICENSE files in the repository root for full details.

import { test, expect } from "../../element-web-test";
import { Bot } from "../../pages/bot";
import { presenceDisabledHomeserver } from "../../plugins/homeserver/synapse/presenceDisabledHomeserver";

const ROOM_NAME = "Test room";
const NAME = "Alice";

test.describe("Memberlist", () => {
test.use(presenceDisabledHomeserver);
test.use({
displayName: NAME,
startHomeserverOpts: "no-presence",
disablePresence: true,
});

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Copyright 2024 New Vector Ltd.
Copyright 2023 The Matrix.org Foundation C.I.C.
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/

import { Fixtures } from "@playwright/test";

import { Services } from "../../../services.ts";

export const presenceDisabledHomeserver: Fixtures<Services, {}, Services> = {
_homeserver: async ({ _homeserver: container, mailhog }, use) => {
container.withConfig({
presence: {
enabled: false,
include_offline_users_on_sync: false,
},
});
await use(container);
},
};

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a7facfa

Please sign in to comment.