mirror of
https://github.com/enso-org/enso.git
synced 2024-12-29 20:32:03 +03:00
b7a8909818
- Improved performance by batching simulatenous node edits, including metadata updates when dragging many selected nodes together. - Updated Vue to new version, allowing us to use `defineModel`. - Fixed #9161 - Unified all handling of auto-blur by making `useAutoBlur` cheap to register - all logic goes through a single window event handler. - Combined all `ResizeObserver`s into one. - Fixed the behaviour of repeated toast messages. Now only the latest compilation status is visible at any given time, and the errors disappear once compilation passes. - Actually fixed broken interaction of node and visualization widths. There no longer is a style feedback loop and the visible node backdrop width no longer jumps or randomly fails to update.
19 lines
738 B
TypeScript
19 lines
738 B
TypeScript
import { test } from '@playwright/test'
|
|
import * as actions from './actions'
|
|
import { expect } from './customExpect'
|
|
import * as locate from './locate'
|
|
|
|
test('graph can open and render nodes', async ({ page }) => {
|
|
await actions.goToGraph(page)
|
|
await expect(locate.graphEditor(page)).toExist()
|
|
await expect(locate.graphNode(page)).toExist()
|
|
|
|
// check simple node's content (without input widgets)
|
|
const sumNode = locate.graphNodeByBinding(page, 'sum')
|
|
await expect(sumNode.locator('.WidgetToken')).toHaveText(['five', '+', 'ten'])
|
|
|
|
// check documented node's content
|
|
const finalNode = locate.graphNodeByBinding(page, 'final')
|
|
await expect(finalNode.locator('.WidgetToken')).toHaveText(['Main', '.', 'func1', 'prod'])
|
|
})
|