mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 03:21:44 +03:00
736134e491
Fixes #11604 Most issues were caused by a problem with Project List flooding the network with its requests - this was fixed on develop. But one assertion was flaky - it assumed we will see the "real" run result on `write` node, but sometimes it is immediately overwritten by dry run. But the most important part of this PR is adding traces to Electron packages - it's should be much easier now to debug E2E test failures. Also renamed the previously misnamed "E2E tests" to "[GUI] integration tests".
20 lines
600 B
TypeScript
20 lines
600 B
TypeScript
/** @file Test the user menu. */
|
|
import { expect, test } from '@playwright/test'
|
|
|
|
import { mockAllAndLogin, TEXT } from './actions'
|
|
|
|
test('user menu', ({ page }) =>
|
|
mockAllAndLogin({ page })
|
|
.openUserMenu()
|
|
.do(async (thePage) => {
|
|
await expect(thePage.getByLabel(TEXT.userMenuLabel).locator('visible=true')).toBeVisible()
|
|
}))
|
|
|
|
test('download app', ({ page }) =>
|
|
mockAllAndLogin({ page })
|
|
.openUserMenu()
|
|
.userMenu.downloadApp(async (download) => {
|
|
await download.cancel()
|
|
expect(download.url()).toMatch(/^https:[/][/]objects.githubusercontent.com/)
|
|
}))
|