v1
8/27/2020 by trusktr -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
if (!window.initialized) {
	window.initialized = true

window.data = {
  name: 'Joe',
  age: 34,
}

const originalAppend = Element.prototype.append
Element.prototype.append = function append(...args) {
  originalAppend.apply(this, args)
  return this
}

window.renderWithString = function renderWithString(data) {
  document.body.insertAdjacentHTML('beforeend', `
    <div><span>name: ${data.name}</span> - <span>age: ${data.age}</span></div>
  `) 
}

window.renderWithAppend = function renderWithAppend(data) {
  document.body.append(
    document.createElement('div').append(
      document.createElement('span').append(
        'name: '+data.name
      ),
      ' - ',
      document.createElement('span').append(
        'age: '+data.name
      ),
    ),
  )
}
}
delete caserun single casemove downdrag and drop case


ready



window.renderWithString(window.data)
delete caserun single casemove updrag and drop case


ready



window.renderWithAppend(window.data)
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN