mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-15 15:10:31 -08:00
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:
parent
ed198d375b
commit
82bb1c2d77
10 changed files with 284 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue