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
30fbf382
Commit
30fbf382
authored
Aug 10, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change e2e tests commands in package.json
parent
f87dc9ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
33 deletions
+33
-33
switchBrowserTab.ts
apps/remix-ide-e2e/src/commands/switchBrowserTab.ts
+2
-2
verifyContracts.ts
apps/remix-ide-e2e/src/commands/verifyContracts.ts
+3
-3
package.json
package.json
+28
-28
No files found.
apps/remix-ide-e2e/src/commands/switchBrowserTab.ts
View file @
30fbf382
import
{
NightwatchBrowser
}
from
"nightwatch"
import
{
NightwatchBrowser
,
NightwatchAPI
}
from
"nightwatch"
import
EventEmitter
from
"events"
/*
...
...
@@ -7,7 +7,7 @@ import EventEmitter from "events"
class
SwitchBrowserTab
extends
EventEmitter
{
command
(
this
:
NightwatchBrowser
,
index
:
number
):
NightwatchBrowser
{
this
.
api
.
perform
((
browser
:
Nightwatch
Browser
,
done
)
=>
{
this
.
api
.
perform
((
browser
:
Nightwatch
API
,
done
)
=>
{
browser
.
windowHandles
((
result
)
=>
{
browser
.
switchWindow
(
result
.
value
[
index
])
done
()
...
...
apps/remix-ide-e2e/src/commands/verifyContracts.ts
View file @
30fbf382
import
{
NightwatchBrowser
,
Nightwatch
VerifyContractOpts
,
Nightwatch
CallbackResult
}
from
'nightwatch'
import
{
NightwatchBrowser
,
NightwatchCallbackResult
}
from
'nightwatch'
import
EventEmitter
from
"events"
class
VerifyContracts
extends
EventEmitter
{
...
...
@@ -13,7 +13,7 @@ class VerifyContracts extends EventEmitter {
}
}
function
getCompiledContracts
(
browser
:
NightwatchBrowser
,
opts
:
NightwatchVerifyContractOpts
,
callback
:
(
result
:
NightwatchCallbackResult
<
any
>
)
=>
void
)
{
function
getCompiledContracts
(
browser
:
NightwatchBrowser
,
opts
:
{
wait
:
number
,
version
?:
string
}
,
callback
:
(
result
:
NightwatchCallbackResult
<
any
>
)
=>
void
)
{
browser
.
clickLaunchIcon
(
'solidity'
)
.
pause
(
opts
.
wait
)
...
...
@@ -48,7 +48,7 @@ function getCompiledContracts (browser: NightwatchBrowser, opts: NightwatchVerif
})
}
function
verifyContracts
(
browser
:
NightwatchBrowser
,
compiledContractNames
:
string
[],
opts
:
NightwatchVerifyContractOpts
,
callback
:
VoidFunction
)
{
function
verifyContracts
(
browser
:
NightwatchBrowser
,
compiledContractNames
:
string
[],
opts
:
{
wait
:
number
,
version
?:
string
}
,
callback
:
VoidFunction
)
{
getCompiledContracts
(
browser
,
opts
,
(
result
:
NightwatchCallbackResult
<
any
>
)
=>
{
if
(
result
.
value
)
{
for
(
const
contract
in
compiledContractNames
)
{
...
...
package.json
View file @
30fbf382
...
...
@@ -53,34 +53,34 @@
"downloadsolc_root"
:
"wget --no-check-certificate https://solc-bin.ethereum.org/bin/soljson-v0.6.6+commit.6c089d02.js -O ./apps/remix-ide/soljson.js"
,
"make-mock-compiler"
:
"node apps/remix-ide/ci/makeMockCompiler.js"
,
"minify"
:
"uglifyjs --in-source-map inline --source-map-inline -c warnings=false"
,
"nightwatch_parallel"
:
"n
ightwatch -e chrome,firefox --config apps/remix-ide/nightwatch.js
"
,
"nightwatch_local_firefox"
:
"n
ightwatch --config apps/remix-ide/nightwatch.js --env
firefox"
,
"nightwatch_local_chrome"
:
"n
ightwatch --config apps/remix-ide/nightwatch.js --env
chrome"
,
"nightwatch_local_ballot"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/ballot.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_usingWorker"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/usingWebWorker.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_libraryDeployment"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/libraryDeployment.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_solidityImport"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/solidityImport.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_recorder"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/recorder.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_transactionExecution"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/transactionExecution.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_staticAnalysis"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/staticAnalysis.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_signingMessage"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/signingMessage.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_specialFunctions"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/specialFunctions.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_solidityUnitTests"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/solidityUnittests.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_remixd"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/remixd.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_terminal"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/terminal.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_gist"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/gist.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_workspace"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/workspace.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_defaultLayout"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/defaultLayout.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_pluginManager"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/pluginManager.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_publishContract"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/publishContract.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_generalSettings"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/generalSettings.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_fileExplorer"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/fileExplorer.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_debugger"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/debugger.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_editor"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/editor.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_compiler"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/compiler_api.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_txListener"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/txListener.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_fileManager"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/fileManager_api.test.js --config apps/remix-ide/nightwatch.js --env chrome
"
,
"nightwatch_local_runAndDeploy"
:
"n
ightwatch ./apps/remix-ide/test-browser/tests/runAndDeploy.js --config apps/remix-ide/nightwatch.js --env chrome-runAndDeploy
"
,
"nightwatch_parallel"
:
"n
x e2e remix-ide-e2e -env=chrome,firefox
"
,
"nightwatch_local_firefox"
:
"n
x e2e remix-ide-e2e --env=
firefox"
,
"nightwatch_local_chrome"
:
"n
x e2e remix-ide-e2e --env=
chrome"
,
"nightwatch_local_ballot"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/ballot.test.js --env=chrome
"
,
"nightwatch_local_usingWorker"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/usingWebWorker.test.js --env=chrome
"
,
"nightwatch_local_libraryDeployment"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/libraryDeployment.test.js --env=chrome
"
,
"nightwatch_local_solidityImport"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/solidityImport.test.js --env=chrome
"
,
"nightwatch_local_recorder"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/recorder.test.js --env=chrome
"
,
"nightwatch_local_transactionExecution"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/transactionExecution.test.js --env=chrome
"
,
"nightwatch_local_staticAnalysis"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/staticAnalysis.test.js --env=chrome
"
,
"nightwatch_local_signingMessage"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/signingMessage.test.js --env=chrome
"
,
"nightwatch_local_specialFunctions"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/specialFunctions.test.js --env=chrome
"
,
"nightwatch_local_solidityUnitTests"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/solidityUnittests.test.js --env=chrome
"
,
"nightwatch_local_remixd"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/remixd.test.js --env=chrome
"
,
"nightwatch_local_terminal"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/terminal.test.js --env=chrome
"
,
"nightwatch_local_gist"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/gist.test.js --env=chrome
"
,
"nightwatch_local_workspace"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/workspace.test.js --env=chrome
"
,
"nightwatch_local_defaultLayout"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/defaultLayout.test.js --env=chrome
"
,
"nightwatch_local_pluginManager"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/pluginManager.test.js --env=chrome
"
,
"nightwatch_local_publishContract"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/publishContract.test.js --env=chrome
"
,
"nightwatch_local_generalSettings"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/generalSettings.test.js --env=chrome
"
,
"nightwatch_local_fileExplorer"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/fileExplorer.test.js --env=chrome
"
,
"nightwatch_local_debugger"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/debugger.test.js --env=chrome
"
,
"nightwatch_local_editor"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/editor.test.js --env=chrome
"
,
"nightwatch_local_compiler"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/compiler_api.test.js --env=chrome
"
,
"nightwatch_local_txListener"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/txListener.test.js --env=chrome
"
,
"nightwatch_local_fileManager"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/fileManager_api.test.js --env=chrome
"
,
"nightwatch_local_runAndDeploy"
:
"n
x e2e remix-ide-e2e --filePath=dist/apps/remix-ide-e2e/src/tests/runAndDeploy.js --env=chrome-runAndDeploy
"
,
"onchange"
:
"onchange apps/remix-ide/build/app.js -- npm-run-all lint"
,
"remixd"
:
"remixd -s ./apps/remix-ide/contracts --remix-ide http://127.0.0.1:8080"
,
"selenium"
:
"selenium-standalone start"
,
...
...
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