pull/4446/head
bunsenstraat 9 months ago committed by Joseph Izang
parent 1a03f899e9
commit 1231606444
  1. 5
      apps/remix-ide-e2e/src/tests/file_explorer_dragdrop.test.ts
  2. 2
      libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx
  3. 2
      libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx

@ -53,13 +53,10 @@ module.exports = {
console.log((el as any).value.getId())
const id = (el as any).value.getId()
browser
.waitForElementVisible('li[data-id="treeViewLitreeViewItemscripts"]')
.waitForElementVisible('div[data-id="treeViewDivDraggableItemscripts"]')
.dragAndDrop('div[data-id="treeViewDivDraggableItemscripts"]', id)
.pause()
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
.pause()
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() })
.pause()
.waitForElementVisible('li[data-id="treeViewLitreeViewItemcontracts/scripts"]')
})
}

@ -15,7 +15,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
return (
<>
{<div className="d-flex flex-row align-items-center" style={{ marginLeft: '6rem' }}>
{<div className="d-flex flex-row align-items-center">
{
props.file.isDirectory ? (
<>

@ -23,7 +23,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => {
const onDragOver = async (e: SyntheticEvent) => {
e.preventDefault()
const target = await getEventTarget(e)
if (!target || !target.path) {
clearTimeout(timer)
setFolderToOpen(null)
@ -61,7 +60,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => {
} else {
dragDestination = getFlatTreeItem(target.path)
}
console.log(dragDestination)
if (dragDestination.isDirectory) {
if (dragSource.isDirectory) {
moveFolder(dragDestination.path, dragSource.path)

Loading…
Cancel
Save