mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 14:51:33 +03:00
22 lines
702 B
TypeScript
22 lines
702 B
TypeScript
|
/** @file Test the user menu. */
|
||
|
import * as test from '@playwright/test'
|
||
|
|
||
|
import * as actions from './actions'
|
||
|
|
||
|
test.test.beforeEach(actions.mockAllAndLogin)
|
||
|
|
||
|
test.test('user menu', async ({ page }) => {
|
||
|
// User menu
|
||
|
await actions.locateUserMenuButton(page).click()
|
||
|
await test.expect(actions.locateUserMenu(page)).toBeVisible()
|
||
|
})
|
||
|
|
||
|
test.test('download app', async ({ page }) => {
|
||
|
await actions.locateUserMenuButton(page).click()
|
||
|
const downloadPromise = page.waitForEvent('download')
|
||
|
await actions.locateDownloadAppButton(page).click()
|
||
|
const download = await downloadPromise
|
||
|
await download.cancel()
|
||
|
test.expect(download.url()).toMatch(/^https:[/][/]objects.githubusercontent.com/)
|
||
|
})
|