mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 10:11:37 +03:00
cad50a5b63
- Fix https://github.com/enso-org/cloud-v2/issues/1482 - Fix "clear trash" not doing anything - Show "shared with" column as "root folder", but only owners (TODO: actually it should only show the first item in the permissions list) - Fix https://github.com/enso-org/cloud-v2/issues/1480 - Fix importing .enso-projects not doing anything - Could not repro crash. Also note that we do want to be able to upload files - Partly address https://github.com/enso-org/cloud-v2/issues/1479 - Remove "invite" and "share" buttons on top right - Hide "upgrade" button on top right if on Team or Enterprise plan - Warn when deleting folder (for now warns for all folders otherwise we may need to expand the folder to know whether it is empty) - Fix importing projects via upload button - Fix importing projects via drag - Hide cut on running projects - Partly address https://github.com/enso-org/cloud-v2/issues/1481 - Fix "edit secret" not showing dialog - Fix multiple selection context menu in Team space # Important Notes None
52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
/** @file Test copying, moving, cutting and pasting. */
|
|
import * as test from '@playwright/test'
|
|
|
|
import { mockAllAndLogin, TEXT } from './actions'
|
|
|
|
test.test('delete and restore', ({ page }) =>
|
|
mockAllAndLogin({ page })
|
|
.createFolder()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
})
|
|
.driveTable.rightClickRow(0)
|
|
.contextMenu.moveFolderToTrash()
|
|
.driveTable.expectPlaceholderRow()
|
|
.goToCategory.trash()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
})
|
|
.driveTable.rightClickRow(0)
|
|
.contextMenu.restoreFromTrash()
|
|
.driveTable.expectTrashPlaceholderRow()
|
|
.goToCategory.cloud()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
}),
|
|
)
|
|
|
|
test.test('delete and restore (keyboard)', ({ page }) =>
|
|
mockAllAndLogin({ page })
|
|
.createFolder()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
})
|
|
.driveTable.clickRow(0)
|
|
.press('Delete')
|
|
.do(async (thePage) => {
|
|
await thePage.getByRole('button', { name: TEXT.delete }).getByText(TEXT.delete).click()
|
|
})
|
|
.driveTable.expectPlaceholderRow()
|
|
.goToCategory.trash()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
})
|
|
.driveTable.clickRow(0)
|
|
.press('Mod+R')
|
|
.driveTable.expectTrashPlaceholderRow()
|
|
.goToCategory.cloud()
|
|
.driveTable.withRows(async (rows) => {
|
|
await test.expect(rows).toHaveCount(1)
|
|
}),
|
|
)
|