mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 17:41:32 +03:00
ebf4cd5c1f
- Remove unnecessary modules - Remove `ts-plugin-namespace-auto-import` as it was a workaround to use the non-conventional `import *` convention - Remove `esbuild-plugin-copy-directories` as it is unuse - Inline modules that are only ever used once - Inline `project-manager-shim` into `gui2` - it is only used during `gui2`'s dev mode - Inline `content-config` into `client` - Flatten `app/ide-desktop/lib/` to `app/ide-desktop/` - Flatten `app/ide-desktop/lib/dashboard/` to `app/dashboard/` # Important Notes - As mentioned above, all remaining modules have been moved up from `app/ide-desktop/lib/` to `app/ide-desktop/`. It's not ideal but I'd rather hold off on moving them anywhere else before we have a consensus on what should go where. - (That is to say, this may not be the final directory structure - but I figure it's fine to get *something* done so that hopefully the rest of the restructuring is simpler.)
45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
/** @file Test the drive view. */
|
|
import * as test from '@playwright/test'
|
|
|
|
import * as actions from './actions'
|
|
|
|
test.test('drive view', ({ page }) =>
|
|
actions
|
|
.mockAllAndLogin({ page })
|
|
.withDriveView(async view => {
|
|
await test.expect(view).toBeVisible()
|
|
})
|
|
.driveTable.expectPlaceholderRow()
|
|
.newEmptyProject()
|
|
.do(async () => {
|
|
await test.expect(actions.locateEditor(page)).toBeAttached()
|
|
})
|
|
.goToPage.drive()
|
|
.driveTable.withRows(async rows => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
})
|
|
.do(async () => {
|
|
await test.expect(actions.locateAssetsTable(page)).toBeVisible()
|
|
})
|
|
.newEmptyProject()
|
|
.do(async () => {
|
|
await test.expect(actions.locateEditor(page)).toBeAttached()
|
|
})
|
|
.goToPage.drive()
|
|
.driveTable.withRows(async rows => {
|
|
await test.expect(rows).toHaveCount(2)
|
|
})
|
|
// The last opened project needs to be stopped, to remove the toast notification notifying the
|
|
// user that project creation may take a while. Previously opened projects are stopped when the
|
|
// new project is created.
|
|
.driveTable.withRows(async rows => {
|
|
await actions.locateStopProjectButton(rows.nth(0)).click()
|
|
})
|
|
// Project context menu
|
|
.driveTable.rightClickRow(0)
|
|
.contextMenu.moveToTrash()
|
|
.driveTable.withRows(async rows => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
})
|
|
)
|