2021-06-10 20:09:38 +07:00
|
|
|
import { storageState } from "../utils/constants"
|
|
|
|
import { test, expect } from "./baseFixture"
|
2021-03-17 04:43:29 +07:00
|
|
|
|
2021-04-14 02:02:52 +07:00
|
|
|
test.describe("Open Help > About", () => {
|
2021-06-10 20:09:38 +07:00
|
|
|
test.use({
|
|
|
|
storageState,
|
2021-04-22 04:31:15 +07:00
|
|
|
})
|
|
|
|
|
2021-06-10 20:09:38 +07:00
|
|
|
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-17 04:43:29 +07:00
|
|
|
|
2021-06-10 20:09:38 +07:00
|
|
|
// Click the Help button
|
|
|
|
await codeServerPage.page.hover("text=Help")
|
|
|
|
await codeServerPage.page.click("text=Help")
|
2021-03-17 04:43:29 +07:00
|
|
|
|
2021-06-10 20:09:38 +07:00
|
|
|
// Click the About button
|
|
|
|
await codeServerPage.page.hover("text=About")
|
|
|
|
await codeServerPage.page.click("text=About")
|
2021-03-17 04:43:29 +07:00
|
|
|
|
2021-06-10 20:09:38 +07: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-17 04:43:29 +07:00
|
|
|
})
|