diff --git a/app/gui2/e2e/actions.ts b/app/gui2/e2e/actions.ts index 374cd08c56ff..0440a5473cff 100644 --- a/app/gui2/e2e/actions.ts +++ b/app/gui2/e2e/actions.ts @@ -1,4 +1,6 @@ -import { type Page } from '@playwright/test' +import { expect, type Page } from '@playwright/test' +import * as customExpect from './customExpect' +import * as locate from './locate' // ================= // === goToGraph === @@ -7,5 +9,7 @@ import { type Page } from '@playwright/test' /** Perform a successful login. */ export async function goToGraph(page: Page) { await page.goto('/') - // Originally this clicked the play button but for now that is out of scope. + expect(page.locator('.App')).toBeVisible() + // Wait until nodes are loaded. + customExpect.toExist(locate.graphNode(page)) } diff --git a/app/gui2/e2e/typesOnNodeHover.spec.ts b/app/gui2/e2e/typesOnNodeHover.spec.ts index 736f0fc960bc..23ba74421731 100644 --- a/app/gui2/e2e/typesOnNodeHover.spec.ts +++ b/app/gui2/e2e/typesOnNodeHover.spec.ts @@ -1,4 +1,4 @@ -import { expect, Locator, Page, test } from '@playwright/test' +import { expect, test, type Locator, type Page } from '@playwright/test' import assert from 'assert' import * as actions from './actions' import { mockExpressionUpdate } from './expressionUpdates'