Add checked to new tests

pull/3094/head
ninabreznik 7 years ago committed by yann300
parent 43e7db7d05
commit 91ac54cb7b
  1. 3
      src/app/tabs/test-tab.js

@ -97,9 +97,10 @@ module.exports = class TestTab {
self._events.filePanel.register('newTestFileCreated', file => { self._events.filePanel.register('newTestFileCreated', file => {
var testList = document.querySelector(`[class^='testList']`) var testList = document.querySelector(`[class^='testList']`)
var test = yo`<label><input onchange =${(e) => toggleCheckbox(e, file)} type="checkbox">${file} </label>` var test = yo`<label><input onchange =${(e) => toggleCheckbox(e, file)} type="checkbox" checked="true">${file} </label>`
testList.appendChild(test) testList.appendChild(test)
self.data.allTests.push(file) self.data.allTests.push(file)
self.data.selectedTests.push(file)
}) })
// self._events.filePanel.register('fileRenamed', (oldName, newName, isFolder) => { // self._events.filePanel.register('fileRenamed', (oldName, newName, isFolder) => {

Loading…
Cancel
Save