diff --git a/.claude/rules/testing.md b/.claude/rules/testing.md index 03d646e..f18ae02 100644 --- a/.claude/rules/testing.md +++ b/.claude/rules/testing.md @@ -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. diff --git a/playwright.config.ts b/playwright.config.ts index 85ae128..e06dbc2 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -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: { diff --git a/readme.txt b/readme.txt index e3c855e..8fab9b4 100644 --- a/readme.txt +++ b/readme.txt @@ -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