enso/app/gui/integration-test/dashboard/actions/openUserMenuAction.ts
somebody1234 b83c5a15eb
Clean up integration tests and add listeners for backend calls (#11847)
- Close https://github.com/enso-org/cloud-v2/issues/1604
- Add ability to track backend calls
- Remove inconsistent integration test code
- Add skeleton classes for settings pages

# Important Notes
None
2024-12-12 09:49:58 +00:00

14 lines
471 B
TypeScript

/** @file An action to open the User Menu. */
import { TEXT } from '.'
import type BaseActions from './BaseActions'
import type { PageCallback } from './BaseActions'
/** An action to open the User Menu. */
export function openUserMenuAction<T extends BaseActions<Context>, Context>(
step: (name: string, callback: PageCallback<Context>) => T,
) {
return step('Open user menu', (page) =>
page.getByLabel(TEXT.userMenuLabel).locator('visible=true').click(),
)
}