mirror of
https://github.com/enso-org/enso.git
synced 2024-12-30 20:01:57 +03:00
fa4b980d67
Probably fixes the first point in #8942 My guess is that the mockExpressionUpdate may be not set in cases when the test runs before App mounting. To make sure all the setup is done, we wait for `App` widget to being mounted before proceeding. # Important Notes This PR also change the way we run test's server. Before it was always a production build, but this makes development iteration long. Now we test production build only on CI or when `PROD=true` env variable is set.
16 lines
444 B
TypeScript
16 lines
444 B
TypeScript
import { expect, type Page } from '@playwright/test'
|
|
import * as customExpect from './customExpect'
|
|
import * as locate from './locate'
|
|
|
|
// =================
|
|
// === goToGraph ===
|
|
// =================
|
|
|
|
/** Perform a successful login. */
|
|
export async function goToGraph(page: Page) {
|
|
await page.goto('/')
|
|
await expect(page.locator('.App')).toBeVisible()
|
|
// Wait until nodes are loaded.
|
|
await customExpect.toExist(locate.graphNode(page))
|
|
}
|