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-05-15 11:25:52 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-05-15 11:25:52 -0700 |
commit | 98f8464aeb4bdfa5ede0eda71f5285587c0ab76d (patch) | |
tree | cf5d8577cd2e75c836fd920c8ec0831a5ffe14be /test/integration | |
parent | fe9a18a14ec87535e3811d4bc4c055590f12b36d (diff) |
WIP: remove symlink
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/page.test.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/integration/page.test.js b/test/integration/page.test.js index e888b6d..42167ae 100644 --- a/test/integration/page.test.js +++ b/test/integration/page.test.js @@ -9,19 +9,19 @@ chromeOptions.addArguments('--headless', '--disable-gpu', '--no-sandbox'); let driver; -beforeAll(async () => { - await symlink('../../../test/map1.svg', 'public/assets/images/test_map.svg'); -}); +// beforeAll(async () => { +// await symlink('../../../test/map1.svg', 'public/assets/images/test_map.svg'); +// }); beforeEach(async () => { driver = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build(); - console.log('manage', await driver.manage()); + // console.log('manage', await driver.manage()); await driver.get('http://localhost:3005'); }); -it.only('loads the page', async () => { +it('loads the page', async () => { expect(await driver.getTitle()).toEqual('Infantry Combat Solo Basic'); // console.log('window', window); @@ -43,6 +43,7 @@ it.only('loads the page', async () => { }); it('selects an off-board soldier', async () => { +// it.only.each(Array(10).fill(null))('selects an off-board soldier', async () => { await driver.switchTo().frame(await driver.findElement(By.css('object'))); const selector = '.counter[data-allegiance="attacker"][data-number="1"]', @@ -58,9 +59,9 @@ afterEach(async () => { await driver.quit(); }); -afterAll(async () => { - await unlink('public/assets/images/test_map.svg'); -}); +// afterAll(async () => { +// await unlink('public/assets/images/test_map.svg'); +// }); async function takeScreenshot(driver) { const dir = './test/screenshots'; |