Skip to content

Commit

Permalink
auto_id causes dialog form to have different locator
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Jun 13, 2023
1 parent e9800e5 commit 29db7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testapp/tests/test_e2e_richtextarea.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_tiptap_invalid_link(page, viewname, menubar, contenteditable):
expect(link_input).to_have_value("")
link_input.type("www.example.org")
dialog.click(position={'x': 1, 'y': 1})
placeholder = dialog.locator('#id_dialog_edit_link-url + .dj-field-errors .dj-placeholder')
placeholder = dialog.locator('#id_text_dialog_edit_link-url + .dj-field-errors .dj-placeholder')
expect(placeholder).to_have_text("Enter a valid URL.")
dialog.locator('button[name="save"]').click()
expect(dialog).to_be_visible()
Expand Down

0 comments on commit 29db7d5

Please sign in to comment.