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
3a6a7d11
Commit
3a6a7d11
authored
Apr 09, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated remaining test
parent
4e4f1f3e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
72 additions
and
131 deletions
+72
-131
config.yml
.circleci/config.yml
+4
-4
noWorkerErrorFor.ts
apps/remix-ide-e2e/src/commands/noWorkerErrorFor.ts
+1
-1
publishContract.test.ts
apps/remix-ide-e2e/src/tests/publishContract.test.ts
+1
-4
recorder.spec.ts
apps/remix-ide-e2e/src/tests/recorder.spec.ts
+1
-3
remixd.test.ts
apps/remix-ide-e2e/src/tests/remixd.test.ts
+1
-3
runAndDeploy.ts
apps/remix-ide-e2e/src/tests/runAndDeploy.ts
+1
-3
signingMessage.test.ts
apps/remix-ide-e2e/src/tests/signingMessage.test.ts
+1
-3
solidityImport.spec.ts
apps/remix-ide-e2e/src/tests/solidityImport.spec.ts
+1
-3
solidityUnittests.spec.ts
apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
+30
-47
specialFunctions.test.ts
apps/remix-ide-e2e/src/tests/specialFunctions.test.ts
+1
-3
staticAnalysis.spec.ts
apps/remix-ide-e2e/src/tests/staticAnalysis.spec.ts
+1
-3
terminal.test.ts
apps/remix-ide-e2e/src/tests/terminal.test.ts
+18
-28
transactionExecution.spec.ts
apps/remix-ide-e2e/src/tests/transactionExecution.spec.ts
+1
-4
txListener.test.ts
apps/remix-ide-e2e/src/tests/txListener.test.ts
+1
-4
url.spec.ts
apps/remix-ide-e2e/src/tests/url.spec.ts
+1
-4
usingWebWorker.test.ts
apps/remix-ide-e2e/src/tests/usingWebWorker.test.ts
+1
-4
verticalIconsPanel.spec.ts
apps/remix-ide-e2e/src/tests/verticalIconsPanel.spec.ts
+1
-4
workspace.test.ts
apps/remix-ide-e2e/src/tests/workspace.test.ts
+0
-0
package.json
package.json
+6
-6
No files found.
.circleci/config.yml
View file @
3a6a7d11
...
@@ -62,7 +62,7 @@ jobs:
...
@@ -62,7 +62,7 @@ jobs:
-
COMMIT_AUTHOR
:
"
Circle
CI"
-
COMMIT_AUTHOR
:
"
Circle
CI"
working_directory
:
~/remix-project
working_directory
:
~/remix-project
parallelism
:
1
0
parallelism
:
1
5
steps
:
steps
:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
...
@@ -95,7 +95,7 @@ jobs:
...
@@ -95,7 +95,7 @@ jobs:
-
COMMIT_AUTHOR
:
"
Circle
CI"
-
COMMIT_AUTHOR
:
"
Circle
CI"
working_directory
:
~/remix-project
working_directory
:
~/remix-project
parallelism
:
1
0
parallelism
:
1
5
steps
:
steps
:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
...
@@ -128,7 +128,7 @@ jobs:
...
@@ -128,7 +128,7 @@ jobs:
-
COMMIT_AUTHOR
:
"
Circle
CI"
-
COMMIT_AUTHOR
:
"
Circle
CI"
working_directory
:
~/remix-project
working_directory
:
~/remix-project
parallelism
:
1
0
parallelism
:
1
5
steps
:
steps
:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
...
@@ -161,7 +161,7 @@ jobs:
...
@@ -161,7 +161,7 @@ jobs:
-
COMMIT_AUTHOR
:
"
Circle
CI"
-
COMMIT_AUTHOR
:
"
Circle
CI"
working_directory
:
~/remix-project
working_directory
:
~/remix-project
parallelism
:
1
0
parallelism
:
1
5
steps
:
steps
:
-
checkout
-
checkout
-
run
:
npm install
-
run
:
npm install
...
...
apps/remix-ide-e2e/src/commands/noWorkerErrorFor.ts
View file @
3a6a7d11
...
@@ -17,7 +17,7 @@ function noWorkerErrorFor (browser: NightwatchBrowser, version: string, callback
...
@@ -17,7 +17,7 @@ function noWorkerErrorFor (browser: NightwatchBrowser, version: string, callback
browser
browser
.
setSolidityCompilerVersion
(
version
)
.
setSolidityCompilerVersion
(
version
)
.
click
(
'*[data-id="compilerContainerCompileBtn"]'
)
.
click
(
'*[data-id="compilerContainerCompileBtn"]'
)
.
waitForElementPresent
(
'*[data-id="compilationFinishedWith_'
+
version
+
'"]'
,
1
0000
)
.
waitForElementPresent
(
'*[data-id="compilationFinishedWith_'
+
version
+
'"]'
,
6
0000
)
.
notContainsText
(
'*[data-id="compiledErrors"]'
,
'worker error:undefined'
)
.
notContainsText
(
'*[data-id="compiledErrors"]'
,
'worker error:undefined'
)
.
notContainsText
(
'*[data-id="compiledErrors"]'
,
'Uncaught RangeError: Maximum call stack size exceeded'
)
.
notContainsText
(
'*[data-id="compiledErrors"]'
,
'Uncaught RangeError: Maximum call stack size exceeded'
)
.
notContainsText
(
'*[data-id="compiledErrors"]'
,
'RangeError: Maximum call stack size exceeded'
)
.
notContainsText
(
'*[data-id="compiledErrors"]'
,
'RangeError: Maximum call stack size exceeded'
)
...
...
apps/remix-ide-e2e/src/tests/publishContract.test.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import
sauce
from
'./sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -68,7 +67,5 @@ module.exports = {
...
@@ -68,7 +67,5 @@ module.exports = {
.
waitForElementPresent
(
'*[data-id="contractDropdownIpfsCheckbox"]'
)
.
waitForElementPresent
(
'*[data-id="contractDropdownIpfsCheckbox"]'
)
.
verify
.
elementPresent
(
'*[data-id="contractDropdownIpfsCheckbox"]:checked'
)
.
verify
.
elementPresent
(
'*[data-id="contractDropdownIpfsCheckbox"]:checked'
)
.
end
()
.
end
()
},
}
tearDown
:
sauce
}
}
apps/remix-ide-e2e/src/tests/recorder.spec.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import
sauce
from
'./sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -87,8 +86,7 @@ module.exports = {
...
@@ -87,8 +86,7 @@ module.exports = {
'decoded input'
:
{
'uint256 _po'
:
{
type
:
'BigNumber'
,
hex
:
'0x0a'
}
}
'decoded input'
:
{
'uint256 _po'
:
{
type
:
'BigNumber'
,
hex
:
'0x0a'
}
}
})
})
.
end
()
.
end
()
},
}
tearDown
:
sauce
}
}
const
sources
=
[{
const
sources
=
[{
...
...
apps/remix-ide-e2e/src/tests/remixd.test.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import
sauce
from
'./sauce'
const
assetsTestContract
=
`import "./contract.sol";
const
assetsTestContract
=
`import "./contract.sol";
contract Assets {
contract Assets {
...
@@ -85,8 +84,7 @@ module.exports = {
...
@@ -85,8 +84,7 @@ module.exports = {
.
clickLaunchIcon
(
'pluginManager'
)
.
clickLaunchIcon
(
'pluginManager'
)
.
scrollAndClick
(
'#pluginManager article[id="remixPluginManagerListItem_remixd"] button'
)
.
scrollAndClick
(
'#pluginManager article[id="remixPluginManagerListItem_remixd"] button'
)
.
end
()
.
end
()
},
}
tearDown
:
sauce
}
}
function
runTests
(
browser
:
NightwatchBrowser
)
{
function
runTests
(
browser
:
NightwatchBrowser
)
{
...
...
apps/remix-ide-e2e/src/tests/runAndDeploy.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import
sauce
from
'./sauce'
const
passphrase
=
process
.
env
.
account_passphrase
const
passphrase
=
process
.
env
.
account_passphrase
const
password
=
process
.
env
.
account_password
const
password
=
process
.
env
.
account_password
...
@@ -197,8 +196,7 @@ module.exports = {
...
@@ -197,8 +196,7 @@ module.exports = {
.
pause
(
2000
)
.
pause
(
2000
)
.
journalLastChildIncludes
(
'[ "0x76a3ABb5a12dcd603B52Ed22195dED17ee82708f" ]'
)
.
journalLastChildIncludes
(
'[ "0x76a3ABb5a12dcd603B52Ed22195dED17ee82708f" ]'
)
.
end
()
.
end
()
},
}
tearDown
:
sauce
}
}
const
sources
=
[
const
sources
=
[
...
...
apps/remix-ide-e2e/src/tests/signingMessage.test.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import
sauce
from
'./sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -51,8 +50,7 @@ module.exports = {
...
@@ -51,8 +50,7 @@ module.exports = {
})
})
})
})
.
end
()
.
end
()
},
}
tearDown
:
sauce
}
}
const
sources
=
[
const
sources
=
[
...
...
apps/remix-ide-e2e/src/tests/solidityImport.spec.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import
sauce
from
'./sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -88,8 +87,7 @@ module.exports = {
...
@@ -88,8 +87,7 @@ module.exports = {
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
verifyContracts
([
'test13'
,
'ERC20'
],
{
wait
:
30000
})
.
verifyContracts
([
'test13'
,
'ERC20'
],
{
wait
:
30000
})
.
end
()
.
end
()
},
}
tearDown
:
sauce
}
}
const
sources
=
[
const
sources
=
[
...
...
apps/remix-ide-e2e/src/tests/solidityUnittests
→
apps/remix-ide-e2e/src/tests/solidityUnittests
.spec.ts
View file @
3a6a7d11
This diff is collapsed.
Click to expand it.
apps/remix-ide-e2e/src/tests/specialFunctions
→
apps/remix-ide-e2e/src/tests/specialFunctions
.test.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import sauce from './sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -220,8 +219,7 @@ module.exports = {
...
@@ -220,8 +219,7 @@ module.exports = {
})
})
})
})
.
end
()
.
end
()
},
}
tearDown: sauce
}
}
const
sources
=
[
const
sources
=
[
...
...
apps/remix-ide-e2e/src/tests/staticAnalysis
→
apps/remix-ide-e2e/src/tests/staticAnalysis
.spec.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import sauce from './sauce'
const
sources
=
[
const
sources
=
[
{
{
...
@@ -31,8 +30,7 @@ module.exports = {
...
@@ -31,8 +30,7 @@ module.exports = {
},
},
'Static Analysis'
:
function
(
browser
:
NightwatchBrowser
)
{
'Static Analysis'
:
function
(
browser
:
NightwatchBrowser
)
{
runTests
(
browser
)
runTests
(
browser
)
},
}
tearDown: sauce
}
}
function
runTests
(
browser
:
NightwatchBrowser
)
{
function
runTests
(
browser
:
NightwatchBrowser
)
{
...
...
apps/remix-ide-e2e/src/tests/terminal
→
apps/remix-ide-e2e/src/tests/terminal
.test.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import sauce from './sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -12,7 +11,7 @@ module.exports = {
...
@@ -12,7 +11,7 @@ module.exports = {
browser
browser
.
waitForElementVisible
(
'*[data-id="terminalCli"]'
,
10000
)
.
waitForElementVisible
(
'*[data-id="terminalCli"]'
,
10000
)
.
executeScript
(
'console.log(1 + 1)'
)
.
executeScript
(
'console.log(1 + 1)'
)
.
journalLastChild('2'
)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'2'
,
60000
)
},
},
'Should clear console'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should clear console'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -20,7 +19,7 @@ module.exports = {
...
@@ -20,7 +19,7 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="terminalCli"]'
)
.
waitForElementVisible
(
'*[data-id="terminalCli"]'
)
.
journalChildIncludes
(
'Welcome to Remix'
)
.
journalChildIncludes
(
'Welcome to Remix'
)
.
click
(
'#clearConsole'
)
.
click
(
'#clearConsole'
)
.
assert.containsText('*[data-id="terminalJournal"]', ''
)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
''
,
60000
)
},
},
'Should display auto-complete menu'
:
function
(
browser
:
NightwatchBrowser
)
{
'Should display auto-complete menu'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -35,11 +34,11 @@ module.exports = {
...
@@ -35,11 +34,11 @@ module.exports = {
browser
browser
.
waitForElementVisible
(
'*[data-id="terminalCli"]'
)
.
waitForElementVisible
(
'*[data-id="terminalCli"]'
)
.
executeScript
(
'remix.help()'
)
.
executeScript
(
'remix.help()'
)
.
journalChildIncludes('remix.loadgist(id)'
)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'remix.loadgist(id)'
,
60000
)
.
journalChildIncludes('remix.loadurl(url)'
)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'remix.loadurl(url)'
,
60000
)
.
journalChildIncludes('remix.execute(filepath)'
)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'remix.execute(filepath)'
,
60000
)
.
journalChildIncludes('remix.exeCurrent()'
)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'remix.exeCurrent()'
,
60000
)
.
journalChildIncludes('remix.help()'
)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'remix.help()'
,
60000
)
},
},
'Async/Await Script'
:
function
(
browser
:
NightwatchBrowser
)
{
'Async/Await Script'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -47,9 +46,8 @@ module.exports = {
...
@@ -47,9 +46,8 @@ module.exports = {
.
addFile
(
'asyncAwait.js'
,
{
content
:
asyncAwait
})
.
addFile
(
'asyncAwait.js'
,
{
content
:
asyncAwait
})
.
openFile
(
'asyncAwait.js'
)
.
openFile
(
'asyncAwait.js'
)
.
executeScript
(
'remix.execute(
\'
asyncAwait.js
\'
)'
)
.
executeScript
(
'remix.execute(
\'
asyncAwait.js
\'
)'
)
.journalLastChild('Waiting Promise')
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'Waiting Promise'
,
60000
)
.pause(5500)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'result - Promise Resolved'
,
60000
)
.journalLastChild('result - Promise Resolved')
},
},
'Call Remix File Manager from a script'
:
function
(
browser
:
NightwatchBrowser
)
{
'Call Remix File Manager from a script'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -58,15 +56,13 @@ module.exports = {
...
@@ -58,15 +56,13 @@ module.exports = {
.
openFile
(
'asyncAwaitWithFileManagerAccess.js'
)
.
openFile
(
'asyncAwaitWithFileManagerAccess.js'
)
.
pause
(
5000
)
.
pause
(
5000
)
.
executeScript
(
'remix.execute(
\'
asyncAwaitWithFileManagerAccess.js
\'
)'
)
.
executeScript
(
'remix.execute(
\'
asyncAwaitWithFileManagerAccess.js
\'
)'
)
.pause(6000)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'contract Ballot {'
,
60000
)
.journalLastChildIncludes('contract Ballot {')
},
},
'Call web3.eth.getAccounts() using JavaScript VM'
:
function
(
browser
:
NightwatchBrowser
)
{
'Call web3.eth.getAccounts() using JavaScript VM'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
browser
.
executeScript
(
'web3.eth.getAccounts()'
)
.
executeScript
(
'web3.eth.getAccounts()'
)
.pause(2000)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'[ "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2", "0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db", "0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB", "0x617F2E2fD72FD9D5503197092aC168c91465E7f2", "0x17F6AD8Ef982297579C203069C1DbfFE4348c372", "0x5c6B0f7Bf3E7ce046039Bd8FABdfD3f9F5021678", "0x03C6FcED478cBbC9a4FAB34eF9f40767739D1Ff7", "0x1aE0EA34a72D944a8C7603FfB3eC30a6669E454C", "0x0A098Eda01Ce92ff4A4CCb7A4fFFb5A43EBC70DC", "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c", "0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C", "0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB", "0x583031D1113aD414F02576BD6afaBfb302140225", "0xdD870fA1b7C4700F2BD7f44238821C26f7392148" ]'
,
60000
)
.journalLastChildIncludes('[ "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2", "0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db", "0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB", "0x617F2E2fD72FD9D5503197092aC168c91465E7f2", "0x17F6AD8Ef982297579C203069C1DbfFE4348c372", "0x5c6B0f7Bf3E7ce046039Bd8FABdfD3f9F5021678", "0x03C6FcED478cBbC9a4FAB34eF9f40767739D1Ff7", "0x1aE0EA34a72D944a8C7603FfB3eC30a6669E454C", "0x0A098Eda01Ce92ff4A4CCb7A4fFFb5A43EBC70DC", "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c", "0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C", "0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB", "0x583031D1113aD414F02576BD6afaBfb302140225", "0xdD870fA1b7C4700F2BD7f44238821C26f7392148" ]')
},
},
'Call web3.eth.getAccounts() using Web3 Provider'
:
function
(
browser
:
NightwatchBrowser
)
{
'Call web3.eth.getAccounts() using Web3 Provider'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -76,10 +72,9 @@ module.exports = {
...
@@ -76,10 +72,9 @@ module.exports = {
.
click
(
'*[data-id="settingsWeb3Mode"]'
)
.
click
(
'*[data-id="settingsWeb3Mode"]'
)
.
modalFooterOKClick
()
.
modalFooterOKClick
()
.
executeScript
(
'web3.eth.getAccounts()'
)
.
executeScript
(
'web3.eth.getAccounts()'
)
.pause(2000)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'[ "'
,
60000
)
// we check if an array is present, don't need to check for the content
.journalLastChildIncludes('[ "') // we check if an array is present, don't need to check for the content
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'" ]'
,
60000
)
.journalLastChildIncludes('" ]')
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'", "'
,
60000
)
.journalLastChildIncludes('", "')
},
},
'Call Remix File Resolver (external URL) from a script'
:
function
(
browser
:
NightwatchBrowser
)
{
'Call Remix File Resolver (external URL) from a script'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -89,8 +84,7 @@ module.exports = {
...
@@ -89,8 +84,7 @@ module.exports = {
.
openFile
(
'resolveExternalUrlAndSave.js'
)
.
openFile
(
'resolveExternalUrlAndSave.js'
)
.
pause
(
1000
)
.
pause
(
1000
)
.
executeScript
(
'remix.execute(
\'
resolveExternalUrlAndSave.js
\'
)'
)
.
executeScript
(
'remix.execute(
\'
resolveExternalUrlAndSave.js
\'
)'
)
.pause(6000)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'Implementation of the {IERC20} interface.'
,
60000
)
.journalLastChildIncludes('Implementation of the {IERC20} interface.')
.
openFile
(
'.deps/github/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol'
)
.
openFile
(
'.deps/github/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol'
)
},
},
...
@@ -101,8 +95,7 @@ module.exports = {
...
@@ -101,8 +95,7 @@ module.exports = {
.
openFile
(
'resolveUrl.js'
)
.
openFile
(
'resolveUrl.js'
)
.
pause
(
1000
)
.
pause
(
1000
)
.
executeScript
(
'remix.execute(
\'
resolveUrl.js
\'
)'
)
.
executeScript
(
'remix.execute(
\'
resolveUrl.js
\'
)'
)
.pause(6000)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'contract Ballot {'
,
60000
)
.journalLastChildIncludes('contract Ballot {')
},
},
'Call Remix File Resolver (internal URL) from a script and specify a path'
:
function
(
browser
:
NightwatchBrowser
)
{
'Call Remix File Resolver (internal URL) from a script and specify a path'
:
function
(
browser
:
NightwatchBrowser
)
{
...
@@ -112,13 +105,10 @@ module.exports = {
...
@@ -112,13 +105,10 @@ module.exports = {
.
openFile
(
'resolveExternalUrlAndSaveToaPath.js'
)
.
openFile
(
'resolveExternalUrlAndSaveToaPath.js'
)
.
pause
(
1000
)
.
pause
(
1000
)
.
executeScript
(
'remix.execute(
\'
resolveExternalUrlAndSaveToaPath.js
\'
)'
)
.
executeScript
(
'remix.execute(
\'
resolveExternalUrlAndSaveToaPath.js
\'
)'
)
.pause(6000)
.
waitForElementContainsText
(
'*[data-id="terminalJournal"]'
,
'abstract contract ERC20Burnable'
,
60000
)
.journalLastChildIncludes('abstract contract ERC20Burnable')
.
openFile
(
'.deps/github/newFile.sol'
)
.
openFile
(
'.deps/github/newFile.sol'
)
.
end
()
.
end
()
},
}
tearDown: sauce
}
}
const
asyncAwait
=
`
const
asyncAwait
=
`
...
...
apps/remix-ide-e2e/src/tests/transactionExecution
→
apps/remix-ide-e2e/src/tests/transactionExecution
.spec.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import sauce from './sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -139,9 +138,7 @@ module.exports = {
...
@@ -139,9 +138,7 @@ module.exports = {
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
click
(
'#runTabView button[class^="instanceButton"]'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
waitForElementPresent
(
'.instance:nth-of-type(2)'
)
.
end
()
.
end
()
},
}
tearDown: sauce
}
}
// @TODO test: bytes8[3][] type as input
// @TODO test: bytes8[3][] type as input
...
...
apps/remix-ide-e2e/src/tests/txListener.test.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import
sauce
from
'./sauce'
import
examples
from
'../examples/example-contracts'
import
examples
from
'../examples/example-contracts'
const
sources
=
[
const
sources
=
[
...
@@ -45,7 +44,5 @@ module.exports = {
...
@@ -45,7 +44,5 @@ module.exports = {
'decoded input'
:
{
'address to'
:
'0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB'
}
'decoded input'
:
{
'address to'
:
'0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB'
}
})
})
.
end
()
.
end
()
},
}
tearDown
:
sauce
}
}
apps/remix-ide-e2e/src/tests/url
→
apps/remix-ide-e2e/src/tests/url
.spec.ts
View file @
3a6a7d11
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import sauce from './sauce'
import
examples
from
'../examples/example-contracts'
import
examples
from
'../examples/example-contracts'
const
sources
=
[
const
sources
=
[
...
@@ -51,7 +50,5 @@ module.exports = {
...
@@ -51,7 +50,5 @@ module.exports = {
.
click
(
'[for="optimize"'
)
.
click
(
'[for="optimize"'
)
.
verify
.
attributeEquals
(
'#runs'
,
'value'
,
'200'
)
.
verify
.
attributeEquals
(
'#runs'
,
'value'
,
'200'
)
.
end
()
.
end
()
},
}
tearDown: sauce
}
}
apps/remix-ide-e2e/src/tests/usingWebWorker
→
apps/remix-ide-e2e/src/tests/usingWebWorker
.test.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import sauce from './sauce'
const
sources
=
[
const
sources
=
[
{
{
...
@@ -49,7 +48,5 @@ module.exports = {
...
@@ -49,7 +48,5 @@ module.exports = {
elem
.
checked
=
false
elem
.
checked
=
false
})
})
.
end
()
.
end
()
},
}
tearDown: sauce
}
}
apps/remix-ide-e2e/src/tests/verticalIconsPanel
→
apps/remix-ide-e2e/src/tests/verticalIconsPanel
.spec.ts
View file @
3a6a7d11
'use strict'
'use strict'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
init
from
'../helpers/init'
import
init
from
'../helpers/init'
import sauce from './sauce'
module
.
exports
=
{
module
.
exports
=
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
before
:
function
(
browser
:
NightwatchBrowser
,
done
:
VoidFunction
)
{
...
@@ -29,7 +28,5 @@ module.exports = {
...
@@ -29,7 +28,5 @@ module.exports = {
.
click
(
'*[data-id="verticalIconsKindpluginManager"]'
)
.
click
(
'*[data-id="verticalIconsKindpluginManager"]'
)
.
scrollInto
(
'*[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
scrollInto
(
'*[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
waitForElementVisible
(
'*[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
waitForElementVisible
(
'*[data-id="pluginManagerComponentActivateButtondebugger"]'
)
},
}
tearDown: sauce
}
}
apps/remix-ide-e2e/src/tests/workspace
→
apps/remix-ide-e2e/src/tests/workspace
.test.ts
View file @
3a6a7d11
File moved
package.json
View file @
3a6a7d11
...
@@ -62,14 +62,14 @@
...
@@ -62,14 +62,14 @@
"nightwatch_local_libraryDeployment"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/libraryDeployment.test.js --env=chrome"
,
"nightwatch_local_libraryDeployment"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/libraryDeployment.test.js --env=chrome"
,
"nightwatch_local_solidityImport"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/solidityImport.spec.js --env=chrome"
,
"nightwatch_local_solidityImport"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/solidityImport.spec.js --env=chrome"
,
"nightwatch_local_recorder"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/recorder.spec.js --env=chrome"
,
"nightwatch_local_recorder"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/recorder.spec.js --env=chrome"
,
"nightwatch_local_transactionExecution"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/transactionExecution.
test
.js --env=chrome"
,
"nightwatch_local_transactionExecution"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/transactionExecution.
spec
.js --env=chrome"
,
"nightwatch_local_staticAnalysis"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/staticAnalysis.
test
.js --env=chrome"
,
"nightwatch_local_staticAnalysis"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/staticAnalysis.
spec
.js --env=chrome"
,
"nightwatch_local_signingMessage"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/signingMessage.test.js --env=chrome"
,
"nightwatch_local_signingMessage"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/signingMessage.test.js --env=chrome"
,
"nightwatch_local_specialFunctions"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/specialFunctions.test.js --env=chrome"
,
"nightwatch_local_specialFunctions"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/specialFunctions.test.js --env=chrome"
,
"nightwatch_local_solidityUnitTests"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/solidityUnittests.
test
.js --env=chrome"
,
"nightwatch_local_solidityUnitTests"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/solidityUnittests.
spec
.js --env=chrome"
,
"nightwatch_local_remixd"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/remixd.test.js --env=chrome"
,
"nightwatch_local_remixd"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/remixd.test.js --env=chrome"
,
"nightwatch_local_terminal"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/terminal.test.js --env=chrome"
,
"nightwatch_local_terminal"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/terminal.test.js --env=chrome"
,
"nightwatch_local_gist"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/gist.spec.js --env=
firefox
"
,
"nightwatch_local_gist"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/gist.spec.js --env=
chrome
"
,
"nightwatch_local_workspace"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/workspace.test.js --env=chrome"
,
"nightwatch_local_workspace"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/workspace.test.js --env=chrome"
,
"nightwatch_local_defaultLayout"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/defaultLayout.test.js --env=chrome"
,
"nightwatch_local_defaultLayout"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/defaultLayout.test.js --env=chrome"
,
"nightwatch_local_pluginManager"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/pluginManager.spec.js --env=chrome"
,
"nightwatch_local_pluginManager"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/pluginManager.spec.js --env=chrome"
,
...
@@ -82,8 +82,8 @@
...
@@ -82,8 +82,8 @@
"nightwatch_local_txListener"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/txListener.test.js --env=chrome"
,
"nightwatch_local_txListener"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/txListener.test.js --env=chrome"
,
"nightwatch_local_fileManager"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/fileManager_api.spec.js --env=chrome"
,
"nightwatch_local_fileManager"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/fileManager_api.spec.js --env=chrome"
,
"nightwatch_local_runAndDeploy"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/runAndDeploy.js --env=chrome-runAndDeploy"
,
"nightwatch_local_runAndDeploy"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/runAndDeploy.js --env=chrome-runAndDeploy"
,
"nightwatch_local_url"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/url.
test
.js --env=chrome"
,
"nightwatch_local_url"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/url.
spec
.js --env=chrome"
,
"nightwatch_local_verticalIconscontextmenu"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/verticalIconsPanel.
test
.js --env=chrome"
,
"nightwatch_local_verticalIconscontextmenu"
:
"npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js dist/apps/remix-ide-e2e/src/tests/verticalIconsPanel.
spec
.js --env=chrome"
,
"onchange"
:
"onchange apps/remix-ide/build/app.js -- npm-run-all lint"
,
"onchange"
:
"onchange apps/remix-ide/build/app.js -- npm-run-all lint"
,
"remixd"
:
"nx build remixd && nx serve remixd --folder=./apps/remix-ide/contracts --remixide=http://127.0.0.1:8080"
,
"remixd"
:
"nx build remixd && nx serve remixd --folder=./apps/remix-ide/contracts --remixide=http://127.0.0.1:8080"
,
"selenium"
:
"selenium-standalone start"
,
"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