A satirical test library that ensures every test fails by default. Why succeed when you can fail spectacularly? 🤡
In a world obsessed with success, Playwrong invites you to embrace failure as a form of liberation. Inspired by the wisdom of Zen, Playwrong reminds us that attachment to outcomes—whether passing tests or meeting expectations—can be a source of unnecessary suffering.
By guaranteeing failure, Playwrong frees you from the illusion of control and the weight of ambition. Each failed test is an opportunity to let go, to laugh, and to remember: the journey is more important than the destination. 🌱
As the Zen master says: “Success is an illusion. Failure is a gift. Playwrong is inevitable.” 🧘♂️
Install Playwrong using npm or yarn:
npm install playwrong
or
yarn add playwrong
Replace @playwright/test
with playwrong
in your tests to embrace failure: ❌
const { test, expect } = require('playwrong');
test('This test will fail', async ({ page }) => {
await page.goto('https://example.com');
expect(1).toBe(1); // But it will still fail. 💔
});
Output:
✖ This test will fail
Error: This test failed because "playwrong" says so!
- Every test fails—no conditions, no questions. 💀
- One simple message: "This test failed because 'playwrong' says so!" 📝
- Zero configuration: Simple, clean, and guaranteed to disappoint. 🫠
Playwrong is built on top of Playwright. It supports the same environments:
- 🌐 Chromium
- 🦊 Firefox
- 🍎 WebKit
To use Playwrong, ensure you have Playwright installed:
npm install @playwright/test
Playwrong is licensed under the MIT License. See LICENSE for details.