Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

569 B
Raw Blame
import { expect, test } from "@playwright/test";

test("gopls constants and globals use the Go scheme attributes", async ({ page }) => {
  await page.goto("/e2e/goHighlight.html");
  await expect(page.locator(".cm-sem-constant")).toHaveText("Limit");
  await expect(page.locator(".cm-sem-constant")).toHaveCSS("color", "rgb(34, 68, 102)");
  await expect(page.locator(".cm-sem-global")).toHaveText("Global");
  await expect(page.locator(".cm-sem-global")).toHaveCSS("color", "rgb(51, 85, 119)");
  await expect(page.locator(".cm-sem-namespace")).toHaveText("fmt");
});