Deploy deepseek 2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user