Release Web 2.0.2 task logs

This commit is contained in:
AttilaNet
2026-11-11 15:35:36 +08:00
parent 1fa49f8ddf
commit a25076490f
21 changed files with 1367 additions and 83 deletions
@@ -131,6 +131,9 @@ class BasePathBrowserTests(unittest.TestCase):
panel = page.locator(f'.page-panel[data-page="{key}"]:not([hidden])')
expect(panel.locator('.page-loading[data-loading="false"]')).to_have_count(1)
self.assertEqual(panel.locator(".page-error:not([hidden])").count(), 0)
if key in "login ranch daily hatching mainline gifts commissions exploration maps".split():
expect(panel.locator(f'.task-log-panel[data-task-log="{key}"]')).to_have_count(1)
expect(panel.locator('.task-log-lines')).to_have_attribute('aria-live', 'off')
# The server redirects an authenticated login URL back to this workbench.
page.goto(base + "/login", wait_until="networkidle")
@@ -149,6 +152,7 @@ class BasePathBrowserTests(unittest.TestCase):
self.assertEqual(escapes, [], "Browser requests escaped the configured prefix or local server")
self.assertEqual(errors, [], "JavaScript or CSP errors")
self.assertTrue(any(request.url == base + "/static/paths.js" for request in requests))
self.assertTrue(any(request.url == base + "/static/task-logs.js" for request in requests))
def test_preserved_prefix(self):
self.check_deployment("/ranch")