mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 17:11:31 +03:00
736134e491
Fixes #11604 Most issues were caused by a problem with Project List flooding the network with its requests - this was fixed on develop. But one assertion was flaky - it assumed we will see the "real" run result on `write` node, but sometimes it is immediately overwritten by dry run. But the most important part of this PR is adding traces to Electron packages - it's should be much easier now to debug E2E test failures. Also renamed the previously misnamed "E2E tests" to "[GUI] integration tests".
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'])
|
|
})
|