From abb0f62b661fa2ba1a1b54527883d751b799890a Mon Sep 17 00:00:00 2001 From: Sebastian Nemeth <157464438+holvi-sebastian@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:22:21 +0300 Subject: [PATCH] Update test.d.ts Also expose related *Assertions types for library authors Signed-off-by: Sebastian Nemeth <157464438+holvi-sebastian@users.noreply.github.com> --- packages/playwright/types/test.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 84de1759ce..798e165b21 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -6018,7 +6018,7 @@ interface AsymmetricMatchers { * ``` * */ -interface GenericAssertions { +export interface GenericAssertions { /** * Makes the assertion check for the opposite condition. For example, the following code passes: * @@ -6650,7 +6650,7 @@ export { }; * ``` * */ -interface APIResponseAssertions { +export interface APIResponseAssertions { /** * Ensures the response status code is within `200..299` range. * @@ -6690,7 +6690,7 @@ interface APIResponseAssertions { * ``` * */ -interface LocatorAssertions { +export interface LocatorAssertions { /** * Ensures that {@link Locator} points to an element that is * [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot. @@ -7562,7 +7562,7 @@ interface LocatorAssertions { * ``` * */ -interface PageAssertions { +export interface PageAssertions { /** * This function will wait until two consecutive page screenshots yield the same result, and then compare the last * screenshot with the expectation. @@ -7658,7 +7658,7 @@ interface PageAssertions { * ``` * */ -interface SnapshotAssertions { +export interface SnapshotAssertions { /** * **NOTE** To compare screenshots, use * [expect(page).toHaveScreenshot(name[, options])](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-screenshot-1)