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-12 10:50:34 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-06-12 11:24:14 -0700 |
commit | ac8eb25ac0b1d518beebe810e6430e375032028c (patch) | |
tree | dfcb005463cf4144d6874b768a6f88086d5be2b6 /test/integration/loadScenario.test.js | |
parent | 16fc0bf7938071b400364d705f9ac859068be5f3 (diff) |
Add some 'load scenario' todo tests
Diffstat (limited to 'test/integration/loadScenario.test.js')
-rw-r--r-- | test/integration/loadScenario.test.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/integration/loadScenario.test.js b/test/integration/loadScenario.test.js new file mode 100644 index 0000000..645c5c2 --- /dev/null +++ b/test/integration/loadScenario.test.js @@ -0,0 +1,23 @@ +const { Builder } = require('selenium-webdriver'), + chrome = require('selenium-webdriver/chrome.js'), + chromeOptions = new chrome.Options(); + +chromeOptions.addArguments('--headless', '--disable-gpu', '--no-sandbox'); +chromeOptions.enableBidi(); + +let driver; + +beforeEach(async () => { + const builder = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions); + driver = builder.build(); +}); + +it.todo('loads default scenario on initial page load'); +it.todo('loads previously-loaded scenario on page refresh'); +it.todo('loads built-in scenario from dialog'); +it.todo('loads custom scenario directly from file'); +it.todo('loads saved scenario from file'); + +afterEach(async () => { + await driver.quit(); +}); |