@its-tailtime/playwright-utils
v1.0.3
Published
Utilities supporting Playwright test development.
Maintainers
Readme
playwright-utils
Utilities supporting Playwright test development.
Installation
Run the following command (this will also install dependencies):
pnpm add --save-dev @its-tailtime/playwright-utilsFixtures exported by this package should be added by importing this package in your setup files - e.g. in playwright/helpers for testing. you should structure this in the following way, with any local customisations all added to the relevant expect.ts or test.ts files so that type inference works correctly.
// playwright/helpers/expect.ts
import { expect as playwrightUtilsExpect } from '@its-tailtime/playwright-utils';
import { mergeExpects } from '@playwright/test';
export const expect = mergeExpects(playwrightUtilsExpect);// playwright/helpers/test.ts
import { test as playwrightUtilsTest } from '@its-tailtime/playwright-utils';
import { mergeTests } from '@playwright/test';
export const test = mergeTests(playwrightUtilsTest);// playwright/helpers/index.ts
export * from './expect';
export * from './test';