Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/test/e2e/openHelpAbout.test.ts

24 lines
869 B
TypeScript
Raw Normal View History

import { describe, test, expect } from "./baseFixture"
2021-03-16 22:43:29 +01:00
describe("Open Help > About", true, () => {
test("should see a 'Help' then 'About' button in the Application Menu that opens a dialog", async ({
codeServerPage,
}) => {
// Open using the manu
// Click [aria-label="Application Menu"] div[role="none"]
await codeServerPage.page.click('[aria-label="Application Menu"] div[role="none"]')
2021-03-16 22:43:29 +01:00
// Click the Help button
await codeServerPage.page.hover("text=Help")
await codeServerPage.page.click("text=Help")
2021-03-16 22:43:29 +01:00
// Click the About button
await codeServerPage.page.hover("text=About")
await codeServerPage.page.click("text=About")
2021-03-16 22:43:29 +01:00
// Click div[role="dialog"] >> text=code-server
const element = await codeServerPage.page.waitForSelector('div[role="dialog"] >> text=code-server')
expect(element).not.toBeNull()
})
2021-03-16 22:43:29 +01:00
})