1
0

cli-optimization.spec.js 404 B

1234567891011
  1. // @ts-check
  2. const { test, expect } = require("@playwright/test");
  3. test("optimized scripts run", async ({ page }) => {
  4. await page.goto("http://localhost:8989");
  5. // Expect the page to load the script after optimizations have been applied. The script
  6. // should add an editor to the page that shows a main function
  7. const main = page.locator("#main");
  8. await expect(main).toContainText("hi");
  9. });