dir-expect-idb
Action
Verifies IndexedDB persistence for testing. Directly queries IndexedDB via idbkv to confirm values were persisted correctly.
Syntax
dir-expect-idb "keyname" exists
check if key exists in IndexedDB
dir-expect-idb "keyname" not exists
check if key does not exist in IndexedDB
dir-expect-idb "keyname" equals "expected"
check if IndexedDB value equals text
dir-expect-idb "keyname" contains "substring"
check if IndexedDB value contains substring
dir-expect-idb prefix "rh-" count 5
check if number of keys with prefix equals count
dir-expect-idb prefix "rh-" count-gte 3
check if at least N keys exist with prefix
dir-expect-idb empty
check if IndexedDB has no keys for current app
dir-expect-idb var "$varname" exists
check if app-scoped variable exists in IndexedDB
dir-expect-idb var "$varname" not exists
check if app-scoped variable does not exist in IndexedDB
dir-expect-idb var "$varname" value equals "expected"
check if app-scoped variable's value property equals text
dir-expect-idb var "$varname" value equals 42
check if app-scoped variable's value property equals number
dir-expect-idb var "$varname" type equals "TEXT"
check if app-scoped variable has specific type