Files
authentik/web/src/elements/tests/utils.ts
Jens L. 0cf6bff93c tests/e2e: add test for authentication flow in compatibility mode (#14392)
* tests/e2e: add test for authentication flow in compatibility mode

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* web: Add prefix class to CSS for easier debugging of constructed stylesheets.

- Use CSS variables for highlighter.

* web: Fix issue where MDX components apply styles out of order.

* web: Fix hover color.

* web: Fix CSS module types. Clean up globals.

* web: Fix issues surrounding availability of shadow root in compatibility mode.

* web: Fix typo.

* web: Partial fixes for storybook dark theme.

* web: Fix overflow.

* web: Fix issues surrounding competing interfaces attempting to apply styles.

* fix padding in ak-alert in. markdown

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* web: Minimize use of sub-module exports.

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Teffen Ellis <teffen@sister.software>
2025-05-15 16:51:11 +02:00

17 lines
490 B
TypeScript

import { applyDocumentTheme } from "@goauthentik/common/theme.js";
import { TemplateResult, render as litRender } from "lit";
/**
* A special version of render that ensures our stylesheets:
*
* - Will always be available to all elements under test.
* - Ensure they look right during testing.
* - CSS-based checks for visibility will return correct values.
*/
export const render = (body: TemplateResult) => {
applyDocumentTheme();
return litRender(body, document.body);
};