|
|
|
@@ -131,7 +131,7 @@ def test_deep_health_reports_worker_heartbeat(app_database):
|
|
|
|
|
payload = response.get_json()
|
|
|
|
|
|
|
|
|
|
assert response.status_code == 200
|
|
|
|
|
assert payload["version"] == "1.5.2"
|
|
|
|
|
assert payload["version"] == "1.5.3"
|
|
|
|
|
assert payload["overall"] == "ok"
|
|
|
|
|
assert payload["worker"]["status"] == "ok"
|
|
|
|
|
assert payload["storage"]["path"]
|
|
|
|
@@ -246,8 +246,8 @@ def test_dashboard_renders_expected_report_statuses(app_database):
|
|
|
|
|
assert 'localStorage.setItem(THEME_KEY, next)' in preferences_js
|
|
|
|
|
assert 'localStorage.setItem(LANGUAGE_KEY, next)' in preferences_js
|
|
|
|
|
assert 'id="app-confirm-modal"' in text
|
|
|
|
|
assert "/static/preferences.js?v=1.5.2" in text
|
|
|
|
|
assert "/static/app.js?v=1.5.2" in text
|
|
|
|
|
assert "/static/preferences.js?v=1.5.3" in text
|
|
|
|
|
assert "/static/app.js?v=1.5.3" in text
|
|
|
|
|
assert "data-theme-toggle" in text
|
|
|
|
|
assert "data-language-toggle" in text
|
|
|
|
|
assert "e32c-theme" in text
|
|
|
|
@@ -268,12 +268,12 @@ def test_frontend_dependencies_are_served_locally(app_database):
|
|
|
|
|
rendered_html = login_html + dashboard_html + overview_html
|
|
|
|
|
|
|
|
|
|
assert "cdn.jsdelivr.net" not in rendered_html
|
|
|
|
|
assert "/static/favicon.svg?v=1.5.2" in rendered_html
|
|
|
|
|
assert "/static/vendor/bootstrap/bootstrap.min.css?v=1.5.2" in rendered_html
|
|
|
|
|
assert "/static/vendor/bootstrap/bootstrap.bundle.min.js?v=1.5.2" in rendered_html
|
|
|
|
|
assert "/static/vendor/bootstrap-icons/bootstrap-icons.min.css?v=1.5.2" in rendered_html
|
|
|
|
|
assert "/static/preferences.js?v=1.5.2" in rendered_html
|
|
|
|
|
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.2" in overview_html
|
|
|
|
|
assert "/static/favicon.svg?v=1.5.3" in rendered_html
|
|
|
|
|
assert "/static/vendor/bootstrap/bootstrap.min.css?v=1.5.3" in rendered_html
|
|
|
|
|
assert "/static/vendor/bootstrap/bootstrap.bundle.min.js?v=1.5.3" in rendered_html
|
|
|
|
|
assert "/static/vendor/bootstrap-icons/bootstrap-icons.min.css?v=1.5.3" in rendered_html
|
|
|
|
|
assert "/static/preferences.js?v=1.5.3" in rendered_html
|
|
|
|
|
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.3" in overview_html
|
|
|
|
|
|
|
|
|
|
minimum_sizes = {
|
|
|
|
|
"/static/vendor/bootstrap/bootstrap.min.css": 200_000,
|
|
|
|
@@ -425,7 +425,7 @@ def test_photo_gallery_filters_dates_and_preserves_pagination(app_database):
|
|
|
|
|
assert gallery.count('class="photo-gallery-item"') == 24
|
|
|
|
|
assert 'id="photoViewer"' in text
|
|
|
|
|
assert "function renderPhoto(index)" in text
|
|
|
|
|
assert "/static/app.css?v=1.5.2" in text
|
|
|
|
|
assert "/static/app.css?v=1.5.3" in text
|
|
|
|
|
assert "ICCID" in text
|
|
|
|
|
assert "8986000000000000001" in text
|
|
|
|
|
assert "IMSI" in text
|
|
|
|
@@ -484,7 +484,8 @@ def test_device_detail_separates_overview_photos_and_settings(app_database):
|
|
|
|
|
assert 'id="trend-signal-chart"' in overview
|
|
|
|
|
assert 'id="trend-storage-chart"' in overview
|
|
|
|
|
assert 'id="trend-storage-empty"' in overview
|
|
|
|
|
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.2" in overview
|
|
|
|
|
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.3" in overview
|
|
|
|
|
assert overview.count('src="/media-thumb/') == 8
|
|
|
|
|
assert "历史照片" not in overview
|
|
|
|
|
assert "设备备注" not in overview
|
|
|
|
|
|
|
|
|
|