Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-12 10:50:34 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-12 11:24:14 -0700
commitac8eb25ac0b1d518beebe810e6430e375032028c (patch)
treedfcb005463cf4144d6874b768a6f88086d5be2b6 /test/integration
parent16fc0bf7938071b400364d705f9ac859068be5f3 (diff)
Add some 'load scenario' todo tests
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/loadScenario.test.js23
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();
+});