index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-11 10:29:57 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-11 10:29:57 -0700 |
commit | f9bf2f9097dfeb3b8426074cce7d4b541ee9abe4 (patch) | |
tree | 37fb4836822cf875746bd7a5c0f5f0bd39580475 /test/integration/helpers.cjs | |
parent | ba31dcd751cf5bc4b1ff4be39e1511e81a8e1665 (diff) |
Fix tests
Diffstat (limited to 'test/integration/helpers.cjs')
-rw-r--r-- | test/integration/helpers.cjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/helpers.cjs b/test/integration/helpers.cjs index 10b0dc6..dc03aba 100644 --- a/test/integration/helpers.cjs +++ b/test/integration/helpers.cjs @@ -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) { |