feat(drivers): country flag before the driver's name in timing, overlay, results, printouts and PDF (1.89.20)
This commit is contained in:
1 parent
da20a7e978
commit
6e45918e74
101 files changed
+2898
-45
No files matched your search
@@ -71,3 +71,9 @@ test("practice ranked on 3 laps in a row: only result, gap and best lap as times
|
||||
assert.match(html, /class="overlay-prediction"/, "the next-lap bar stays");
|
||||
for (const gone of ["table.laps", "table.ahead_gap", "table.own_delta"]) assert.doesNotMatch(html, new RegExp(gone.replace(".", "\\.")), gone);
|
||||
});
|
||||
|
||||
test("a driver's country: a small local flag before the name on the overlay; none without a country", () => {
|
||||
const withFlag = renderOverlayLeaderboard([{ key: "a", driverId: "a", displayName: "Roy", countryCode: "NO", laps: 3, resultDisplay: "-", bestLapMs: 17500 }], deps);
|
||||
assert.match(withFlag, /<img class="country-flag" src="\/src\/flags\/no\.svg"[^>]*\/>Roy/);
|
||||
assert.doesNotMatch(renderOverlayLeaderboard(rows(1), deps), /country-flag/);
|
||||
});
|
||||
Reference in new issue
Block a user