Skip to content
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

Merged
merged 17 commits into from
Jul 2, 2020
Merged

adding custom path to Unit Testing #2906

merged 17 commits into from
Jul 2, 2020

Conversation

LianaHus
Copy link
Collaborator

No description provided.

@LianaHus LianaHus added the WIP label Jun 15, 2020
@@ -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')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo getElemenstById

@@ -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>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence should end with a : not a .
Or maybe this will be more clear:
Click on "Generate" to generate a sample test file in this folder:
Or put a label and use this sentence:
Choose a folder & click "Generate" for a sample test file.
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

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>`))
Copy link
Collaborator Author

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

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) => {
Copy link
Collaborator

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..

@yann300 yann300 merged commit a255bc8 into master Jul 2, 2020
@yann300 yann300 deleted the utworkshop branch July 2, 2020 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants