enso/app/gui2/e2e/graphRenderNodes.spec.ts

19 lines
738 B
TypeScript
Raw Normal View History

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'])
})