/** @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 { 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' }) }) } }