|
|
@ -17,9 +17,9 @@ export default test({
|
|
|
|
return { tasks, selected: tasks[0] };
|
|
|
|
return { tasks, selected: tasks[0] };
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
html: `
|
|
|
|
ssrHtml: `
|
|
|
|
<select>
|
|
|
|
<select>
|
|
|
|
<option value='[object Object]'>put your left leg in</option>
|
|
|
|
<option selected="" value='[object Object]'>put your left leg in</option>
|
|
|
|
<option value='[object Object]'>your left leg out</option>
|
|
|
|
<option value='[object Object]'>your left leg out</option>
|
|
|
|
<option value='[object Object]'>in, out, in, out</option>
|
|
|
|
<option value='[object Object]'>in, out, in, out</option>
|
|
|
|
<option value='[object Object]'>shake it all about</option>
|
|
|
|
<option value='[object Object]'>shake it all about</option>
|
|
|
@ -36,7 +36,28 @@ export default test({
|
|
|
|
<p>shake it all about</p>
|
|
|
|
<p>shake it all about</p>
|
|
|
|
`,
|
|
|
|
`,
|
|
|
|
|
|
|
|
|
|
|
|
async test({ assert, component, target, window }) {
|
|
|
|
async test({ assert, component, target, window, variant }) {
|
|
|
|
|
|
|
|
assert.htmlEqual(
|
|
|
|
|
|
|
|
target.innerHTML,
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
<select>
|
|
|
|
|
|
|
|
<option ${variant === 'hydrate' ? 'selected="" ' : ''}value='[object Object]'>put your left leg in</option>
|
|
|
|
|
|
|
|
<option value='[object Object]'>your left leg out</option>
|
|
|
|
|
|
|
|
<option value='[object Object]'>in, out, in, out</option>
|
|
|
|
|
|
|
|
<option value='[object Object]'>shake it all about</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type='checkbox'> put your left leg in
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Pending tasks</h2>
|
|
|
|
|
|
|
|
<p>put your left leg in</p>
|
|
|
|
|
|
|
|
<p>your left leg out</p>
|
|
|
|
|
|
|
|
<p>in, out, in, out</p>
|
|
|
|
|
|
|
|
<p>shake it all about</p>
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
);
|
|
|
|
const input = target.querySelector('input');
|
|
|
|
const input = target.querySelector('input');
|
|
|
|
const select = target.querySelector('select');
|
|
|
|
const select = target.querySelector('select');
|
|
|
|
const options = target.querySelectorAll('option');
|
|
|
|
const options = target.querySelectorAll('option');
|
|
|
@ -57,7 +78,7 @@ export default test({
|
|
|
|
target.innerHTML,
|
|
|
|
target.innerHTML,
|
|
|
|
`
|
|
|
|
`
|
|
|
|
<select>
|
|
|
|
<select>
|
|
|
|
<option value='[object Object]'>put your left leg in</option>
|
|
|
|
<option ${variant === 'hydrate' ? 'selected="" ' : ''}value='[object Object]'>put your left leg in</option>
|
|
|
|
<option value='[object Object]'>your left leg out</option>
|
|
|
|
<option value='[object Object]'>your left leg out</option>
|
|
|
|
<option value='[object Object]'>in, out, in, out</option>
|
|
|
|
<option value='[object Object]'>in, out, in, out</option>
|
|
|
|
<option value='[object Object]'>shake it all about</option>
|
|
|
|
<option value='[object Object]'>shake it all about</option>
|
|
|
@ -94,7 +115,7 @@ export default test({
|
|
|
|
target.innerHTML,
|
|
|
|
target.innerHTML,
|
|
|
|
`
|
|
|
|
`
|
|
|
|
<select>
|
|
|
|
<select>
|
|
|
|
<option value='[object Object]'>put your left leg in</option>
|
|
|
|
<option ${variant === 'hydrate' ? 'selected="" ' : ''}value='[object Object]'>put your left leg in</option>
|
|
|
|
<option value='[object Object]'>your left leg out</option>
|
|
|
|
<option value='[object Object]'>your left leg out</option>
|
|
|
|
<option value='[object Object]'>in, out, in, out</option>
|
|
|
|
<option value='[object Object]'>in, out, in, out</option>
|
|
|
|
<option value='[object Object]'>shake it all about</option>
|
|
|
|
<option value='[object Object]'>shake it all about</option>
|
|
|
|