Skip to content

Commit 1231606

Browse files
bunsenstraatjoeizang
authored andcommitted
fix test
1 parent 1a03f89 commit 1231606

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

apps/remix-ide-e2e/src/tests/file_explorer_dragdrop.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ module.exports = {
5353
console.log((el as any).value.getId())
5454
const id = (el as any).value.getId()
5555
browser
56-
.waitForElementVisible('li[data-id="treeViewLitreeViewItemscripts"]')
56+
.waitForElementVisible('div[data-id="treeViewDivDraggableItemscripts"]')
5757
.dragAndDrop('div[data-id="treeViewDivDraggableItemscripts"]', id)
58-
.pause()
5958
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
60-
.pause()
6159
.execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() })
62-
.pause()
6360
.waitForElementVisible('li[data-id="treeViewLitreeViewItemcontracts/scripts"]')
6461
})
6562
}

libs/remix-ui/workspace/src/lib/components/file-explorer-hovericons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function FileHoverIcons(props: FileHoverIconsProps) {
1515

1616
return (
1717
<>
18-
{<div className="d-flex flex-row align-items-center" style={{ marginLeft: '6rem' }}>
18+
{<div className="d-flex flex-row align-items-center">
1919
{
2020
props.file.isDirectory ? (
2121
<>

libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => {
2323
const onDragOver = async (e: SyntheticEvent) => {
2424
e.preventDefault()
2525
const target = await getEventTarget(e)
26-
2726
if (!target || !target.path) {
2827
clearTimeout(timer)
2928
setFolderToOpen(null)
@@ -61,7 +60,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => {
6160
} else {
6261
dragDestination = getFlatTreeItem(target.path)
6362
}
64-
console.log(dragDestination)
6563
if (dragDestination.isDirectory) {
6664
if (dragSource.isDirectory) {
6765
moveFolder(dragDestination.path, dragSource.path)

0 commit comments

Comments
 (0)