You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed false-passes and flaky tests in `editor.spec.js` caused by missing elements being masked by improper testing patterns, and silenced JSDoc typing errors in `context-memory.spec.js` and `editor.spec.js`.
5
+
6
+
## 1. DOM Assertion Stability
7
+
**When:** The editor is evaluating emojis and GitHub callouts.
8
+
**What:** Replaced hardcoded `waitForTimeout(500)` combined with `.innerHTML()` parsing for native Playwright `.toBeVisible()` and `.toContainText()` matchers.
9
+
**Impact:** Solves race conditions caused by MathJax and Joypixels fetching fonts and stylesheets asynchronously over the network, which previously led tests to evaluate incomplete views.
10
+
11
+
## 2. JSDoc Typing Adjustments
12
+
**What:** Applied `/** @type {any[]} */` and `/** @type {any} */` casts to `errors` arrays and `window` assignments within Playwright `page.on` listeners and `page.evaluate` blocks.
13
+
**Impact:** Prevents TypeScript's strict type checker from discarding Playwright scripts due to missing explicit variable typing.
14
+
15
+
---
16
+
17
+
## Files Changed
18
+
19
+
| File | Type |
20
+
|------|------|
21
+
|`tests/feature/editor.spec.js`| Test Assertion Fixes |
22
+
|`tests/feature/context-memory.spec.js`| Test Typing Fixes |
0 commit comments