mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 21:43:43 +03:00
5faddf52f0
- Fix ESLint errors - Add documentation for *some* functions with blank documentation # Important Notes None
22 lines
758 B
TypeScript
22 lines
758 B
TypeScript
/** @file Actions for the "editor" page. */
|
|
import * as goToPageActions from './goToPageActions'
|
|
import PageActions from './PageActions'
|
|
|
|
// =========================
|
|
// === EditorPageActions ===
|
|
// =========================
|
|
|
|
/** Actions for the "editor" page. */
|
|
export default class EditorPageActions extends PageActions {
|
|
/** Actions for navigating to another page. */
|
|
get goToPage(): Omit<goToPageActions.GoToPageActions, 'editor'> {
|
|
return goToPageActions.goToPageActions(this.step.bind(this))
|
|
}
|
|
/** Waits for the editor to load. */
|
|
waitForEditorToLoad(): EditorPageActions {
|
|
return this.step('wait for the editor to load', async () => {
|
|
await this.page.waitForSelector('[data-testid=editor]', { state: 'visible' })
|
|
})
|
|
}
|
|
}
|