mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 13:02:07 +03:00
24 lines
599 B
TypeScript
24 lines
599 B
TypeScript
/** @file Test the user menu. */
|
|
import * as test from '@playwright/test'
|
|
|
|
import * as actions from './actions'
|
|
|
|
test.test('user menu', ({ page }) =>
|
|
actions
|
|
.mockAllAndLogin({ page })
|
|
.openUserMenu()
|
|
.do(async (thePage) => {
|
|
await test.expect(actions.locateUserMenu(thePage)).toBeVisible()
|
|
}),
|
|
)
|
|
|
|
test.test('download app', ({ page }) =>
|
|
actions
|
|
.mockAllAndLogin({ page })
|
|
.openUserMenu()
|
|
.userMenu.downloadApp(async (download) => {
|
|
await download.cancel()
|
|
test.expect(download.url()).toMatch(/^https:[/][/]objects.githubusercontent.com/)
|
|
}),
|
|
)
|