mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 13:02:07 +03:00
5bc873178a
- Address part of https://github.com/enso-org/cloud-v2/issues/1350 - Turns out the reason downloads were broken were (I assume) the query string was getting lost - so the Electron server never passed the correct parent directory to the backend. - Fix "Escape" key using old project ID and navigating to a nonexistent tab - Fix validation for tab names (previously all strings were passing validation due to an incorrect custom predicate being passed to `zod`) - Add clip path to entire tab bar so that the bottoms of tabs are cut off on hover if they are next to the currently selected tab. - Add s-shaped curve to hovered tabs, so that their edges match the edges of the currently selected tab. - Avoid navigating back to "Data Catalog" page when closing a project tab, when the project tab is not the currently open page. - Fix size of paywall icons in "Shared With" column (16px to be consistent with all other icons) # Important Notes None
24 lines
766 B
TypeScript
24 lines
766 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' })
|
|
})
|
|
}
|
|
}
|