@gravity-ui/playwright-tools 1.1.4-beta.3be51924dcfa6cfc2cfba9e2643e5715a5eff55b.0 → 1.1.4-beta.e02ccbdf2f7998468c06de40899386ad69d7b695.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export type { MountFn, MountTestArgs } from './mount';
1
+ export type { MountFn, MountTestArgs, MountTestOptions, MountWorkerArgs, MountWorkerOptions, MountTestFixtures, MountWorkerFixtures, MountFixtures, } from './mount';
2
2
  export { mountFixture, TEST_WRAPPER_CLASS } from './mount';
@@ -1,3 +1,3 @@
1
- export type { MountFn, MountTestArgs } from './types';
1
+ export type { MountFn, MountTestArgs, MountTestOptions, MountWorkerArgs, MountWorkerOptions, MountTestFixtures, MountWorkerFixtures, MountFixtures, } from './types';
2
2
  export { mountFixture } from './mount-fixture';
3
3
  export { TEST_WRAPPER_CLASS } from './constants';
@@ -1,5 +1,5 @@
1
1
  import type { PlaywrightTestArgs, PlaywrightTestOptions, TestFixture } from '@playwright/test';
2
- import type { MountFn, MountTestArgs } from './types';
2
+ import type { MountFn, MountTestFixtures } from './types';
3
3
  /**
4
4
  * Enhanced mount fixture that wraps components with styling and layout controls.
5
5
  *
@@ -13,4 +13,4 @@ import type { MountFn, MountTestArgs } from './types';
13
13
  * Playwright blocks function components defined in test context. See mount-wrapper.ts
14
14
  * for more details on this restriction.
15
15
  */
16
- export declare const mountFixture: TestFixture<MountFn, PlaywrightTestArgs & PlaywrightTestOptions & MountTestArgs>;
16
+ export declare const mountFixture: TestFixture<MountFn, PlaywrightTestArgs & PlaywrightTestOptions & MountTestFixtures>;
@@ -7,3 +7,9 @@ export type MountFn = <HooksConfig>(component: React.JSX.Element, options?: Moun
7
7
  export type MountTestArgs = {
8
8
  mount: MountFn;
9
9
  };
10
+ export type MountTestOptions = {};
11
+ export type MountWorkerArgs = {};
12
+ export type MountWorkerOptions = {};
13
+ export type MountTestFixtures = MountTestArgs & MountTestOptions;
14
+ export type MountWorkerFixtures = MountWorkerArgs & MountWorkerOptions;
15
+ export type MountFixtures = MountTestFixtures & MountWorkerFixtures;
@@ -1,4 +1,4 @@
1
1
  export type { Cases, CasesWithName, Scenario, ScenarioName } from './utils';
2
2
  export { createSmokeScenarios } from './utils';
3
- export type { MountFn, MountTestArgs } from './fixtures';
3
+ export type { MountFn, MountTestArgs, MountTestOptions, MountWorkerArgs, MountWorkerOptions, MountTestFixtures, MountWorkerFixtures, MountFixtures, } from './fixtures';
4
4
  export { mountFixture, TEST_WRAPPER_CLASS } from './fixtures';
@@ -1,3 +1,3 @@
1
1
  import type { Fixtures, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions } from '@playwright/test';
2
- import type { ExpectRequestFixturesBuilderParams, ExpectRequestTestArgs, ExpectRequestWorkerArgs } from './types';
3
- export declare function expectRequestFixturesBuilder(_params?: ExpectRequestFixturesBuilderParams): Fixtures<ExpectRequestTestArgs, ExpectRequestWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
2
+ import type { ExpectRequestFixturesBuilderParams } from './types';
3
+ export declare function expectRequestFixturesBuilder(_params?: ExpectRequestFixturesBuilderParams): Fixtures<import("./types").ExpectRequestTestArgs, import("./types").ExpectRequestWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
@@ -1,3 +1,3 @@
1
- export type { ExpectRequestFn, ExpectRequestTestArgs, ExpectRequestWorkerArgs, ExpectRequestFixturesBuilderParams, } from './types';
1
+ export type { ExpectRequestFn, ExpectRequestTestArgs, ExpectRequestTestOptions, ExpectRequestWorkerArgs, ExpectRequestWorkerOptions, ExpectRequestTestFixtures, ExpectRequestWorkerFixtures, ExpectRequestFixtures, ExpectRequestFixturesBuilderParams, } from './types';
2
2
  export type { ExpectRequestFnMatcher, ExpectRequestFnOptions } from '../../actions/expect-request';
3
3
  export { expectRequestFixturesBuilder } from './expect-request-fixture';
@@ -1,7 +1,12 @@
1
1
  import type { ExpectRequestFnMatcher, ExpectRequestFnOptions } from '../../actions/expect-request';
2
2
  export type ExpectRequestFn = (url: string | RegExp, matcher?: ExpectRequestFnMatcher, options?: ExpectRequestFnOptions) => Promise<void>;
3
- export interface ExpectRequestTestArgs {
3
+ export type ExpectRequestTestArgs = {
4
4
  expectRequest: ExpectRequestFn;
5
- }
5
+ };
6
+ export type ExpectRequestTestOptions = {};
6
7
  export type ExpectRequestWorkerArgs = {};
8
+ export type ExpectRequestWorkerOptions = {};
9
+ export type ExpectRequestTestFixtures = ExpectRequestTestArgs & ExpectRequestTestOptions;
10
+ export type ExpectRequestWorkerFixtures = ExpectRequestWorkerArgs & ExpectRequestWorkerOptions;
11
+ export type ExpectRequestFixtures = ExpectRequestTestFixtures & ExpectRequestWorkerFixtures;
7
12
  export type ExpectRequestFixturesBuilderParams = {};
@@ -1,3 +1,3 @@
1
1
  import type { Fixtures, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions } from '@playwright/test';
2
- import type { ExpectScreenshotFixtureBuilderParams, ExpectScreenshotTestArgs, ExpectScreenshotWorkerArgs } from './types';
3
- export declare function expectScreenshotFixturesBuilder({ screenshotOptions, getDefaultMask, getDefaultLocator, ...restDefaults }?: ExpectScreenshotFixtureBuilderParams): Fixtures<ExpectScreenshotTestArgs, ExpectScreenshotWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
2
+ import type { ExpectScreenshotFixtureBuilderParams } from './types';
3
+ export declare function expectScreenshotFixturesBuilder({ screenshotOptions, getDefaultMask, getDefaultLocator, ...restDefaults }?: ExpectScreenshotFixtureBuilderParams): Fixtures<import("./types").ExpectScreenshotTestArgs, import("./types").ExpectScreenshotWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
@@ -1,2 +1,2 @@
1
1
  export { expectScreenshotFixturesBuilder } from './expect-screenshot-fixture';
2
- export type { ExpectScreenshotFixtureBuilderParams, ExpectScreenshotFn, ExpectScreenshotTestArgs, ExpectScreenshotWorkerArgs, } from './types';
2
+ export type { ExpectScreenshotFixtureBuilderParams, ExpectScreenshotFn, ExpectScreenshotTestArgs, ExpectScreenshotTestOptions, ExpectScreenshotWorkerArgs, ExpectScreenshotWorkerOptions, ExpectScreenshotTestFixtures, ExpectScreenshotWorkerFixtures, ExpectScreenshotFixtures, } from './types';
@@ -13,4 +13,9 @@ export type ExpectScreenshotFn = (params?: ExpectScreenshotOptions) => Promise<v
13
13
  export type ExpectScreenshotTestArgs = {
14
14
  expectScreenshot: ExpectScreenshotFn;
15
15
  };
16
+ export type ExpectScreenshotTestOptions = {};
16
17
  export type ExpectScreenshotWorkerArgs = {};
18
+ export type ExpectScreenshotWorkerOptions = {};
19
+ export type ExpectScreenshotTestFixtures = ExpectScreenshotTestArgs & ExpectScreenshotTestOptions;
20
+ export type ExpectScreenshotWorkerFixtures = ExpectScreenshotWorkerArgs & ExpectScreenshotWorkerOptions;
21
+ export type ExpectScreenshotFixtures = ExpectScreenshotTestFixtures & ExpectScreenshotWorkerFixtures;
@@ -1,3 +1,3 @@
1
1
  import type { Fixtures, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions } from '@playwright/test';
2
- import type { GlobalSettingsFixturesBuilderParams, GlobalSettingsTestArgs, GlobalSettingsWorkerArgs } from './types';
3
- export declare function globalSettingsFixturesBuilder({ globalSettings }?: GlobalSettingsFixturesBuilderParams): Fixtures<GlobalSettingsTestArgs, GlobalSettingsWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
2
+ import type { GlobalSettingsFixturesBuilderParams } from './types';
3
+ export declare function globalSettingsFixturesBuilder({ globalSettings }?: GlobalSettingsFixturesBuilderParams): Fixtures<import("./types").GlobalSettingsTestArgs, import("./types").GlobalSettingsWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
@@ -1,2 +1,2 @@
1
- export type { GlobalSettingsFixturesBuilderParams, GlobalSettingsTestArgs, GlobalSettingsWorkerArgs, } from './types';
1
+ export type { GlobalSettingsFixturesBuilderParams, GlobalSettingsTestArgs, GlobalSettingsTestOptions, GlobalSettingsWorkerArgs, GlobalSettingsWorkerOptions, GlobalSettingsTestFixtures, GlobalSettingsWorkerFixtures, GlobalSettingsFixtures, } from './types';
2
2
  export { globalSettingsFixturesBuilder } from './global-settings-fixture';
@@ -6,10 +6,15 @@ export type GlobalSettingsFixturesBuilderParams = {
6
6
  */
7
7
  globalSettings: PartialGlobalSettings;
8
8
  };
9
- export type GlobalSettingsWorkerArgs = {
10
- initGlobalSettings: void;
11
- };
12
9
  export type GlobalSettingsTestArgs = {
13
10
  setGlobalSettings: typeof setGlobalSettings;
14
11
  getGlobalSettings: typeof getGlobalSettings;
15
12
  };
13
+ export type GlobalSettingsTestOptions = {};
14
+ export type GlobalSettingsWorkerArgs = {
15
+ initGlobalSettings: void;
16
+ };
17
+ export type GlobalSettingsWorkerOptions = {};
18
+ export type GlobalSettingsTestFixtures = GlobalSettingsTestArgs & GlobalSettingsTestOptions;
19
+ export type GlobalSettingsWorkerFixtures = GlobalSettingsWorkerArgs & GlobalSettingsWorkerOptions;
20
+ export type GlobalSettingsFixtures = GlobalSettingsTestFixtures & GlobalSettingsWorkerFixtures;
@@ -1,10 +1,10 @@
1
- export type { TestSlugFixturesBuilderParams, TestSlugResult, TestSlugTestArgs, TestSlugWorkerArgs, } from './test-slug';
1
+ export type { TestSlugFixturesBuilderParams, TestSlugResult, TestSlugTestArgs, TestSlugTestOptions, TestSlugWorkerArgs, TestSlugWorkerOptions, TestSlugTestFixtures, TestSlugWorkerFixtures, TestSlugFixtures, } from './test-slug';
2
2
  export { testSlugFixturesBuilder } from './test-slug';
3
- export type { MockNetworkFixtureBuilderParams, MockNetworkTestArgs, MockNetworkWorkerArgs, } from './mock-network';
3
+ export type { MockNetworkFixtureBuilderParams, MockNetworkTestArgs, MockNetworkTestOptions, MockNetworkWorkerArgs, MockNetworkWorkerOptions, MockNetworkTestFixtures, MockNetworkWorkerFixtures, MockNetworkFixtures, } from './mock-network';
4
4
  export { mockNetworkFixturesBuilder } from './mock-network';
5
- export type { ExpectRequestFn, ExpectRequestTestArgs, ExpectRequestWorkerArgs, ExpectRequestFixturesBuilderParams, ExpectRequestFnMatcher, ExpectRequestFnOptions, } from './expect-request';
5
+ export type { ExpectRequestFn, ExpectRequestTestArgs, ExpectRequestTestOptions, ExpectRequestWorkerArgs, ExpectRequestWorkerOptions, ExpectRequestTestFixtures, ExpectRequestWorkerFixtures, ExpectRequestFixtures, ExpectRequestFixturesBuilderParams, ExpectRequestFnMatcher, ExpectRequestFnOptions, } from './expect-request';
6
6
  export { expectRequestFixturesBuilder } from './expect-request';
7
- export type { ExpectScreenshotFn, ExpectScreenshotTestArgs, ExpectScreenshotWorkerArgs, ExpectScreenshotFixtureBuilderParams, } from './expect-screenshot';
7
+ export type { ExpectScreenshotFn, ExpectScreenshotTestArgs, ExpectScreenshotTestOptions, ExpectScreenshotWorkerArgs, ExpectScreenshotWorkerOptions, ExpectScreenshotTestFixtures, ExpectScreenshotWorkerFixtures, ExpectScreenshotFixtures, ExpectScreenshotFixtureBuilderParams, } from './expect-screenshot';
8
8
  export { expectScreenshotFixturesBuilder } from './expect-screenshot';
9
- export type { GlobalSettingsFixturesBuilderParams, GlobalSettingsTestArgs, GlobalSettingsWorkerArgs, } from './global-settings';
9
+ export type { GlobalSettingsFixturesBuilderParams, GlobalSettingsTestArgs, GlobalSettingsTestOptions, GlobalSettingsWorkerArgs, GlobalSettingsWorkerOptions, GlobalSettingsTestFixtures, GlobalSettingsWorkerFixtures, GlobalSettingsFixtures, } from './global-settings';
10
10
  export { globalSettingsFixturesBuilder } from './global-settings';
@@ -1,2 +1,2 @@
1
1
  export { mockNetworkFixturesBuilder } from './mock-network-fixture';
2
- export type { MockNetworkFixtureBuilderParams, MockNetworkTestArgs, MockNetworkWorkerArgs, } from './types';
2
+ export type { MockNetworkFixtureBuilderParams, MockNetworkTestArgs, MockNetworkTestOptions, MockNetworkWorkerArgs, MockNetworkWorkerOptions, MockNetworkTestFixtures, MockNetworkWorkerFixtures, MockNetworkFixtures, } from './types';
@@ -1,3 +1,3 @@
1
1
  import type { Fixtures, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions } from '@playwright/test';
2
- import type { MockNetworkFixtureBuilderParams, MockNetworkTestArgs, MockNetworkWorkerArgs } from './types';
3
- export declare function mockNetworkFixturesBuilder({ shouldUpdate, forceUpdateIfHarMissing, updateTimeout, zip, url: urlMatcherBuilder, dumpsFilePath, ...harPatcherParams }: MockNetworkFixtureBuilderParams): Fixtures<MockNetworkTestArgs, MockNetworkWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
2
+ import type { MockNetworkFixtureBuilderParams, MockNetworkTestFixtures } from './types';
3
+ export declare function mockNetworkFixturesBuilder({ shouldUpdate, forceUpdateIfHarMissing, updateTimeout, zip, url: urlMatcherBuilder, dumpsFilePath, ...harPatcherParams }: MockNetworkFixtureBuilderParams): Fixtures<MockNetworkTestFixtures, import("./types").MockNetworkWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
@@ -85,7 +85,13 @@ export type MockNetworkFixtureBuilderParams = {
85
85
  shouldMarkIdenticalRequests?: boolean;
86
86
  };
87
87
  export type MockNetworkTestArgs = {
88
- enableNetworkMocking: boolean;
89
88
  isMockingEnabled: boolean;
90
89
  };
90
+ export type MockNetworkTestOptions = {
91
+ enableNetworkMocking: boolean;
92
+ };
91
93
  export type MockNetworkWorkerArgs = {};
94
+ export type MockNetworkWorkerOptions = {};
95
+ export type MockNetworkTestFixtures = MockNetworkTestArgs & MockNetworkTestOptions;
96
+ export type MockNetworkWorkerFixtures = MockNetworkWorkerArgs & MockNetworkWorkerOptions;
97
+ export type MockNetworkFixtures = MockNetworkTestFixtures & MockNetworkWorkerFixtures;
@@ -1,2 +1,2 @@
1
1
  export { testSlugFixturesBuilder } from './test-slug-fixture';
2
- export type { TestSlugFixturesBuilderParams, TestSlugResult, TestSlugTestArgs, TestSlugWorkerArgs, } from './types';
2
+ export type { TestSlugFixturesBuilderParams, TestSlugResult, TestSlugTestArgs, TestSlugTestOptions, TestSlugWorkerArgs, TestSlugWorkerOptions, TestSlugTestFixtures, TestSlugWorkerFixtures, TestSlugFixtures, } from './types';
@@ -1,3 +1,3 @@
1
1
  import type { Fixtures, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions } from '@playwright/test';
2
- import type { TestSlugFixturesBuilderParams, TestSlugTestArgs, TestSlugWorkerArgs } from './types';
3
- export declare function testSlugFixturesBuilder(_params?: TestSlugFixturesBuilderParams): Fixtures<TestSlugTestArgs, TestSlugWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
2
+ import type { TestSlugFixturesBuilderParams } from './types';
3
+ export declare function testSlugFixturesBuilder(_params?: TestSlugFixturesBuilderParams): Fixtures<import("./types").TestSlugTestArgs, import("./types").TestSlugWorkerArgs, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
@@ -1,6 +1,11 @@
1
1
  export type TestSlugResult = string;
2
- export interface TestSlugTestArgs {
2
+ export type TestSlugTestArgs = {
3
3
  testSlug: TestSlugResult;
4
- }
4
+ };
5
+ export type TestSlugTestOptions = {};
5
6
  export type TestSlugWorkerArgs = {};
7
+ export type TestSlugWorkerOptions = {};
8
+ export type TestSlugTestFixtures = TestSlugTestArgs & TestSlugTestOptions;
9
+ export type TestSlugWorkerFixtures = TestSlugWorkerArgs & TestSlugWorkerOptions;
10
+ export type TestSlugFixtures = TestSlugTestFixtures & TestSlugWorkerFixtures;
6
11
  export type TestSlugFixturesBuilderParams = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/playwright-tools",
3
- "version": "1.1.4-beta.3be51924dcfa6cfc2cfba9e2643e5715a5eff55b.0",
3
+ "version": "1.1.4-beta.e02ccbdf2f7998468c06de40899386ad69d7b695.0",
4
4
  "description": "Tools for Playwright Test",
5
5
  "keywords": [
6
6
  "playwright",