Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
f5668b52
Commit
f5668b52
authored
Sep 29, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed solidity unit test
parent
a992221f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
solidityUnittests.spec.ts
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
+6
-5
events.ts
libs/remix-ui/workspace/src/lib/actions/events.ts
+17
-17
No files found.
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
View file @
f5668b52
...
...
@@ -32,9 +32,10 @@ module.exports = {
.
click
(
'*[data-id="verticalIconsKindsolidityUnitTesting"]'
)
.
waitForElementPresent
(
'*[data-id="testTabGenerateTestFile"]'
)
.
click
(
'*[data-id="testTabGenerateTestFile"]'
)
.
waitForElementPresent
(
'*[title="tests/simple_storage_test.sol"]'
)
.
waitForElementPresent
(
'*[title="
default_workspace/
tests/simple_storage_test.sol"]'
)
.
clickLaunchIcon
(
'filePanel'
)
.
pause
(
10000
)
.
waitForElementPresent
(
'[data-id="treeViewDivtreeViewItemtests"]'
)
.
click
(
'[data-id="treeViewDivtreeViewItemtests"]'
)
.
openFile
(
'tests/simple_storage_test.sol'
)
.
removeFile
(
'tests/simple_storage_test.sol'
,
'default_workspace'
)
},
...
...
@@ -164,9 +165,9 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)
// eslint-disable-next-line dot-notation
.
execute
(
function
()
{
document
.
querySelector
(
'*[data-id="modalDialogCustomPromptTextCreate"]'
)[
'value'
]
=
'workspace_new'
})
.
pause
(
5000
)
.
waitForElementPresent
(
'*[data-id="workspacesModalDialog
ModalDialogModalFooter-react"] .modal-ok'
)
.
click
(
'*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok'
)
.
waitForElementVisible
(
'[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok'
)
.
click
(
'[data-id="fileSystem
ModalDialogModalFooter-react"] .modal-ok'
)
.
pause
(
2000
)
.
click
(
'*[data-id="workspacesSelect"] option[value="workspace_new"]'
)
// end of creating
.
clickLaunchIcon
(
'solidityUnitTesting'
)
...
...
libs/remix-ui/workspace/src/lib/actions/events.ts
View file @
f5668b52
...
...
@@ -11,31 +11,31 @@ export const listenOnPluginEvents = (filePanelPlugin) => {
plugin
=
filePanelPlugin
plugin
.
on
(
'filePanel'
,
'createWorkspace'
,
(
name
:
string
)
=>
{
createWorkspace
(
name
)
setTimeout
(()
=>
createWorkspace
(
name
),
10
)
})
plugin
.
on
(
'filePanel'
,
'renameWorkspace'
,
(
oldName
:
string
,
workspaceName
:
string
)
=>
{
renameWorkspace
(
oldName
,
workspaceName
)
setTimeout
(()
=>
renameWorkspace
(
oldName
,
workspaceName
),
10
)
})
plugin
.
on
(
'filePanel'
,
'registerContextMenuItem'
,
(
item
:
action
)
=>
{
registerContextMenuItem
(
item
)
setTimeout
(()
=>
registerContextMenuItem
(
item
),
10
)
})
plugin
.
on
(
'filePanel'
,
'removePluginActions'
,
(
plugin
)
=>
{
removePluginActions
(
plugin
)
setTimeout
(()
=>
removePluginActions
(
plugin
),
10
)
})
plugin
.
on
(
'filePanel'
,
'displayNewFileInput'
,
(
path
)
=>
{
addInputField
(
'file'
,
path
)
setTimeout
(()
=>
addInputField
(
'file'
,
path
),
10
)
})
plugin
.
on
(
'filePanel'
,
'uploadFileEvent'
,
(
dir
:
string
,
target
)
=>
{
uploadFile
(
target
,
dir
)
setTimeout
(()
=>
uploadFile
(
target
,
dir
),
10
)
})
plugin
.
on
(
'remixd'
,
'rootFolderChanged'
,
async
(
path
:
string
)
=>
{
setTimeout
(()
=>
rootFolderChanged
(
path
),
0
)
setTimeout
(()
=>
rootFolderChanged
(
path
),
1
0
)
})
}
...
...
@@ -43,20 +43,20 @@ export const listenOnProviderEvents = (provider) => async (reducerDispatch: Reac
dispatch
=
reducerDispatch
provider
.
event
.
on
(
'fileAdded'
,
(
filePath
:
string
)
=>
{
setTimeout
(()
=>
fileAdded
(
filePath
),
0
)
setTimeout
(()
=>
fileAdded
(
filePath
),
1
0
)
})
provider
.
event
.
on
(
'folderAdded'
,
(
folderPath
:
string
)
=>
{
if
(
folderPath
.
indexOf
(
'/.workspaces'
)
===
0
)
return
setTimeout
(()
=>
folderAdded
(
folderPath
),
0
)
setTimeout
(()
=>
folderAdded
(
folderPath
),
1
0
)
})
provider
.
event
.
on
(
'fileRemoved'
,
(
removePath
:
string
)
=>
{
setTimeout
(()
=>
fileRemoved
(
removePath
),
0
)
setTimeout
(()
=>
fileRemoved
(
removePath
),
1
0
)
})
provider
.
event
.
on
(
'fileRenamed'
,
(
oldPath
:
string
)
=>
{
setTimeout
(()
=>
fileRenamed
(
oldPath
),
0
)
setTimeout
(()
=>
fileRenamed
(
oldPath
),
1
0
)
})
provider
.
event
.
on
(
'disconnected'
,
()
=>
{
...
...
@@ -67,7 +67,7 @@ export const listenOnProviderEvents = (provider) => async (reducerDispatch: Reac
const
workspaceProvider
=
plugin
.
fileProviders
.
workspace
await
switchToWorkspace
(
workspaceProvider
.
workspace
)
},
0
)
},
1
0
)
})
provider
.
event
.
on
(
'connected'
,
async
()
=>
{
...
...
@@ -76,14 +76,14 @@ export const listenOnProviderEvents = (provider) => async (reducerDispatch: Reac
dispatch
(
setMode
(
'localhost'
))
fetchWorkspaceDirectory
(
'/'
)
dispatch
(
loadLocalhostSuccess
())
},
0
)
},
1
0
)
})
provider
.
event
.
on
(
'loadingLocalhost'
,
async
()
=>
{
setTimeout
(
async
()
=>
{
await
switchToWorkspace
(
LOCALHOST
)
dispatch
(
loadLocalhostRequest
())
},
0
)
},
1
0
)
})
provider
.
event
.
on
(
'fileExternallyChanged'
,
async
(
path
:
string
,
file
:
{
content
:
string
})
=>
{
...
...
@@ -102,15 +102,15 @@ export const listenOnProviderEvents = (provider) => async (reducerDispatch: Reac
}
))
}
},
0
)
},
1
0
)
})
provider
.
event
.
on
(
'fileRenamedError'
,
async
()
=>
{
setTimeout
(()
=>
dispatch
(
displayNotification
(
'File Renamed Failed'
,
''
,
'Ok'
,
'Cancel'
)),
0
)
setTimeout
(()
=>
dispatch
(
displayNotification
(
'File Renamed Failed'
,
''
,
'Ok'
,
'Cancel'
)),
1
0
)
})
provider
.
event
.
on
(
'readOnlyModeChanged'
,
(
mode
:
boolean
)
=>
{
setTimeout
(()
=>
dispatch
(
setReadOnlyMode
(
mode
)),
0
)
setTimeout
(()
=>
dispatch
(
setReadOnlyMode
(
mode
)),
1
0
)
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment