mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-02 05:12:16 +00:00
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:
@@ -12,7 +12,7 @@
|
|||||||
<b>{{object.start_date|date:"D jS N Y"}}</b>
|
<b>{{object.start_date|date:"D jS N Y"}}</b>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<keepInFrame>
|
<keepInFrame maxHeight="500" onOverflow="shrink">
|
||||||
{{ object.description|default_if_none:""|markdown:"rml" }}
|
{{ object.description|default_if_none:""|markdown:"rml" }}
|
||||||
</keepInFrame>
|
</keepInFrame>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from pypom import Region
|
from pypom import Region
|
||||||
from selenium.webdriver.common.by import By
|
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):
|
class Header(Region):
|
||||||
@@ -42,7 +42,7 @@ class ItemModal(Modal):
|
|||||||
|
|
||||||
form_items = {
|
form_items = {
|
||||||
'name': (TextBox, (By.ID, 'item_name')),
|
'name': (TextBox, (By.ID, 'item_name')),
|
||||||
'description': (TextBox, (By.ID, 'item_description')),
|
'description': (SimpleMDETextArea, (By.ID, 'item_description')),
|
||||||
'quantity': (TextBox, (By.ID, 'item_quantity')),
|
'quantity': (TextBox, (By.ID, 'item_quantity')),
|
||||||
'price': (TextBox, (By.ID, 'item_cost'))
|
'price': (TextBox, (By.ID, 'item_cost'))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -577,4 +577,4 @@ which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc.
|
|||||||
|
|
||||||
def test_linebreaks(self):
|
def test_linebreaks(self):
|
||||||
html = markdown_filter(self.markdown)
|
html = markdown_filter(self.markdown)
|
||||||
self.assertIn("Itemized lists<br />\nlook like", html)
|
self.assertIn("Itemized lists<br/>\nlook like", html)
|
||||||
|
|||||||
Reference in New Issue
Block a user