mirror of
https://github.com/enso-org/enso.git
synced 2025-01-02 00:23:59 +03:00
497884aa62
- Close https://github.com/enso-org/cloud-v2/issues/1612 - Disable opening projects on cloud.enso.org. - This is because this functionality is currently not ready # Important Notes None
51 lines
1.8 KiB
TypeScript
51 lines
1.8 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()
|
|
// FIXME[sb]: https://github.com/enso-org/cloud-v2/issues/1615
|
|
// Uncomment once cloud execution in the browser is re-enabled.
|
|
// .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()
|
|
// FIXME[sb]: https://github.com/enso-org/cloud-v2/issues/1615
|
|
// Uncomment once cloud execution in the browser is re-enabled.
|
|
// .do(async () => {
|
|
// await test.expect(actions.locateEditor(page)).toBeAttached()
|
|
// })
|
|
// .goToPage.drive()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(2)
|
|
})
|
|
// FIXME[sb]: https://github.com/enso-org/cloud-v2/issues/1615
|
|
// Uncomment once cloud execution in the browser is re-enabled.
|
|
// // 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(1)).click()
|
|
// })
|
|
// Project context menu
|
|
.driveTable.rightClickRow(0)
|
|
.contextMenu.moveNonFolderToTrash()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
}),
|
|
)
|