test: adapt unit tests to HealthChat fork customizations

This commit is contained in:
2026-06-06 15:14:12 +02:00
parent 2685821bdc
commit d72b973d01
9 changed files with 36 additions and 58 deletions
@@ -1688,8 +1688,9 @@ describe("<MatrixChat />", () => {
await flushPromises();
expect(Lifecycle.attemptDelegatedAuthLogin).toHaveBeenCalled();
// should just show the welcome screen
await rendered.findByText("Welcome to Test");
// should just show the welcome screen (wait for welcome page chrome render; HealthChat's
// Welcome renders an EmbeddedPage body that does not load under jsdom, so assert on the chrome)
await rendered.findByText("Powered by Matrix");
expect(rendered.container).toMatchSnapshot();
});