tests: add Playwright event badge CRUD + interaction tests; add minimal V3 mocks and env helper; update presenter/badge smoke tests to use helpers; convert test locals to snake_case

This commit is contained in:
Scott Idem
2026-02-24 17:49:43 -05:00
parent 39614c9cc2
commit 197adff33b
10 changed files with 439 additions and 120 deletions

View File

@@ -9,46 +9,6 @@
let { data, children, log_lvl = 0 }: Props = $props();
// *** Import Svelte specific
// import { liveQuery } from 'dexie';
// import type { key_val } from '$lib/stores/ae_stores';
// import { ae_util } from '$lib/ae_utils/ae_utils';
// import { core_func } from '$lib/ae_core_functions';
// import { db_events } from '$lib/ae_events/db_events';
// import {
// ae_snip,
// ae_loc,
// ae_sess,
// ae_api,
// ae_trig,
// slct,
// slct_trigger
// } from '$lib/stores/ae_stores';
// import {
// events_loc,
// events_sess,
// events_slct,
// events_trigger
// } from '$lib/stores/ae_events_stores';
// import { events_func } from '$lib/ae_events_functions';
// let lq__event_obj = $derived(
// liveQuery(async () => {
// if (log_lvl) {
// console.log(
// `*** LiveQuery: lq__event_obj *** event_id=${$events_slct.event_id}`
// );
// }
// let results = await db_events.event.get(
// $events_slct?.event_id ?? ''
// );
// return results;
// })
// );
// let nav_y_height = $state(0);
let box: any;
let xLeft = $state(0);
@@ -73,10 +33,6 @@
}
// *** Functions and Logic
// $effect(() => {
// // if ($events_trigger == 'load__event_badge_obj_li' && $events_slct.event_id) {
// // }
// });
</script>
<!-- <svelte:head>
@@ -92,6 +48,5 @@
</svelte:head> -->
<!-- - Badges - {$events_loc?.title} -->
<!-- +layout: Where is here??? -->
{@render children?.()}