Skip to content

Commit a60aade

Browse files
committed
Fix tests to use the JS api
1 parent 0f0c068 commit a60aade

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/lib/demo_web/live/fixtures_live/modal_rerender_title_fixture.html.heex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="modal-rerender">
2-
<.button type="button" phx-click={Prima.Modal.open("demo-modal")}>
2+
<.button type="button" phx-click={Prima.Modal.JS.open("demo-modal")}>
33
Open Modal
44
</.button>
55

@@ -15,7 +15,7 @@
1515
<.modal_panel id="demo-modal-panel">
1616
<div>
1717
<button
18-
phx-click={Prima.Modal.close()}
18+
phx-click={Prima.Modal.JS.close()}
1919
testing-ref="close-button"
2020
>
2121
Close
@@ -26,7 +26,7 @@
2626
<button id="update-title-inside" type="button" phx-click="update-modal-title">
2727
Update Title
2828
</button>
29-
<.button phx-click={Prima.Modal.close()} type="button">
29+
<.button phx-click={Prima.Modal.JS.close()} type="button">
3030
Got it
3131
</.button>
3232
</div>

0 commit comments

Comments
 (0)