Skip to content

Commit a6466b8

Browse files
committed
Update the test to also check the data-type attribute
1 parent eb9c555 commit a6466b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testapp/test_prose_editor_e2e.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def test_prose_editor_ordered_list_attributes(page, live_server):
252252
# Verify the list has been updated with the new attributes
253253
updated_ol = editor.locator("ol")
254254
expect(updated_ol).to_have_attribute("type", "A")
255+
expect(updated_ol).to_have_attribute("data-type", "upper-alpha")
255256
expect(updated_ol).to_have_attribute("start", "5")
256257

257258
# Save the form
@@ -265,6 +266,7 @@ def test_prose_editor_ordered_list_attributes(page, live_server):
265266
# Verify the saved content has the ordered list with the attributes we set
266267
assert "<ol" in html_content
267268
assert 'type="A"' in html_content
269+
assert 'data-type="upper-alpha"' in html_content
268270
assert 'start="5"' in html_content
269271
assert "<li>" in html_content
270272
assert "First item" in html_content

0 commit comments

Comments
 (0)