A6: public home with the six states, confirmed prize, countdown and polling (WEB-05, WEB-10, WEB-11, WEB-14; LIM-24, WEB-55)
public_state() feeds both the server-rendered home (works without JavaScript) and GET /stato/, so they cannot disagree: none, open, closing, drawing, paying and maintenance, the round's own quota, the winner's 70% of the *confirmed* pool, bets in flight apart, and the closing time on the server's clock. home.js counts down against the server clock and polls every 5 s while visible. Checked in headless Chromium on mobile and desktop widths. Also records the profile reports (WEB-55, roadmap A9) and the name-lock trade-off (LIM-24). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
efb3e2e702
commit
939c113043
16 files changed
+627
-11
No files matched your search
@@ -480,7 +480,8 @@ def test_password_fields_tell_the_browser_what_they_are(client):
|
||||
def test_pages_use_no_inline_scripts_or_styles(client, url):
|
||||
"""So the Content-Security-Policy can be tightened for them."""
|
||||
html = client.get(url).content.decode()
|
||||
assert "<script" not in html and " style=" not in html and not re.search(r"\son[a-z]+=", html)
|
||||
inline_scripts = [m for m in re.findall(r"<script\b[^>]*>", html) if "src=" not in m]
|
||||
assert not inline_scripts and " style=" not in html and not re.search(r"\son[a-z]+=", html)
|
||||
|
||||
|
||||
def test_errors_are_announced_to_assistive_technology(client):
|
||||
|
||||
Reference in new issue
Block a user