fix: keep guide accessible when browser storage is blocked

This commit is contained in:
codex committed 2026-11-11 14:15:04 +03:00
1 parent d9420db50c
commit 0f2d0db3c7
8 files changed
+44 -15

No files matched your search

+1 -1
View File
@@ -342,7 +342,7 @@ def test_guide_access_and_no_javascript_completion(accounts):
db.add(UserAction(user_id=user.id, action='guide_start'))
db.commit()
page = BeautifulSoup(client.get('/admin').text, 'html.parser')
assert page.select_one('noscript a[href="/admin/guide"]')
assert page.select_one('[data-guide-fallback] a[href="/admin/guide"]')
response = client.post('/admin/guide/dismiss', headers=headers, follow_redirects=False)
assert response.status_code == 303 and response.headers['location'] == '/admin'
assert 'data-guide-pending="false"' in client.get('/admin/account').text