import { expect, test } from '@playwright/test'; test('server shell remains readable with JavaScript disabled', async ({ browser }) => { const context = await browser.newContext({ javaScriptEnabled: false, colorScheme: 'dark' }); const page = await context.newPage(); await page.goto('/ar'); await expect(page.locator('html')).toHaveAttribute('lang', 'ar'); await expect(page.locator('html')).toHaveAttribute('dir', 'rtl'); await expect(page.locator('h1')).toBeVisible(); await expect(page.locator('footer')).toBeVisible(); await context.close(); });