first project commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test.describe('ping smoke', () => {
|
||||
test('home page shows the seeded Demo Factory tenant', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
|
||||
// RSC card with the server-side ping result.
|
||||
const success = page.getByTestId('ping-success');
|
||||
await expect(success).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
const tenant = page.getByTestId('tenant-name');
|
||||
await expect(tenant).toHaveText('Demo Factory');
|
||||
|
||||
// Client-side hook hitting the same procedure via /api/trpc.
|
||||
const clientTenant = page.getByTestId('ping-client-tenant');
|
||||
await expect(clientTenant).toContainText('Demo Factory');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user