diff --git a/tests/playwright/island-ssr.spec.js b/tests/playwright/island-ssr.spec.js index cb656b65..093963f8 100644 --- a/tests/playwright/island-ssr.spec.js +++ b/tests/playwright/island-ssr.spec.js @@ -56,13 +56,13 @@ test.describe('Island SSR', () => { await expect(stepper).not.toBeEmpty(); // Should have actual content — not be 0 bytes - const text = await stepper.textContent(); - expect(text.length).toBeGreaterThan(10); + const html = await stepper.innerHTML(); + expect(html.length).toBeGreaterThan(10); - // Should NOT show raw SX component calls - expect(text).not.toContain('~cssx/tw'); - expect(text).not.toContain('(div'); - expect(text).not.toContain(':tokens'); + // SSR should produce actual HTML elements, not raw SX + // The stepper has a code-view div with styled spans + expect(html).toContain('