@netanelh2/playwright-framework
Version:
A robust Playwright TypeScript testing framework with Page Object Model, smart locators, and utilities
25 lines • 1.06 kB
TypeScript
import type { basePageFixtures } from '../types/fixtureTypes.js';
/**
* Base test fixtures that provide consistent browser context and page management.
* Users can extend this in their projects to add their specific page objects.
*
* @example
* ```typescript
* // In user's project
* import { test as baseTest } from '@netanelh2/playwright-framework/fixtures'
* import { MainPage } from '../pages/MainPage'
* import { LoginPage } from '../pages/LoginPage'
*
* export const test = baseTest.extend({
* mainPage: async ({page}, use) => {
* await use(new MainPage(page))
* },
* loginPage: async ({page}, use) => {
* await use(new LoginPage(page))
* },
* })
* ```
*/
export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & basePageFixtures, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
export { expect } from '@playwright/test';
//# sourceMappingURL=testSetup.d.ts.map