@@ -83,7 +83,7 @@ def test_json_editor_prose(page, live_server):
8383 expect (editor_container ).to_be_visible ()
8484
8585 # Check for the text field using the exact ID from the HTML
86- text_input = page .locator ('input[id="root [text]"]' )
86+ text_input = page .locator ('input[id*=" [text]"]' )
8787 expect (text_input ).to_be_visible ()
8888 expect (text_input ).to_have_value ("Hello World" )
8989
@@ -118,7 +118,7 @@ def test_json_editor_edit_save(page, live_server):
118118 page .wait_for_timeout (1000 ) # Wait for editor to initialize
119119
120120 # Edit the regular text field
121- text_input = page .locator ('input[id="root [text]"]' )
121+ text_input = page .locator ('input[id*=" [text]"]' )
122122 expect (text_input ).to_be_visible ()
123123 text_input .fill ("Updated text" )
124124
@@ -140,7 +140,7 @@ def test_json_editor_edit_save(page, live_server):
140140 page .wait_for_timeout (1000 )
141141
142142 # Verify text field was updated
143- text_input = page .locator ('input[id="root [text]"]' )
143+ text_input = page .locator ('input[id*=" [text]"]' )
144144 expect (text_input ).to_have_value ("Updated text" )
145145
146146 # Verify prose field was updated
@@ -173,7 +173,7 @@ def test_json_editor_display(page, live_server):
173173 page .wait_for_timeout (1000 )
174174
175175 # Verify that text field displays our test data
176- text_input = page .locator ('input[id="root [text]"]' )
176+ text_input = page .locator ('input[id*=" [text]"]' )
177177 expect (text_input ).to_be_visible ()
178178 expect (text_input ).to_have_value ("Test text field" )
179179
@@ -205,7 +205,7 @@ def test_json_editor_ui_elements(page, live_server):
205205 expect (page .locator (".prose-menubar__button[title='underline']" )).to_be_visible ()
206206
207207 # Verify the text editor field is present
208- text_input = page .locator ('input[id="root [text]"]' )
208+ text_input = page .locator ('input[id*=" [text]"]' )
209209 expect (text_input ).to_be_visible ()
210210
211211 # Focus on the prose editor
0 commit comments