mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 13:11:41 +03:00
e262801daa
Move the types from `Standard.Table.Data` to `Standard.Table`. Exceptions: - `Standard.Table.Data.Report_Unmatched` => `Standard.Table.Constants`. - `Standard.Table.Data.Join_Kind_Cross` => `Standard.Table.Internal.Join_Kind_Cross`. Also removed constructor as an atom type. - `Standard.Table.Extensions.Table_Ref` => `Standard.Table.Internal.Table_Ref`. - `Standard.Table.Data.Type.Value_Type_Helpers` => `Standard.Table.Internal.Value_Type_Helpers`. - `Standard.Table.Data.Type.Enso_Types` => `Standard.Table.Internal.Value_Type_Helpers`. - `Standard.Table.Data.Type.Storage` => `Standard.Table.Internal.Storage`. Changed all `Standard.Table` imports inside project to be project. Favoured importing from `Standard.Table.Main` in `Standard.Database`. Also fixed some linting in Enso_File.
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.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')
|
|
})
|