From 873ba8639f8340f848e18c1a02603830e3205ef0 Mon Sep 17 00:00:00 2001 From: coyotte508 Date: Wed, 11 Nov 2026 22:37:55 +0000 Subject: [PATCH] Use current combat estimate details control in smoke test --- web-client/scripts/combat-estimate-smoke.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-client/scripts/combat-estimate-smoke.mjs b/web-client/scripts/combat-estimate-smoke.mjs index b88c3f46..27e83a9b 100644 --- a/web-client/scripts/combat-estimate-smoke.mjs +++ b/web-client/scripts/combat-estimate-smoke.mjs @@ -57,7 +57,7 @@ try { const panel = page.getByRole('region', { name: 'Steel Weapons', exact: true }); await panel.waitFor(); await panel.locator('.estimate-summary').waitFor({ timeout: 60000 }); - await panel.getByRole('button', { name: 'Assumptions & options', exact: false }).click(); + await panel.getByTitle('Assumptions & options', { exact: true }).click(); await panel.getByText('2048 simulations', { exact: false }).waitFor({ timeout: 60000 }); assert.match(await panel.innerText(), /Win ≈\d+%/); assert.equal(await page.evaluate(() => window.sent.length), 0, 'estimating must never submit a move'); @@ -94,7 +94,7 @@ try { await target.press('Enter'); const attackPanel = page.getByRole('region', { name: 'Unit movement' }); await attackPanel.locator('.estimate-summary').waitFor({ timeout: 60000 }); - await attackPanel.getByRole('button', { name: 'Assumptions & options', exact: false }).click(); + await attackPanel.getByTitle('Assumptions & options', { exact: true }).click(); await attackPanel.getByText('2048 simulations', { exact: false }).waitFor({ timeout: 60000 }); assert.match(await attackPanel.innerText(), /Cancel both/); assert.equal(await page.evaluate(() => window.sent.length), 0);