Fix tests

This commit is contained in:
2025-06-16 22:41:32 -07:00
parent 9508fcf78d
commit 684072b577
4 changed files with 16 additions and 24 deletions

View File

@@ -78,8 +78,8 @@ global.createTroopCounter = function (
`);
}
global.placeCounter = function (document, counter, { x, y }) {
document.querySelector(`g[data-y="${y}"] g[data-x="${x}"]`).append(counter);
global.placeCounter = function (document, counter, { q = 0, r = 0, s = 0, t = 0 } = {}) {
document.querySelector(`[data-q="${q}"][data-r="${r}"][data-s="${s}"][data-t="${t}"]`).append(counter);
}
global.selectCounter = function (counter) {