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
This directory contains end-to-end tests for Yew using Playwright.
4
+
5
+
## SVG Rendering Test
6
+
7
+
The test (`tests/svg-bug.spec.ts`) verifies proper rendering of SVG elements with camelCased tag names.
8
+
9
+
### The Bug/Feature
10
+
11
+
Yew currently has an issue where camelCase SVG filter primitive elements (like `feDropShadow`) are converted to lowercase, causing them to fail to render in some browsers. This test:
12
+
13
+
1. Renders an SVG with a `feDropShadow` filter effect (should create a red glow)
14
+
2. Takes a screenshot and analyzes the pixels
15
+
3.**Currently expected to fail** because all pixels are white - the drop shadow doesn't render
16
+
17
+
## Running Tests Locally
18
+
19
+
at the root of the project:
20
+
```bash
21
+
# Install dependencies
22
+
npm install
23
+
24
+
# Install Playwright browsers
25
+
npx playwright install chromium
26
+
27
+
# Run tests
28
+
npx playwright test
29
+
30
+
# Run tests with UI
31
+
npx playwright test --ui
32
+
33
+
# View test report
34
+
npx playwright show-report
35
+
```
36
+
37
+
38
+
The tests automatically start a development server using `trunk serve` before running.
0 commit comments