Skip to content

Commit 85a9e3f

Browse files
committed
Attempt to fix tests
1 parent 6e5e462 commit 85a9e3f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

tests/test_app/tests/js/button-from-js-module.js

-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import { h, render } from "https://unpkg.com/preact?module";
2-
import htm from "https://unpkg.com/htm?module";
3-
4-
const html = htm.bind(h);
52

63
export function bind(node, config) {
74
return {
@@ -16,9 +13,6 @@ export function SimpleButton(props) {
1613
"button",
1714
{
1815
id: props.id,
19-
onClick(event) {
20-
props.onClick({ data: props.eventResponseData });
21-
},
2216
},
2317
"simple button",
2418
);

tests/test_app/tests/test_components.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def test_component_session_exists(self):
218218
@navigate_to_page("/")
219219
def test_component_session_missing(self):
220220
"""No session should exist for components that don't have args/kwargs."""
221-
component = self.page.locator("#button-from-js-module")
221+
component = self.page.locator("#use-scope")
222222
component.wait_for()
223223
parent = component.locator("..")
224224
session_id = parent.get_attribute("id")

0 commit comments

Comments
 (0)