Bind confirmed bank and ticket actions to real careers (by Codex)

This commit is contained in:
Codex committed 2026-10-28 11:04:11 +01:00
1 parent f75e0f8e49
commit dcf42f2da7
23 files changed
+535 -56

No files matched your search

+4 -2
View File
@@ -286,7 +286,7 @@ int main(int argc, char **argv) try {
"<div class='desk-account-main'><strong id='widget-positive' class='money-amount'>1.000 €</strong>"
"<strong id='widget-negative' class='money-amount is-negative'>-1.000 €</strong></div>"
"<span id='money-reference' class='money-amount'>Money</span><span id='negative-reference' style='color:var(--danger);'>Negative</span>"
"<span id='text-reference'>Text</span>";
"<span id='text-reference'>Text</span><div class='amount-review'><strong id='amount-money-test'>100 €</strong></div><strong id='native-ticket-amount'>20 €</strong>";
auto *doc = context->LoadDocumentFromMemory(
"<rml><head><style>" + css.str() + "</style></head><body class='" +
theme + "'>" + content + "</body></rml>");
@@ -310,8 +310,10 @@ int main(int argc, char **argv) try {
for (const auto *id : {"cash-negative", "widget-negative"})
require(doc->GetElementById(id)->GetComputedValues().color() == negative_color, "Negative balance lost its warning colour");
require(money_color != negative_color, "Money and negative colours are indistinguishable");
if (std::string(theme) == "matchday")
if (std::string(theme) == "matchday") {
require(doc->GetElementById("amount-money-test")->GetComputedValues().color() == money_color && doc->GetElementById("native-ticket-amount")->GetComputedValues().color() == money_color, "Positive input amounts must stay neutral in Matchday");
require(money_color == doc->GetElementById("text-reference")->GetComputedValues().color(), "Matchday positive money must use neutral text colour");
}
for (const auto *id : {"stats-scale-label", "stats-legend-label", "stats-player-label", "stats-world-label", "stats-from-label", "stats-winner-label", "news-brand-test", "settings-row-label", "settings-row-help", "month-label", "warning-label", "fixture-label", "front-test-label", "mod-test-name"}) {
auto *label = doc->GetElementById(id);