Web Dev Solutions

Catalin Mititiuc

From f9bf2f9097dfeb3b8426074cce7d4b541ee9abe4 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 11 Jul 2024 10:29:57 -0700 Subject: Fix tests --- test/integration/helpers.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/integration/helpers.cjs') 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) { -- cgit v1.2.3