fix: sync custom roll visibility

This commit is contained in:
2026-05-05 00:56:41 +02:00
parent 6b18051073
commit 777befdbf0
3 changed files with 31 additions and 3 deletions

View File

@@ -505,6 +505,13 @@ const tests = [
);
assert.match(await elementText(driver, ".custom-roll-composer-head .muted"), /uses public visibility/i);
await fillInput(driver, "#roll-visibility", "private");
await waitFor(
driver,
() => elementText(driver, ".custom-roll-composer-head .muted").then((text) => /uses private visibility/i.test(text)),
"Expected custom roll status text to reflect private visibility."
);
await fillInput(driver, "#custom-roll-expression", "bad");
await clickText(driver, ".custom-roll-composer button", "Roll");
@@ -529,7 +536,7 @@ const tests = [
const firstLogEntry = document.querySelector(".log-panel .log-entry");
return !/error/.test(className) &&
Boolean(firstLogEntry?.textContent.includes("Custom roll")) &&
Boolean(firstLogEntry?.textContent.includes("Public"));
Boolean(firstLogEntry?.textContent.includes("Private"));
}),
"Expected successful custom roll entry."
);