added light/dark mode toggle v1, unified menu
This commit is contained in:
@@ -115,16 +115,11 @@ class ManualPendingEventTests(TestCase):
|
||||
|
||||
self.assertContains(response, "Report fireworks now")
|
||||
self.assertContains(response, "I heard fireworks — send to Pending")
|
||||
self.assertContains(response, "navigator.geolocation")
|
||||
self.assertContains(response, "Capture direction")
|
||||
self.assertContains(response, "DeviceOrientationEvent.requestPermission")
|
||||
self.assertContains(response, 'manual-direction-panel" hidden')
|
||||
self.assertContains(response, "DeviceOrientationEvent.requestPermission(true)")
|
||||
self.assertContains(response, 'webkitCompassHeading" in event')
|
||||
self.assertContains(response, "direction will update live")
|
||||
self.assertContains(response, "Stop direction capture")
|
||||
|
||||
self.assertContains(response, "htmx.ajax")
|
||||
self.assertContains(response, "htmx.min.js")
|
||||
self.assertContains(response, "/static/vite/")
|
||||
self.assertContains(response, 'type="module"')
|
||||
def test_manual_event_appears_in_the_normal_event_list_with_its_details(self):
|
||||
event = Event.objects.create(
|
||||
original_filename="Manual fireworks report",
|
||||
@@ -189,9 +184,9 @@ class ManualPendingEventTests(TestCase):
|
||||
self.assertContains(response, "map-events-data")
|
||||
self.assertContains(response, manual_cell)
|
||||
self.assertContains(response, '"direction_degrees": 237.0')
|
||||
self.assertContains(response, "cardinalDirection(report.direction_degrees)")
|
||||
self.assertContains(response, "data-h3-resolution")
|
||||
self.assertContains(response, 'type="module"')
|
||||
self.assertContains(response, "sensor layer disabled")
|
||||
self.assertContains(response, "Map compass: north is up")
|
||||
self.assertContains(response, "Sensor events — coming soon")
|
||||
self.assertNotContains(response, sensor_cell)
|
||||
self.assertNotContains(response, "52.123456")
|
||||
|
||||
Reference in New Issue
Block a user