Fix/hibernate (#652)

* feat: allow use local tiddlywiki version

closes #536

* test: hibernate

* fix: Ensure wiki worker is started before setting active view for hibernated wikiu

* fix: injection
This commit is contained in:
lin onetwo 2025-11-09 21:32:37 +08:00 committed by GitHub
parent ed198d375b
commit 82bb1c2d77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 284 additions and 10 deletions

View file

@ -4,7 +4,7 @@ import { logsDirectory, screenshotsDirectory } from '../supports/paths';
import { clearAISettings } from './agent';
import { ApplicationWorld } from './application';
import { clearTidgiMiniWindowSettings } from './tidgiMiniWindow';
import { clearGitTestData, clearSubWikiRoutingTestData } from './wiki';
import { clearGitTestData, clearHibernationTestData, clearSubWikiRoutingTestData } from './wiki';
Before(async function(this: ApplicationWorld, { pickle }) {
// Create necessary directories under userData-test/logs to match appPaths in dev/test
@ -67,6 +67,10 @@ After(async function(this: ApplicationWorld, { pickle }) {
if (pickle.tags.some((tag) => tag.name === '@git')) {
await clearGitTestData();
}
// Clean up hibernation test data - remove wiki2 folder created during tests
if (pickle.tags.some((tag) => tag.name === '@hibernation')) {
await clearHibernationTestData();
}
// Separate logs by test scenario for easier debugging
try {