Deploy deepseek 2
Some checks failed
Test / test (push) Failing after 2s
Build and Deploy Nuxt / build (push) Successful in 1m51s

This commit is contained in:
2026-10-19 19:04:28 +02:00
parent b5d5e570d5
commit 1ec29121e1
45 changed files with 3438 additions and 166 deletions

View File

@@ -180,11 +180,16 @@ function makeStubWorld({ autoSync = true } = {}) {
}
async function forceSyncActors(world, ...actorIds) {
// Foundry 13+ hands the context menu hook the directory application and the
// menu items to mutate; selected entries carry their id on data-entry-id.
const entries = actorIds.map((actorId) => ({ dataset: { entryId: actorId } }));
const application = { element: { querySelectorAll: () => entries } };
const options = [];
await world.fire("getActorDirectoryEntryContext", null, options);
const entry = options.find((option) => option.name === "Dragonroll: Force Sync");
await world.fire("getActorContextOptions", application, options);
const entry = options.find((option) => option.label === "Dragonroll: Force Sync");
assert.ok(entry, "Dragonroll: Force Sync is offered in the actor directory context menu");
await entry.callback(actorIds.map((actorId) => ({ dataset: { actorId } })));
assert.ok(!entry.visible || entry.visible(), "the entry is visible for a linked GM world");
await entry.onClick(null, entries[0] ?? null);
await world.runTimers();
}