mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 23:01:29 +03:00
b83c5a15eb
- 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
14 lines
471 B
TypeScript
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(),
|
|
)
|
|
}
|