1
0

default-features-disabled.spec.js 394 B

1234567891011
  1. // @ts-check
  2. const { test, expect } = require("@playwright/test");
  3. test("loads with correct features", async ({ page }) => {
  4. await page.goto("http://localhost:8002");
  5. // Expect the page to contain the pending text.
  6. const main = page.locator("#main");
  7. await expect(main).toContainText('server features: ["server"]');
  8. await expect(main).toContainText('client features: ["web"]');
  9. });