Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/rules/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path: tests/**
## Things That Break

- **Never use `page.goBack()`.** WP Playground crashes. Split into separate tests instead.
- **No `retries` in playwright config.** Retries mask real failures. Use `retries: 0`.
- **Retries are CI-only.** `retries: process.env.CI ? 1 : 0`. One CI retry absorbs WP Playground flakes (random 500s, crashes); local runs stay at 0 so real failures surface.
- **Tests share state within a spec.** Settings persist between tests in the same spec file. Explicitly reset anything a previous test might have changed.
- **Isolate heavy tests.** Complex tests (WASM compilation, multi-step workflows) should get their own directory with a `blueprint.json` so they run in a fresh Playground instance.

Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const portMap = Object.fromEntries(

export default defineConfig({
forbidOnly: !!process.env.CI,
retries: 0,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: 'html',
use: {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Pattern CSS - The CSS Editor For Blocks ===
Contributors: kbat82
Tags: block, css, styles, inline, editor
Tested up to: 7.0
Tested up to: 7.1
Stable tag: 1.5.6
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
Loading