feat: refine web analytics and history views
This commit is contained in:
@@ -204,8 +204,8 @@ class StaticLoginContractTests(unittest.TestCase):
|
||||
self.assertIn('candidate === "/h5" ? "/h5" : "/"', login_js)
|
||||
self.assertIn('id="logout-button"', desktop_html)
|
||||
self.assertIn('id="h5-logout"', mobile_html)
|
||||
self.assertIn('id="logout-button" type="button" disabled hidden', desktop_html)
|
||||
self.assertIn('id="h5-logout" type="button" disabled hidden', mobile_html)
|
||||
self.assertIn('<a class="logout-link" id="logout-button" href="#logout" hidden>', desktop_html)
|
||||
self.assertIn('<a class="mobile-logout" id="h5-logout" href="#logout" hidden>', mobile_html)
|
||||
self.assertIn("if (!session.username) return", desktop_js)
|
||||
self.assertIn("if (session.username)", mobile_js)
|
||||
self.assertIn("response.status === 401", desktop_js)
|
||||
|
||||
Reference in New Issue
Block a user