179eb57f›create todo›browser adds todo via input + clickpassed1841 mshttp://api.todos.local/#textadded via the browser#addbrowsernavigate http://api.todos.local/
browserwait for todo "buy milk" appears in list
Script
(function () {
var items = Array.from(document.querySelectorAll('#todos li'))
.map(function (li) { return li.textContent || ''; });
return items.indexOf("buy milk") >= 0 ? items : null;
})()browserclick #text
browsertype added via the browser
Text
added via the browser
browserclick #add
browserwait for todo "added via the browser" appears in list
Script
(function () {
var items = Array.from(document.querySelectorAll('#todos li'))
.map(function (li) { return li.textContent || ''; });
return items.indexOf("added via the browser") >= 0 ? items : null;
})()"added via the browser"actual=["buy milk","added via the browser"]dbdb (1 row, 8 ms)
SELECT text, done FROM todos WHERE text = $1
| # | value |
|---|---|
| $1 | added via the browser |
| text | done |
|---|---|
| added via the browser | false |
length= 1actual=10.done= falseactual=false