Tests passing!

Fixed not using region for item modal, and overflow error on paperwork with really long description. Looks junk but I'm not really bothered
This commit is contained in:
2021-12-22 14:59:02 +00:00
parent a9c7bcec33
commit 936afe9d7d
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
<b>{{object.start_date|date:"D jS N Y"}}</b>
</para>
<keepInFrame>
<keepInFrame maxHeight="500" onOverflow="shrink">
{{ object.description|default_if_none:""|markdown:"rml" }}
</keepInFrame>
</td>

View File

@@ -1,7 +1,7 @@
from pypom import Region
from selenium.webdriver.common.by import By
from PyRIGS.tests.regions import TextBox, Modal
from PyRIGS.tests.regions import TextBox, Modal, SimpleMDETextArea
class Header(Region):
@@ -42,7 +42,7 @@ class ItemModal(Modal):
form_items = {
'name': (TextBox, (By.ID, 'item_name')),
'description': (TextBox, (By.ID, 'item_description')),
'description': (SimpleMDETextArea, (By.ID, 'item_description')),
'quantity': (TextBox, (By.ID, 'item_quantity')),
'price': (TextBox, (By.ID, 'item_cost'))
}

View File

@@ -577,4 +577,4 @@ which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc.
def test_linebreaks(self):
html = markdown_filter(self.markdown)
self.assertIn("Itemized lists<br />\nlook like", html)
self.assertIn("Itemized lists<br/>\nlook like", html)