fix: unify custom roll visibility

This commit is contained in:
2026-05-05 00:44:54 +02:00
parent f01d100740
commit f8b09be399
6 changed files with 19 additions and 8 deletions

View File

@@ -503,6 +503,8 @@ const tests = [
}),
"Expected custom roll composer to be interactive."
);
assert.match(await elementText(driver, ".custom-roll-composer-head .muted"), /uses public visibility/i);
await fillInput(driver, "#custom-roll-expression", "bad");
await clickText(driver, ".custom-roll-composer button", "Roll");
@@ -525,7 +527,9 @@ const tests = [
() => driver.executeScript(() => {
const className = document.querySelector("#custom-roll-expression")?.className || "";
const firstLogEntry = document.querySelector(".log-panel .log-entry");
return !/error/.test(className) && Boolean(firstLogEntry?.textContent.includes("Custom roll"));
return !/error/.test(className) &&
Boolean(firstLogEntry?.textContent.includes("Custom roll")) &&
Boolean(firstLogEntry?.textContent.includes("Public"));
}),
"Expected successful custom roll entry."
);