diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-13 17:33:26 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-13 17:33:26 +0530 |
| commit | 2c2bf0136a92b7ca49e7df952a44d9000a07fa8b (patch) | |
| tree | 49115a10d023f9e4e66f7a4eee08f4e3ec8cf0d2 /tests/fixtures | |
| parent | e4d70a54e97551f974a04379817e8baf152fa8d3 (diff) | |
| download | css-everything-2c2bf0136a92b7ca49e7df952a44d9000a07fa8b.tar.gz css-everything-2c2bf0136a92b7ca49e7df952a44d9000a07fa8b.zip | |
feat: test case for todo-app with adding new items
Diffstat (limited to '')
| -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> |
