mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 14:41:31 +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
786 B
TypeScript
19 lines
786 B
TypeScript
import { test } from '@playwright/test'
|
|
import * as actions from './actions'
|
|
import { expect } from './customExpect'
|
|
import * as locate from './locate'
|
|
|
|
test('node can open and load visualization', async ({ page }) => {
|
|
await actions.goToGraph(page)
|
|
const node = locate.graphNode(page).last()
|
|
await node.click({ position: { x: 8, y: 8 } })
|
|
await expect(locate.circularMenu(page)).toExist()
|
|
await locate.toggleVisualizationButton(page).click()
|
|
await expect(locate.anyVisualization(page)).toExist()
|
|
await locate.showVisualizationSelectorButton(page).click()
|
|
await page.getByText('JSON').click()
|
|
await expect(locate.jsonVisualization(page)).toExist()
|
|
// The default JSON viz data contains an object.
|
|
await expect(locate.jsonVisualization(page)).toContainText('{')
|
|
})
|