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
42cd487b
Commit
42cd487b
authored
Apr 07, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed debugger test
parent
d1fc4739
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
addFile.ts
apps/remix-ide-e2e/src/commands/addFile.ts
+1
-1
clickInstance.ts
apps/remix-ide-e2e/src/commands/clickInstance.ts
+1
-1
debugger.spec.ts
apps/remix-ide-e2e/src/tests/debugger.spec.ts
+15
-15
package.json
package.json
+0
-0
No files found.
apps/remix-ide-e2e/src/commands/addFile.ts
View file @
42cd487b
...
...
@@ -18,7 +18,7 @@ function addFile (browser: NightwatchBrowser, name: string, content: NightwatchC
.
clickLaunchIcon
(
'fileExplorers'
)
.
click
(
'li[data-id="treeViewLitreeViewItemREADME.txt"]'
)
// focus on root directory
.
click
(
'.newFile'
)
.
waitForElement
Visible
(
'*[data-id="treeViewLitreeViewItem/blank"]
'
,
60000
)
.
waitForElement
ContainsText
(
'*[data-id="treeViewLitreeViewItem/blank"]'
,
'
'
,
60000
)
.
sendKeys
(
'*[data-id="treeViewLitreeViewItem/blank"] .remixui_items'
,
name
)
.
sendKeys
(
'*[data-id="treeViewLitreeViewItem/blank"] .remixui_items'
,
browser
.
Keys
.
ENTER
)
.
pause
(
2000
)
...
...
apps/remix-ide-e2e/src/commands/clickInstance.ts
View file @
42cd487b
...
...
@@ -6,7 +6,7 @@ class ClickInstance extends EventEmitter {
index
=
index
+
2
const
selector
=
'.instance:nth-of-type('
+
index
+
') > div > button'
this
.
api
.
waitForElement
Present
(
selector
).
scrollAndClick
(
selector
).
perform
(()
=>
{
this
.
emit
(
'complete'
)
})
this
.
api
.
waitForElement
ContainsText
(
selector
,
''
,
60000
).
scrollAndClick
(
selector
).
perform
(()
=>
{
this
.
emit
(
'complete'
)
})
return
this
}
}
...
...
apps/remix-ide-e2e/src/tests/debugger.spec.ts
View file @
42cd487b
...
...
@@ -19,7 +19,7 @@ module.exports = {
.
waitForElementPresent
(
'*[title="Deploy - transact (not payable)"]'
,
65000
)
.
click
(
'*[title="Deploy - transact (not payable)"]'
)
.
debugTransaction
(
0
)
.
assert
.
containsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEBUGGER'
)
.
waitForElementContainsText
(
'*[data-id="sidePanelSwapitTitle"]'
,
'DEBUGGER'
,
60000
)
},
'Should debug failing transaction'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -33,8 +33,8 @@ module.exports = {
.
debugTransaction
(
1
)
.
pause
(
2000
)
.
scrollAndClick
(
'*[data-id="solidityLocals"]'
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'toast'
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'999'
)
.
waitForElementContainsText
(
'*[data-id="solidityLocals"]'
,
'toast'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="solidityLocals"]'
,
'999'
,
60000
)
},
'Should debug transaction using slider'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -45,8 +45,8 @@ module.exports = {
.
setValue
(
'*[data-id="slider"]'
,
new
Array
(
1
).
fill
(
browser
.
Keys
.
RIGHT_ARROW
))
.
pause
(
2000
)
.
click
(
'*[data-id="dropdownPanelSolidityLocals"]'
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'no locals'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n51'
)
.
waitForElementContainsText
(
'*[data-id="solidityLocals"]'
,
'no locals'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n51'
,
60000
)
},
'Should step back and forward transaction'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -54,12 +54,12 @@ module.exports = {
.
waitForElementPresent
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
scrollAndClick
(
'*[data-id="buttonNavigatorIntoBack"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n50'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n50'
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n50'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n50'
,
60000
)
.
click
(
'*[data-id="buttonNavigatorIntoForward"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n51'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n51'
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n51'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n51'
,
60000
)
},
'Should jump through breakpoints'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -69,12 +69,12 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="buttonNavigatorJumpPreviousBreakpoint"]'
)
.
click
(
'*[data-id="buttonNavigatorJumpPreviousBreakpoint"]'
)
.
pause
(
2000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n0'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n0'
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n0'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n0'
,
60000
)
.
click
(
'*[data-id="buttonNavigatorJumpNextBreakpoint"]'
)
.
pause
(
10000
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n348'
)
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n348'
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n348'
,
60000
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'execution step:
\
n348'
,
60000
)
},
'Should display solidity imported code while debugging github import'
:
function
(
browser
:
NightwatchBrowser
)
{
...
...
@@ -159,7 +159,7 @@ module.exports = {
.
waitForElementPresent
(
'*[data-id="treeViewDivtreeViewItemarray"]'
)
.
click
(
'*[data-id="treeViewDivtreeViewItemarray"]'
)
.
waitForElementPresent
(
'*[data-id="treeViewDivtreeViewLoadMore"]'
)
.
assert
.
containsText
(
'*[data-id="solidityLocals"]'
,
'9: 9 uint256'
)
.
waitForElementContainsText
(
'*[data-id="solidityLocals"]'
,
'9: 9 uint256'
,
60000
)
.
notContainsText
(
'*[data-id="solidityLocals"]'
,
'10: 10 uint256'
)
},
...
...
@@ -207,7 +207,7 @@ module.exports = {
=> There is something going wrong with the nightwatch API here.
As we are only testing if debugger is active, this is ok to keep that for now.
*/
.
assert
.
containsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n154'
)
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n154'
,
60000
)
.
end
()
},
...
...
package.json
View file @
42cd487b
This diff is collapsed.
Click to expand it.
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