mirror of
https://github.com/heyman/heynote.git
synced 2025-01-31 10:29:13 +01:00
c87ea672b0
This makes the "cpp" string match C++, and "cs" match C#.
17 lines
527 B
JavaScript
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++")
|
|
})
|