mirror of
https://github.com/enso-org/enso.git
synced 2024-11-30 17:44:58 +03:00
9b7e3d0f16
- Closes #8179 # Important Notes - ⚠️ These tests are currently *not run* on any CI workflow. - There is some unused code for mocking the PM. This has been intentionally kept, as this may be useful in the future. Note that this may be useful for testing the dashboard, however the dashboard is currently only tested in cloud mode - that is, without the backend switcher, and with only the remote backend available. As such, currently it uses HTTP API mocks, and no PM mock.
18 lines
821 B
TypeScript
18 lines
821 B
TypeScript
import { expect, test } from '@playwright/test'
|
|
import * as actions from './actions'
|
|
import * as customExpect from './customExpect'
|
|
import * as locate from './locate'
|
|
|
|
test('component browser shows entries, and creates a new node', async ({ page }) => {
|
|
await actions.goToGraph(page)
|
|
await locate.graphEditor(page).click()
|
|
await locate.graphEditor(page).press('Enter')
|
|
await customExpect.toExist(locate.componentBrowser(page))
|
|
await customExpect.toExist(locate.componentBrowserEntry(page))
|
|
const nodeCount = await locate.graphNode(page).count()
|
|
await locate.componentBrowserEntry(page).last().click()
|
|
await locate.componentBrowserEntry(page).last().click({ force: true })
|
|
await expect(locate.componentBrowser(page)).not.toBeVisible()
|
|
await expect(locate.graphNode(page)).toHaveCount(nodeCount + 1)
|
|
})
|