From 1eda0dafd539b6a259fe1ad4609419c8f04c49c7 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Tue, 30 Apr 2024 20:34:04 -0700
Subject: Fix test; add some scripts
---
test/integration/page.test.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'test/integration/page.test.js')
diff --git a/test/integration/page.test.js b/test/integration/page.test.js
index 003f9db..c18beb9 100644
--- a/test/integration/page.test.js
+++ b/test/integration/page.test.js
@@ -16,10 +16,10 @@ it('loads the page', async () => {
expect(await driver.getTitle()).toEqual('Infantry Combat Solo Basic');
});
-it('selects a trooper by clicking on their counter', async () => {
+it('selects an off-board soldier', async () => {
await driver.switchTo().frame(driver.findElement(By.css('object')));
- const selector = '.counter[data-allegiance="liao"][data-number="1"]',
+ const selector = '.counter[data-allegiance="attacker"][data-number="1"]',
svg = await driver.findElement(By.css('svg')),
counter = await driver.findElement(By.css(selector), svg);
--
cgit v1.2.3