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-06-01 17:50:58 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-06-01 17:50:58 -0700 |
commit | 163e3a9de59f5d6a8df38fa32a1e7dc4db1ad024 (patch) | |
tree | 8ae679d3059d8ee8c69a3d45994bc74e4388f76b /test/integration/page.test.js | |
parent | e8fae51b32b6ebc4ec4e16338467b7fcc41edd11 (diff) |
Fix/refactor tests
Diffstat (limited to 'test/integration/page.test.js')
-rw-r--r-- | test/integration/page.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/page.test.js b/test/integration/page.test.js index 8bb703e..f06a7d1 100644 --- a/test/integration/page.test.js +++ b/test/integration/page.test.js @@ -1,7 +1,6 @@ const { Builder } = require('selenium-webdriver'), chrome = require('selenium-webdriver/chrome.js'), - chromeOptions = new chrome.Options(), - { expect, it } = require('@jest/globals'); + chromeOptions = new chrome.Options(); chromeOptions.addArguments('--headless', '--disable-gpu', '--no-sandbox'); chromeOptions.enableBidi(); @@ -9,11 +8,12 @@ chromeOptions.enableBidi(); let driver; beforeEach(async () => { - driver = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build(); + const builder = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions); + driver = builder.build(); }); it('loads the page', async () => { - await driver.get('http://localhost:3005'); + await driver.get(url('/')); expect(await driver.getTitle()).toEqual('Infantry Combat Solo Basic'); }); |