* Don't enable default features when only either the server or client is enabled
12 lines
394 B
JavaScript
12 lines
394 B
JavaScript
// @ts-check
|
|
const { test, expect } = require("@playwright/test");
|
|
|
|
test("loads with correct features", async ({ page }) => {
|
|
await page.goto("http://localhost:8002");
|
|
|
|
// Expect the page to contain the pending text.
|
|
const main = page.locator("#main");
|
|
await expect(main).toContainText('server features: ["server"]');
|
|
await expect(main).toContainText('client features: ["web"]');
|
|
});
|