Polish composer image insertion and edit layout

This commit is contained in:
rucki
2026-09-11 15:06:20 +02:00
parent a0244cf352
commit 1cd2d06b4b
4 changed files with 12 additions and 3 deletions
+9
View File
@@ -147,6 +147,7 @@ class WorkspaceTenancyTests(TestCase):
self.assertContains(response, '/image')
self.assertContains(response, '/api/user-suggestions/')
self.assertContains(response, "fragment.startsWith('@')")
self.assertContains(response, "token==='![[")
def test_todo_can_be_assigned_to_workspace_member_with_mention(self):
owner = get_user_model().objects.create_user(username='assign-owner', password='secret')
@@ -402,6 +403,14 @@ class NavigationAndLayoutTests(TestCase):
self.assertLess(menu_position, toolbar_position)
self.assertLess(toolbar_position, file_position)
def test_inline_edit_comment_is_below_format_toolbar(self):
item = Item.objects.create(owner=self.user, content='Editable')
response = self.client.get(reverse('edit_item', args=[item.id]))
html = response.content.decode()
self.assertLess(html.index('name="content"'), html.index('format-toolbar'))
self.assertLess(html.index('format-toolbar'), html.index('name="comment"'))
def test_quick_create_is_disabled_while_inline_editor_is_open(self):
response = self.client.get(reverse('index'))
self.assertContains(response, ':disabled="editingItem"')