1.1.0 • Published 2 years ago
playwright-shared-context-fixture v1.1.0
🚀 Use case
🌱 Installation
# Yarn
yarn add --dev playwright-shared-context-fixture
# PNPM
pnpm add --D playwright-shared-context-fixture
# NPM
npm install --save-dev playwright-shared-context-fixture
📝 Usage
Include the sharedContextFixture
in the @playwright/test
extend
import { test as base } from "@playwright/test";
import { createSharedContextFixture } from "playwright-shared-context-fixture";
const fixtures = createSharedContextFixture();
const test = base.extend(fixtures);
// Context is now shared
test("my test", async ({ page }) => {});
LICENSE
MIT