diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-09 18:53:11 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-09 18:53:11 +0100 |
| commit | a9d709f6dd893b6fab6750b67f0c4f367458f40c (patch) | |
| tree | 56da28331b95eac727ac715c71293d1e3d254f7d /tests/test_frontend.py | |
| parent | c00a4775106bc5927c821f5359ec265c318d73ec (diff) | |
| download | deck-it-a9d709f6dd893b6fab6750b67f0c4f367458f40c.tar.gz deck-it-a9d709f6dd893b6fab6750b67f0c4f367458f40c.zip | |
feat: vendored Gridstack for drag and free grid resize
Diffstat (limited to 'tests/test_frontend.py')
| -rw-r--r-- | tests/test_frontend.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_frontend.py b/tests/test_frontend.py index 4f8392b..cb85f9a 100644 --- a/tests/test_frontend.py +++ b/tests/test_frontend.py @@ -52,8 +52,12 @@ class Frontend(unittest.TestCase): status, body = self.get("/") self.assertEqual(status, 200) text = body.decode() - self.assertIn("app.js", text) - self.assertIn("deck.css", text) + for asset in ("app.js", "deck.css", "vendor/gridstack/gridstack-all.js"): + self.assertIn(asset, text) + + def test_vendor_assets_served(self): + for path in ("/vendor/gridstack/gridstack-all.js", "/vendor/gridstack/gridstack.min.css"): + self.assertEqual(self.get(path)[0], 200, path) def test_css_uses_udt_vars(self): status, body = self.get("/deck.css") @@ -78,7 +82,7 @@ class Frontend(unittest.TestCase): status, body = self.get("/app.js") self.assertEqual(status, 200) text = body.decode() - for part in ("localStorage", "deckit.layout", "drag-handle", "resize-handle", "wide"): + for part in ("GridStack", "localStorage", "deckit.layout", "gs-id"): self.assertIn(part, text) |
