Skip to content

Commit

Permalink
Add test to ensure cms plugin dropdown is available in ckeditor4
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Jan 16, 2025
1 parent 1e284d9 commit 0f5f967
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/test_ckeditor4.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_editor_loads(live_server, page, text_plugin, superuser, use_ckeditor4):

def handle_console_message(msg):
if msg.type == "error":
console_errors.append(msg.text)
console_errors.append(f"{msg.text}: {msg.location} - {msg.args}")

page.on("console", handle_console_message)

Expand All @@ -33,6 +33,9 @@ def handle_console_message(msg):
editor = page.locator(".cke.cke_reset")
expect(editor).to_be_visible() # Editor

cms_plugins_dropdown = page.locator("span.cke_button_label.cke_button__cmsplugins_label")
expect(cms_plugins_dropdown).to_be_visible() # CMS Plugins dropdown

expect(page.locator(".cke_top.cke_reset_all")).to_be_visible() # its menu bar
expect(page.locator(".cke_button.cke_button__bold")).to_be_visible() # a button in the menu bar

Expand Down

0 comments on commit 0f5f967

Please sign in to comment.