Files
ThreadNet-Web/packages/element-web-playwright-common/src/expect/index.ts
T

22 lines
668 B
TypeScript
Raw Normal View History

2025-03-12 10:15:24 +00:00
/*
Copyright 2025 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/
import { mergeExpects, type Expect } from "@playwright/test";
import {
expect as screenshotExpectations,
2025-11-12 12:16:31 +00:00
type Expectations as ScreenshotExpectations,
type ToMatchScreenshotOptions,
2025-03-12 10:15:24 +00:00
} from "./screenshot.js";
2025-11-12 12:16:31 +00:00
import { expect as axeExpectations, type Expectations as AxeExpectations } from "./axe.js";
2025-03-12 10:15:24 +00:00
export const expect = mergeExpects(screenshotExpectations, axeExpectations) as Expect<
ScreenshotExpectations & AxeExpectations
>;
export type { ToMatchScreenshotOptions };