This commit is contained in:
@@ -786,6 +786,7 @@ def test_public_and_admin_pages_render_html():
|
||||
assert 'id="auth-profile-link" class="hidden"' in root_page.text
|
||||
assert 'id="auth-admin-link" class="hidden"' in root_page.text
|
||||
assert '<select id="tag-filter">' in root_page.text
|
||||
assert '<input id="search-input" type="search"' in root_page.text
|
||||
assert root_page.text.index('class="site-logo"') < root_page.text.index('<section class="toolbar">')
|
||||
assert 'logout.js?v=3' in root_page.text
|
||||
assert client.get('/alice').status_code == 200
|
||||
@@ -829,6 +830,11 @@ def test_public_and_admin_pages_render_html():
|
||||
assert 'class="panel-toggle-btn"' in profile_page
|
||||
assert 'profile.js?v=6' in profile_page
|
||||
feed_script = client.get('/static/feed.js?v=7').text
|
||||
assert 'function parseSearchQuery(value)' in feed_script
|
||||
assert 'site:(\\S+)' in feed_script
|
||||
assert 'token.toUpperCase() === \'OR\'' in feed_script
|
||||
assert 'token.startsWith(\'-\')' in feed_script
|
||||
assert 'matchesSearch(item, pref.search || \'\')' in feed_script
|
||||
assert 'if (item.is_owner && !showIdentity)' in feed_script
|
||||
assert 'deleteEntry(item, deleteButton)' in feed_script
|
||||
assert 'postToMastodon(item, mastodonButton)' in feed_script
|
||||
|
||||
Reference in New Issue
Block a user