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
b83bd26c
Commit
b83bd26c
authored
Mar 01, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix e2e
parent
fe0bb2e6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
removeFile.ts
apps/remix-ide-e2e/src/commands/removeFile.ts
+5
-5
fileExplorer.test.ts
apps/remix-ide-e2e/src/tests/fileExplorer.test.ts
+2
-1
remixd.test.ts
apps/remix-ide-e2e/src/tests/remixd.test.ts
+1
-1
solidityUnittests.test.ts
apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts
+1
-1
index.d.ts
apps/remix-ide-e2e/src/types/index.d.ts
+1
-1
No files found.
apps/remix-ide-e2e/src/commands/removeFile.ts
View file @
b83bd26c
...
...
@@ -3,9 +3,9 @@ import { NightwatchBrowser } from 'nightwatch'
const
EventEmitter
=
require
(
'events'
)
class
RemoveFile
extends
EventEmitter
{
command
(
this
:
NightwatchBrowser
,
path
:
string
):
NightwatchBrowser
{
command
(
this
:
NightwatchBrowser
,
path
:
string
,
workspace
:
string
):
NightwatchBrowser
{
this
.
api
.
perform
((
done
)
=>
{
removeFile
(
this
.
api
,
path
,
()
=>
{
removeFile
(
this
.
api
,
path
,
workspace
,
()
=>
{
done
()
this
.
emit
(
'complete'
)
})
...
...
@@ -14,7 +14,7 @@ class RemoveFile extends EventEmitter {
}
}
function
removeFile
(
browser
:
NightwatchBrowser
,
path
:
string
,
done
:
VoidFunction
)
{
function
removeFile
(
browser
:
NightwatchBrowser
,
path
:
string
,
workspace
:
string
,
done
:
VoidFunction
)
{
browser
.
execute
(
function
(
path
)
{
function
contextMenuClick
(
element
)
{
const
evt
=
element
.
ownerDocument
.
createEvent
(
'MouseEvents'
)
...
...
@@ -39,8 +39,8 @@ function removeFile (browser: NightwatchBrowser, path: string, done: VoidFunctio
.
pause
(
2000
)
.
perform
(()
=>
{
console
.
log
(
path
,
'to remove'
)
browser
.
waitForElementVisible
(
'*[data-id="
default_workspace
ModalDialogContainer-react"] .modal-ok'
)
.
click
(
'*[data-id="
default_workspace
ModalDialogContainer-react"] .modal-ok'
)
browser
.
waitForElementVisible
(
'*[data-id="
'
+
workspace
+
'
ModalDialogContainer-react"] .modal-ok'
)
.
click
(
'*[data-id="
'
+
workspace
+
'
ModalDialogContainer-react"] .modal-ok'
)
.
waitForElementNotPresent
(
'[data-path="'
+
path
+
'"]'
)
done
()
})
...
...
apps/remix-ide-e2e/src/tests/fileExplorer.test.ts
View file @
b83bd26c
...
...
@@ -43,7 +43,8 @@ module.exports = {
.
rightClick
(
'[data-path="5_Renamed_Contract.sol"]'
)
.
click
(
'*[id="menuitemdelete"]'
)
.
waitForElementVisible
(
'*[data-id="default_workspaceModalDialogContainer-react"]'
)
.
click
(
'*[data-id="default_workspace-modal-footer-ok-react"]'
)
.
waitForElementVisible
(
'*[data-id="default_workspaceModalDialogContainer-react"]'
)
.
click
(
'*[data-id="default_workspaceModalDialogContainer-react"] .modal-ok'
)
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItem5_Renamed_Contract.sol"'
)
},
...
...
apps/remix-ide-e2e/src/tests/remixd.test.ts
View file @
b83bd26c
...
...
@@ -125,7 +125,7 @@ function runTests (browser: NightwatchBrowser) {
.
pause
(
1000
)
.
renamePath
(
'folder1/contract_'
+
browserName
+
'.sol'
,
'renamed_contract_'
+
browserName
+
'.sol'
,
'folder1/renamed_contract_'
+
browserName
+
'.sol'
)
.
pause
(
1000
)
.
removeFile
(
'folder1/contract_'
+
browserName
+
'_toremove.sol'
)
.
removeFile
(
'folder1/contract_'
+
browserName
+
'_toremove.sol'
,
'localhost'
)
.
perform
(
function
(
done
)
{
testImportFromRemixd
(
browser
,
()
=>
{
done
()
})
})
...
...
apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts
View file @
b83bd26c
...
...
@@ -37,7 +37,7 @@ module.exports = {
.
clickLaunchIcon
(
'fileExplorers'
)
.
pause
(
10000
)
.
openFile
(
'tests/simple_storage_test.sol'
)
.
removeFile
(
'tests/simple_storage_test.sol'
)
.
removeFile
(
'tests/simple_storage_test.sol'
,
'default_workspace'
)
},
'Should run simple unit test `simple_storage_test.sol` '
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
apps/remix-ide-e2e/src/types/index.d.ts
View file @
b83bd26c
...
...
@@ -41,7 +41,7 @@ declare module "nightwatch" {
getInstalledPlugins
(
cb
:
(
plugins
:
string
[])
=>
void
):
NightwatchBrowser
,
verifyCallReturnValue
(
address
:
string
,
checks
:
string
[]):
NightwatchBrowser
,
testEditorValue
(
testvalue
:
string
):
NightwatchBrowser
,
removeFile
(
path
:
string
):
NightwatchBrowser
,
removeFile
(
path
:
string
,
workspace
:
string
):
NightwatchBrowser
,
switchBrowserWindow
(
url
:
string
,
windowName
:
string
,
cb
:
(
browser
:
NightwatchBrowser
,
window
?:
NightwatchCallbackResult
<
Window
>
)
=>
void
):
NightwatchBrowser
,
setupMetamask
(
passphrase
:
string
,
password
:
string
):
NightwatchBrowser
,
signMessage
(
msg
:
string
,
callback
:
(
hash
:
{
value
:
string
},
signature
:
{
value
:
string
})
=>
void
):
NightwatchBrowser
,
...
...
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