playwright-shared-context-fixture
v1.1.0
Published
<div align="center"> <br> <header> <img src="https://github.com/cubanducko/playwright-shared-context-fixture/blob/main/assets/logo.webp?raw=true" height="64" /> </header> <br> <h1>playwright-shared-context-fixture</h1> <p> 👩❤️👩 Share a
Downloads
6
Maintainers
Readme
🚀 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