heynote/tests/language-selector.spec.js
2025-01-03 15:59:44 +01:00

17 lines
527 B
JavaScript

import { test, expect } from "@playwright/test";
import { HeynotePage } from "./test-utils.js";
let heynotePage
test.beforeEach(async ({ page }) => {
heynotePage = new HeynotePage(page)
await heynotePage.goto()
})
test("test language selector search by file ending", async ({ page }) => {
await page.locator("body").press(heynotePage.agnosticKey("Mod+L"))
await page.locator("body").pressSequentially("cpp")
await expect(page.locator("css=.language-selector .items > li.selected")).toHaveText("C++")
})