fix: sync custom roll visibility
This commit is contained in:
@@ -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."
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user