apps/nextjs-app/e2e/pages/index/index-chinese.spec.ts
import { test, expect } from '@playwright/test';
import page404JsonZh from '@teable/common-i18n/locales/zh/system.json';
test.use({
locale: 'zh',
});
test.describe('Demo page', () => {
test('should have the title in english by default', async ({ page }) => {
await page.goto('/');
const title = await page.title();
expect(title).toBe(page404JsonZh.notFound.title);
});
});