from app import create_app
import re
app = create_app()
c = app.test_client()
c.post('/auth/login', data={'email':'admin@vapolyx.gg','password':'Admin@123'}, follow_redirects=False)
r = c.get('/home', follow_redirects=False)
html = r.data.decode('utf-8','replace')
print('home:', r.status_code)
print('notifDropdown present:', 'notifDropdown' in html)
print('notifDot present:', 'notifDot' in html)
print('toggleNotifDrop onclick:', 'toggleNotifDrop' in html)
m = re.search(r'id="notifDot">([^<]*)', html)
print('notifDot val:', repr(m.group(1)) if m else 'NOT FOUND')
print('No new notifications:', 'No new notifications' in html)
print('View all:', 'View all' in html)
