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