diff options
Diffstat (limited to 'tests/fixtures')
| -rw-r--r-- | tests/fixtures/todo-app/index.html | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/fixtures/todo-app/index.html b/tests/fixtures/todo-app/index.html index 55996f3..25ccde7 100644 --- a/tests/fixtures/todo-app/index.html +++ b/tests/fixtures/todo-app/index.html @@ -11,9 +11,7 @@ --cssx-on-submit: prevent-default() add-children(task-list, - instance(li#task-item, map( - --text: "Hello world", - )) + instance(li#task-item, map(--text: attr(text-input, 'value'))) ) ; @@ -28,13 +26,14 @@ --cssx-text: "Submit"; } - #task-list { } - [data-instance="task-item"] { --text: default text; --checked: 0; - --cssx-text: var(--text); + --cssx-on-mount: set-attr('data-testid', attr(id)); + } + [data-instance="task-item"]::after { + content: var(--text); } </style> </head> |
