-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding custom path to Unit Testing #2906
Conversation
src/app/tabs/test-tab.js
Outdated
@@ -281,7 +281,7 @@ module.exports = class TestTab extends ViewPlugin { | |||
const stopBtnLabel = document.getElementById('runTestsTabStopActionLabel') | |||
stopBtnLabel.innerText = 'Stop' | |||
if (this.data.selectedTests.length !== 0) { | |||
const runBtn = document.getElementById('runTestsTabRunAction') | |||
const runBtn = document.getElemenstById('runTestsTabRunAction') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo getElemenstById
d92986d
to
10798de
Compare
src/app/tabs/test-tab.js
Outdated
@@ -495,7 +523,8 @@ module.exports = class TestTab extends ViewPlugin { | |||
<div class="${css.testTabView} px-2" id="testView"> | |||
<div class="${css.infoBox}"> | |||
<p class="text-lg"> Test your smart contract in Solidity.</p> | |||
<p> Click on "Generate" to generate a sample test file.</p> | |||
<p> Click on "Generate" to generate a sample test file in.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks :)
src/app/tabs/test-tab.js
Outdated
updateDirList (e) { | ||
if (e.keyCode === 191) { | ||
this.testTabLogic.dirList(this._view.el.getElementsByClassName('custom-select')[0].value).then((options) => { | ||
options.forEach((path) => this.uiPathList.appendChild(yo`<option>${path}</option>`)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to clear the list first
src/app/tabs/test-tab.js
Outdated
updateDirList (e) { | ||
if (e.keyCode === 191) { | ||
for (var o of this.uiPathList.querySelectorAll('option')) o.remove() | ||
this.testTabLogic.dirList(this._view.el.getElementsByClassName('custom-select')[0].value).then((options) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should not fetch element from class name, doesn't look like robust..
No description provided.