Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/helpers.cjs')
-rw-r--r--test/integration/helpers.cjs4
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) {