mirror of
https://github.com/enso-org/enso.git
synced 2024-12-26 08:32:23 +03:00
20 lines
728 B
TypeScript
20 lines
728 B
TypeScript
|
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()
|
||
|
})
|