Show newest queue log lines first

This commit is contained in:
Dymas
2026-05-17 21:29:21 +02:00
parent d0af0258f2
commit 9e918a50ab
6 changed files with 12 additions and 4 deletions
+3
View File
@@ -1444,6 +1444,9 @@ class TemplateHelperTests(unittest.TestCase):
self.assertIn("queueRequestId", APP.INDEX_HTML)
self.assertIn("if (requestId !== state.queueRequestId) return data;", APP.INDEX_HTML)
def test_search_page_renders_queue_logs_newest_first(self):
self.assertIn('[...(job.log || [])].slice(-28).reverse().join("\\n")', APP.INDEX_HTML)
def test_pages_share_browser_api_helper(self):
self.assertIn("async function api(path, options = {})", APP.INDEX_HTML)
self.assertIn("async function api(path, options = {})", APP.CONFIG_HTML)