Files
Rental-operations-platform/tests/browser/no-javascript.spec.ts
T
2026-06-25 19:06:59 -04:00

13 lines
568 B
TypeScript

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();
});