enso/app/gui2/e2e/rightDock.spec.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
728 B
TypeScript
Raw Normal View History

import { expect, test } from 'playwright/test'
import * as actions from './actions'
import { CONTROL_KEY } from './keyboard'
test('Main method documentation', async ({ page }) => {
await actions.goToGraph(page)
// Documentation panel hotkey opens right-dock.
await expect(page.getByTestId('rightDock')).not.toBeVisible()
await page.keyboard.press(`${CONTROL_KEY}+D`)
await expect(page.getByTestId('rightDock')).toBeVisible()
// Right-dock displays main method documentation.
await expect(page.getByTestId('rightDock')).toHaveText('The main method')
// Documentation hotkey closes right-dock.p
await page.keyboard.press(`${CONTROL_KEY}+D`)
await expect(page.getByTestId('rightDock')).not.toBeVisible()
})