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-04-30 20:34:04 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-30 20:34:39 -0700 |
commit | 1eda0dafd539b6a259fe1ad4609419c8f04c49c7 (patch) | |
tree | 574a44e8bb574d947e5114046c550965874f4df5 /test/integration | |
parent | fcb205ba0b5e958c39100e1eef57317fbf3c20d1 (diff) |
Fix test; add some scripts
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/page.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |