mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 13:41:39 +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.
36 lines
1.4 KiB
TypeScript
36 lines
1.4 KiB
TypeScript
import { test, type Page } from '@playwright/test'
|
|
import * as actions from './actions'
|
|
import { expect } from './customExpect'
|
|
import { mockExpressionUpdate } from './expressionUpdates'
|
|
import * as locate from './locate'
|
|
import { graphNodeByBinding } from './locate'
|
|
|
|
/**
|
|
* Prepare the graph for the tests. We add the table type to the `aggregated` node.
|
|
*/
|
|
async function initGraph(page: Page) {
|
|
await actions.goToGraph(page)
|
|
await mockExpressionUpdate(page, 'aggregated', { type: 'Standard.Table.Data.Table.Table' })
|
|
}
|
|
|
|
/**
|
|
Scenario: We open the default visualisation of the `aggregated` node. We expect it to be a table visualisation and to
|
|
contain 10 rows and the values 0,0 to 3,0, which are just some sample values that should be visible in the table
|
|
after opening it.
|
|
*/
|
|
test('Load Table Visualisation', async ({ page }) => {
|
|
await initGraph(page)
|
|
|
|
const aggregatedNode = graphNodeByBinding(page, 'aggregated')
|
|
await aggregatedNode.click()
|
|
await page.keyboard.press('Space')
|
|
await page.waitForTimeout(1000)
|
|
const tableVisualization = locate.tableVisualization(page)
|
|
await expect(tableVisualization).toExist()
|
|
await expect(tableVisualization).toContainText('10 rows.')
|
|
await expect(tableVisualization).toContainText('0,0')
|
|
await expect(tableVisualization).toContainText('1,0')
|
|
await expect(tableVisualization).toContainText('2,0')
|
|
await expect(tableVisualization).toContainText('3,0')
|
|
})
|