influxdb/e2e/cucumber.js

109 lines
4.1 KiB
JavaScript
Raw Normal View History

2020-05-13 20:49:31 +00:00
const chrome = require('selenium-webdriver/chrome');
const ffox = require('selenium-webdriver/firefox');
const fs = require('fs');
chore(e2e): update selectors and add containerization (#19221) * update: patch in tests from bonitoo-io/selenium-accept-infl2 * fix: add dataExplorer.feature - forgotten yesterday * update: refactor e2e test configuration * update: set actual cloud credentials in config * fix: issue with headless switch in config * update: WIP cloud experim and refactoring to use client libs * update: sync variablesTab with upstream changes * fix: clumsy use of resultObserver without promise * fix: troubleshoot merge issue * wip: Refactor using client APIs. * wip: refactoring tests with new client API * update: tokens tests * wip: fixing variables tests * fix: selectors for settings variables tests * update: update selectors for dashboards and cellEdit * e2e(fix): update selectors for generic popup * e2e(fix): fix note cell test * e2e(circleci): try and force nightly build * e2e(circleci): try and force nightly build bis * e2e(circleci): troubleshoot build issues * e2e(circleci): fix type * e2e(circleci): check circleci build * e2e(circleci): troubleshoot build failure * e2e(circleci): troubleshout circleci build * e2e(circleci): troubleshoot circleci build issues * e2e(circleci): troubleshoot build schedule * e2e(update): wip updating alerts selectors * e2e(circleci): troubleshoot reporting from tests * e2e(update): fix alert selectors - WIP * e2e(circleci): troubleshoot reporting issues in circleci * e2e(update): monitoring selector fixes * e2e(circleci): troubleshoot reporting issues * e2e(update): fix monitoring selectors * e2e(circleci): change cron trigger schedule for bonitoo * e2e(config): add ENV to declare username * test: add semantic commit * e2e: remove debug lines from old config.yml * fix(temp): remove bonitoo workflow from config.yml * fix(e2e): reset cron for hourly-e2e to original values * dataExplorer.feature new scenarios * fix(e2e): generalize urls in telegraf asserts * fix(e2e): troubleshoot circleci build * fix: update .circleci/config.yml nightly acceptance test and sync with upstream * fix(e2e): troubleshoot network issues on jenkins * fix(e2): troubleshoot jenkins failures * fix(e2e): troubleshoot jenkins issues * fix(e2e): troubleshoot jenkins failures * fix(e2e): troubleshoot test issues - change page load strategy * fix(e2e): troubleshoot build issues * fix(e2e): troubleshoot build issues * fix(e2e): add paranoia checks on using UI signin * fix(e2e): troubleshoot test issues * fix(e2e): change handling of env params * fix(e2e): troubleshoot signin stale elem issue * fix(e2e): typo * fix(e2e): synch selectors with recent UI changes * fix(e2e): update check for stale element on signin * fix(e2e): fine tune retry on stale element signin * fix(e2e): lengthen signin retry * fix(e2): try second stale element workaround * fix(e2): attempt to workaround stale element * fix(e2): try cruder solution to stale element on sign in * fix(e2): lengthen timeout for signing page load * fix(e2e): clear notifications before save in dataexplorer * fixes(e2e): update variables button selector * fix(e2e): cleanup data explorer test variable - from browser * fixes(e2e): stash experim changes to cucumber.js * fixes(e2e): troubleshoot deadman check failure * fix(e2e): stash cucumber.js * fix(e2e): update selectors for telegraf delete * fixes(e2e): extend timeout for input to monaco * fixes(e2e): troubleshoot timeout issue on paste into monaco * fixes(e2e): safety commit containerize * fixes(e2e): generic page header no longer applies - temp fix * fixes(e2e): changes to headers temp fixes * chore(e2e): stash acceptance test containerize work * chore(e2e): clean debug messages * feat(e2e): commandline args in containerized test script * fixes(e2e): add junit report generation to container script * fixes(e2e): set delay for selenoid startup * fixes(e2e): stop docker containers after tests * fix(e2e): drop bonitoo argv args before cucumber calls ArgvParser * chore(e2e): update README and remove experim naming * fix(e2e): troubleshoot occasional flake in notification assertions * feat(e2e): add simple performance utility for cloud * feat(e2e): tweek performance util * feat(e2e): start cloud testing with containerized tests * fix(e2e): halt script on unset required params * fix(e2e): remove messages that could leak info * fix(e2e): troubleshoot jenkins credentials * fix(e2e): troubleshoot parameter issues in jenkins * fix(e2e): cleanup troubleshoot code * fix(e2e): update create variables popup selector * fix(e2e): update submit button for template popup * fix(e2e): update selectors for data tokens tests * fix(e2e): sync alerts tests with recent changes * chore(e2e): add cloud specific Dockerfile * chore(e2e): add reporting to cloud dockerfile Co-authored-by: Cubone21 <kyuboun@gmail.com>
2020-08-05 15:22:09 +00:00
const {Builder, Capabilities, By, Key, LocalFileDetector, logging, PageLoadStrategy, promise, until} = require('selenium-webdriver');
2020-05-13 20:49:31 +00:00
//following provides cleaner paths in require statements
global.__basedir = __dirname;
global.__srcdir = __dirname + "/src";
global.__runtime = new Date();
global.__runtimeStr = __runtime.getFullYear().toString() +
(__runtime.getMonth() + 1).toString().padStart(2, '0') +
__runtime.getDate().toString().padStart(2, '0') + "-" +
__runtime.getHours().toString().padStart(2, '0') +
__runtime.getMinutes().toString().padStart(2, '0') +
__runtime.getSeconds().toString().padStart(2, '0');
const { flush, config, defaultUser } = require(__srcdir + '/utils/influxUtils');
global.__screenShotDir = process.cwd() + "/" + __config.screenshot_dir + "/" + __runtimeStr;
global.__dataBuffer = {};
fs.mkdirSync(__screenShotDir, { recursive: true });
var common = '--require "src/step_definitions/**/*.js" --require hooks.js --require-module babel-core/register ';
let caps = new Capabilities();
chore(e2e): update selectors and add containerization (#19221) * update: patch in tests from bonitoo-io/selenium-accept-infl2 * fix: add dataExplorer.feature - forgotten yesterday * update: refactor e2e test configuration * update: set actual cloud credentials in config * fix: issue with headless switch in config * update: WIP cloud experim and refactoring to use client libs * update: sync variablesTab with upstream changes * fix: clumsy use of resultObserver without promise * fix: troubleshoot merge issue * wip: Refactor using client APIs. * wip: refactoring tests with new client API * update: tokens tests * wip: fixing variables tests * fix: selectors for settings variables tests * update: update selectors for dashboards and cellEdit * e2e(fix): update selectors for generic popup * e2e(fix): fix note cell test * e2e(circleci): try and force nightly build * e2e(circleci): try and force nightly build bis * e2e(circleci): troubleshoot build issues * e2e(circleci): fix type * e2e(circleci): check circleci build * e2e(circleci): troubleshoot build failure * e2e(circleci): troubleshout circleci build * e2e(circleci): troubleshoot circleci build issues * e2e(circleci): troubleshoot build schedule * e2e(update): wip updating alerts selectors * e2e(circleci): troubleshoot reporting from tests * e2e(update): fix alert selectors - WIP * e2e(circleci): troubleshoot reporting issues in circleci * e2e(update): monitoring selector fixes * e2e(circleci): troubleshoot reporting issues * e2e(update): fix monitoring selectors * e2e(circleci): change cron trigger schedule for bonitoo * e2e(config): add ENV to declare username * test: add semantic commit * e2e: remove debug lines from old config.yml * fix(temp): remove bonitoo workflow from config.yml * fix(e2e): reset cron for hourly-e2e to original values * dataExplorer.feature new scenarios * fix(e2e): generalize urls in telegraf asserts * fix(e2e): troubleshoot circleci build * fix: update .circleci/config.yml nightly acceptance test and sync with upstream * fix(e2e): troubleshoot network issues on jenkins * fix(e2): troubleshoot jenkins failures * fix(e2e): troubleshoot jenkins issues * fix(e2e): troubleshoot jenkins failures * fix(e2e): troubleshoot test issues - change page load strategy * fix(e2e): troubleshoot build issues * fix(e2e): troubleshoot build issues * fix(e2e): add paranoia checks on using UI signin * fix(e2e): troubleshoot test issues * fix(e2e): change handling of env params * fix(e2e): troubleshoot signin stale elem issue * fix(e2e): typo * fix(e2e): synch selectors with recent UI changes * fix(e2e): update check for stale element on signin * fix(e2e): fine tune retry on stale element signin * fix(e2e): lengthen signin retry * fix(e2): try second stale element workaround * fix(e2): attempt to workaround stale element * fix(e2): try cruder solution to stale element on sign in * fix(e2): lengthen timeout for signing page load * fix(e2e): clear notifications before save in dataexplorer * fixes(e2e): update variables button selector * fix(e2e): cleanup data explorer test variable - from browser * fixes(e2e): stash experim changes to cucumber.js * fixes(e2e): troubleshoot deadman check failure * fix(e2e): stash cucumber.js * fix(e2e): update selectors for telegraf delete * fixes(e2e): extend timeout for input to monaco * fixes(e2e): troubleshoot timeout issue on paste into monaco * fixes(e2e): safety commit containerize * fixes(e2e): generic page header no longer applies - temp fix * fixes(e2e): changes to headers temp fixes * chore(e2e): stash acceptance test containerize work * chore(e2e): clean debug messages * feat(e2e): commandline args in containerized test script * fixes(e2e): add junit report generation to container script * fixes(e2e): set delay for selenoid startup * fixes(e2e): stop docker containers after tests * fix(e2e): drop bonitoo argv args before cucumber calls ArgvParser * chore(e2e): update README and remove experim naming * fix(e2e): troubleshoot occasional flake in notification assertions * feat(e2e): add simple performance utility for cloud * feat(e2e): tweek performance util * feat(e2e): start cloud testing with containerized tests * fix(e2e): halt script on unset required params * fix(e2e): remove messages that could leak info * fix(e2e): troubleshoot jenkins credentials * fix(e2e): troubleshoot parameter issues in jenkins * fix(e2e): cleanup troubleshoot code * fix(e2e): update create variables popup selector * fix(e2e): update submit button for template popup * fix(e2e): update selectors for data tokens tests * fix(e2e): sync alerts tests with recent changes * chore(e2e): add cloud specific Dockerfile * chore(e2e): add reporting to cloud dockerfile Co-authored-by: Cubone21 <kyuboun@gmail.com>
2020-08-05 15:22:09 +00:00
caps.set('enableVNC', true);
//caps.set('enableVideo', true);
fixes(e2e): selector updates and timing fixes (#18846) * update: patch in tests from bonitoo-io/selenium-accept-infl2 * fix: add dataExplorer.feature - forgotten yesterday * update: refactor e2e test configuration * update: set actual cloud credentials in config * fix: issue with headless switch in config * update: WIP cloud experim and refactoring to use client libs * update: sync variablesTab with upstream changes * fix: clumsy use of resultObserver without promise * fix: troubleshoot merge issue * wip: Refactor using client APIs. * wip: refactoring tests with new client API * update: tokens tests * wip: fixing variables tests * fix: selectors for settings variables tests * update: update selectors for dashboards and cellEdit * e2e(fix): update selectors for generic popup * e2e(fix): fix note cell test * e2e(circleci): try and force nightly build * e2e(circleci): try and force nightly build bis * e2e(circleci): troubleshoot build issues * e2e(circleci): fix type * e2e(circleci): check circleci build * e2e(circleci): troubleshoot build failure * e2e(circleci): troubleshout circleci build * e2e(circleci): troubleshoot circleci build issues * e2e(circleci): troubleshoot build schedule * e2e(update): wip updating alerts selectors * e2e(circleci): troubleshoot reporting from tests * e2e(update): fix alert selectors - WIP * e2e(circleci): troubleshoot reporting issues in circleci * e2e(update): monitoring selector fixes * e2e(circleci): troubleshoot reporting issues * e2e(update): fix monitoring selectors * e2e(circleci): change cron trigger schedule for bonitoo * e2e(config): add ENV to declare username * test: add semantic commit * e2e: remove debug lines from old config.yml * fix(temp): remove bonitoo workflow from config.yml * fix(e2e): reset cron for hourly-e2e to original values * dataExplorer.feature new scenarios * fix(e2e): troubleshoot circleci build * fix: update .circleci/config.yml nightly acceptance test and sync with upstream * fix(e2e): troubleshoot network issues on jenkins * fix(e2): troubleshoot jenkins failures * fix(e2e): troubleshoot jenkins issues * fix(e2e): troubleshoot jenkins failures * fix(e2e): troubleshoot test issues - change page load strategy * fix(e2e): troubleshoot build issues * fix(e2e): troubleshoot build issues * fix(e2e): add paranoia checks on using UI signin * fix(e2e): troubleshoot test issues * fix(e2e): troubleshoot signin stale elem issue * fix(e2e): typo * fix(e2e): synch selectors with recent UI changes * fix(e2e): update check for stale element on signin * fix(e2e): fine tune retry on stale element signin * fix(e2e): lengthen signin retry * fix(e2): try second stale element workaround * fix(e2): attempt to workaround stale element * fix(e2): try cruder solution to stale element on sign in * fix(e2): lengthen timeout for signing page load * fix(e2e): clear notifications before save in dataexplorer * fixes(e2e): update variables button selector * fix(e2e): cleanup data explorer test variable - from browser * fixes(e2e): troubleshoot deadman check failure * fix(e2e): update selectors for telegraf delete * fixes(e2e): extend timeout for input to monaco * fixes(e2e): troubleshoot timeout issue on paste into monaco * fixes(e2e): generic page header no longer applies - temp fix * fixes(e2e): changes to headers temp fixes Co-authored-by: Cubone21 <kyuboun@gmail.com>
2020-07-13 15:38:26 +00:00
caps.set('pageLoadStrategy', 'normal');
2020-05-13 20:49:31 +00:00
chore(e2e): update selectors and add containerization (#19221) * update: patch in tests from bonitoo-io/selenium-accept-infl2 * fix: add dataExplorer.feature - forgotten yesterday * update: refactor e2e test configuration * update: set actual cloud credentials in config * fix: issue with headless switch in config * update: WIP cloud experim and refactoring to use client libs * update: sync variablesTab with upstream changes * fix: clumsy use of resultObserver without promise * fix: troubleshoot merge issue * wip: Refactor using client APIs. * wip: refactoring tests with new client API * update: tokens tests * wip: fixing variables tests * fix: selectors for settings variables tests * update: update selectors for dashboards and cellEdit * e2e(fix): update selectors for generic popup * e2e(fix): fix note cell test * e2e(circleci): try and force nightly build * e2e(circleci): try and force nightly build bis * e2e(circleci): troubleshoot build issues * e2e(circleci): fix type * e2e(circleci): check circleci build * e2e(circleci): troubleshoot build failure * e2e(circleci): troubleshout circleci build * e2e(circleci): troubleshoot circleci build issues * e2e(circleci): troubleshoot build schedule * e2e(update): wip updating alerts selectors * e2e(circleci): troubleshoot reporting from tests * e2e(update): fix alert selectors - WIP * e2e(circleci): troubleshoot reporting issues in circleci * e2e(update): monitoring selector fixes * e2e(circleci): troubleshoot reporting issues * e2e(update): fix monitoring selectors * e2e(circleci): change cron trigger schedule for bonitoo * e2e(config): add ENV to declare username * test: add semantic commit * e2e: remove debug lines from old config.yml * fix(temp): remove bonitoo workflow from config.yml * fix(e2e): reset cron for hourly-e2e to original values * dataExplorer.feature new scenarios * fix(e2e): generalize urls in telegraf asserts * fix(e2e): troubleshoot circleci build * fix: update .circleci/config.yml nightly acceptance test and sync with upstream * fix(e2e): troubleshoot network issues on jenkins * fix(e2): troubleshoot jenkins failures * fix(e2e): troubleshoot jenkins issues * fix(e2e): troubleshoot jenkins failures * fix(e2e): troubleshoot test issues - change page load strategy * fix(e2e): troubleshoot build issues * fix(e2e): troubleshoot build issues * fix(e2e): add paranoia checks on using UI signin * fix(e2e): troubleshoot test issues * fix(e2e): change handling of env params * fix(e2e): troubleshoot signin stale elem issue * fix(e2e): typo * fix(e2e): synch selectors with recent UI changes * fix(e2e): update check for stale element on signin * fix(e2e): fine tune retry on stale element signin * fix(e2e): lengthen signin retry * fix(e2): try second stale element workaround * fix(e2): attempt to workaround stale element * fix(e2): try cruder solution to stale element on sign in * fix(e2): lengthen timeout for signing page load * fix(e2e): clear notifications before save in dataexplorer * fixes(e2e): update variables button selector * fix(e2e): cleanup data explorer test variable - from browser * fixes(e2e): stash experim changes to cucumber.js * fixes(e2e): troubleshoot deadman check failure * fix(e2e): stash cucumber.js * fix(e2e): update selectors for telegraf delete * fixes(e2e): extend timeout for input to monaco * fixes(e2e): troubleshoot timeout issue on paste into monaco * fixes(e2e): safety commit containerize * fixes(e2e): generic page header no longer applies - temp fix * fixes(e2e): changes to headers temp fixes * chore(e2e): stash acceptance test containerize work * chore(e2e): clean debug messages * feat(e2e): commandline args in containerized test script * fixes(e2e): add junit report generation to container script * fixes(e2e): set delay for selenoid startup * fixes(e2e): stop docker containers after tests * fix(e2e): drop bonitoo argv args before cucumber calls ArgvParser * chore(e2e): update README and remove experim naming * fix(e2e): troubleshoot occasional flake in notification assertions * feat(e2e): add simple performance utility for cloud * feat(e2e): tweek performance util * feat(e2e): start cloud testing with containerized tests * fix(e2e): halt script on unset required params * fix(e2e): remove messages that could leak info * fix(e2e): troubleshoot jenkins credentials * fix(e2e): troubleshoot parameter issues in jenkins * fix(e2e): cleanup troubleshoot code * fix(e2e): update create variables popup selector * fix(e2e): update submit button for template popup * fix(e2e): update selectors for data tokens tests * fix(e2e): sync alerts tests with recent changes * chore(e2e): add cloud specific Dockerfile * chore(e2e): add reporting to cloud dockerfile Co-authored-by: Cubone21 <kyuboun@gmail.com>
2020-08-05 15:22:09 +00:00
let chromeUserPreferences = { 'download.prompt_for_download': false, "download.default_directory": __config.download_dir };
2020-05-13 20:49:31 +00:00
let windowSize = { "width": 1024, "height": 768 };
chore(e2e): update selectors and add containerization (#19221) * update: patch in tests from bonitoo-io/selenium-accept-infl2 * fix: add dataExplorer.feature - forgotten yesterday * update: refactor e2e test configuration * update: set actual cloud credentials in config * fix: issue with headless switch in config * update: WIP cloud experim and refactoring to use client libs * update: sync variablesTab with upstream changes * fix: clumsy use of resultObserver without promise * fix: troubleshoot merge issue * wip: Refactor using client APIs. * wip: refactoring tests with new client API * update: tokens tests * wip: fixing variables tests * fix: selectors for settings variables tests * update: update selectors for dashboards and cellEdit * e2e(fix): update selectors for generic popup * e2e(fix): fix note cell test * e2e(circleci): try and force nightly build * e2e(circleci): try and force nightly build bis * e2e(circleci): troubleshoot build issues * e2e(circleci): fix type * e2e(circleci): check circleci build * e2e(circleci): troubleshoot build failure * e2e(circleci): troubleshout circleci build * e2e(circleci): troubleshoot circleci build issues * e2e(circleci): troubleshoot build schedule * e2e(update): wip updating alerts selectors * e2e(circleci): troubleshoot reporting from tests * e2e(update): fix alert selectors - WIP * e2e(circleci): troubleshoot reporting issues in circleci * e2e(update): monitoring selector fixes * e2e(circleci): troubleshoot reporting issues * e2e(update): fix monitoring selectors * e2e(circleci): change cron trigger schedule for bonitoo * e2e(config): add ENV to declare username * test: add semantic commit * e2e: remove debug lines from old config.yml * fix(temp): remove bonitoo workflow from config.yml * fix(e2e): reset cron for hourly-e2e to original values * dataExplorer.feature new scenarios * fix(e2e): generalize urls in telegraf asserts * fix(e2e): troubleshoot circleci build * fix: update .circleci/config.yml nightly acceptance test and sync with upstream * fix(e2e): troubleshoot network issues on jenkins * fix(e2): troubleshoot jenkins failures * fix(e2e): troubleshoot jenkins issues * fix(e2e): troubleshoot jenkins failures * fix(e2e): troubleshoot test issues - change page load strategy * fix(e2e): troubleshoot build issues * fix(e2e): troubleshoot build issues * fix(e2e): add paranoia checks on using UI signin * fix(e2e): troubleshoot test issues * fix(e2e): change handling of env params * fix(e2e): troubleshoot signin stale elem issue * fix(e2e): typo * fix(e2e): synch selectors with recent UI changes * fix(e2e): update check for stale element on signin * fix(e2e): fine tune retry on stale element signin * fix(e2e): lengthen signin retry * fix(e2): try second stale element workaround * fix(e2): attempt to workaround stale element * fix(e2): try cruder solution to stale element on sign in * fix(e2): lengthen timeout for signing page load * fix(e2e): clear notifications before save in dataexplorer * fixes(e2e): update variables button selector * fix(e2e): cleanup data explorer test variable - from browser * fixes(e2e): stash experim changes to cucumber.js * fixes(e2e): troubleshoot deadman check failure * fix(e2e): stash cucumber.js * fix(e2e): update selectors for telegraf delete * fixes(e2e): extend timeout for input to monaco * fixes(e2e): troubleshoot timeout issue on paste into monaco * fixes(e2e): safety commit containerize * fixes(e2e): generic page header no longer applies - temp fix * fixes(e2e): changes to headers temp fixes * chore(e2e): stash acceptance test containerize work * chore(e2e): clean debug messages * feat(e2e): commandline args in containerized test script * fixes(e2e): add junit report generation to container script * fixes(e2e): set delay for selenoid startup * fixes(e2e): stop docker containers after tests * fix(e2e): drop bonitoo argv args before cucumber calls ArgvParser * chore(e2e): update README and remove experim naming * fix(e2e): troubleshoot occasional flake in notification assertions * feat(e2e): add simple performance utility for cloud * feat(e2e): tweek performance util * feat(e2e): start cloud testing with containerized tests * fix(e2e): halt script on unset required params * fix(e2e): remove messages that could leak info * fix(e2e): troubleshoot jenkins credentials * fix(e2e): troubleshoot parameter issues in jenkins * fix(e2e): cleanup troubleshoot code * fix(e2e): update create variables popup selector * fix(e2e): update submit button for template popup * fix(e2e): update selectors for data tokens tests * fix(e2e): sync alerts tests with recent changes * chore(e2e): add cloud specific Dockerfile * chore(e2e): add reporting to cloud dockerfile Co-authored-by: Cubone21 <kyuboun@gmail.com>
2020-08-05 15:22:09 +00:00
console.log("DEBUG chromeUserPreferences " + JSON.stringify(chromeUserPreferences));
2020-05-13 20:49:31 +00:00
if(__config.window_size){
windowSize.width = parseInt(__config.window_size.width);
windowSize.height = parseInt(__config.window_size.height);
}
console.log("DEBUG windowSize " + JSON.stringify(windowSize));
let logPrefs = new logging.Preferences();
logPrefs.setLevel(logging.Type.BROWSER, logging.Level.ALL);
logPrefs.setLevel(logging.Type.DRIVER, logging.Level.INFO);
let chromeArguments = ['--no-sandbox'];
if(__config.sel_docker){
chromeArguments.push('--disable-dev-shm-usage')
}
if(__config.headless) {
caps.set('applicationCacheEnabled', false);
switch (__config.browser.toLowerCase()) {
case "chrome":
global.__wdriver = new Builder()
.withCapabilities(caps)
.forBrowser(__config.browser)
.setChromeOptions(new chrome.Options().headless()
.addArguments(chromeArguments)
.setUserPreferences(chromeUserPreferences)
.setLoggingPrefs(logPrefs)
.windowSize({width: windowSize.width, height: windowSize.height}))
.build();
break;
case "firefox":
global.__wdriver = new Builder()
.forBrowser(__config.browser)
.setFirefoxOptions(new ffox.Options().headless().windowSize({width: windowSize.width,
height: windowSize.height}))
.build();
break;
}
}else{
switch (__config.browser.toLowerCase()) {
case "chrome":
global.__wdriver = new Builder()
.withCapabilities(caps)
.forBrowser(__config.browser)
.setChromeOptions(new chrome.Options().addArguments("--incognito")
.addArguments(chromeArguments)
.setUserPreferences(chromeUserPreferences)
.setLoggingPrefs(logPrefs)
.windowSize({width: windowSize.width, height: windowSize.height}))
.build();
break;
case "firefox":
global.__wdriver = new Builder()
.withCapabilities(caps)
.forBrowser(__config.browser)
.build();
break;
}
}
__wdriver.manage().setTimeouts({implicit: 3000});
chore(e2e): update selectors and add containerization (#19221) * update: patch in tests from bonitoo-io/selenium-accept-infl2 * fix: add dataExplorer.feature - forgotten yesterday * update: refactor e2e test configuration * update: set actual cloud credentials in config * fix: issue with headless switch in config * update: WIP cloud experim and refactoring to use client libs * update: sync variablesTab with upstream changes * fix: clumsy use of resultObserver without promise * fix: troubleshoot merge issue * wip: Refactor using client APIs. * wip: refactoring tests with new client API * update: tokens tests * wip: fixing variables tests * fix: selectors for settings variables tests * update: update selectors for dashboards and cellEdit * e2e(fix): update selectors for generic popup * e2e(fix): fix note cell test * e2e(circleci): try and force nightly build * e2e(circleci): try and force nightly build bis * e2e(circleci): troubleshoot build issues * e2e(circleci): fix type * e2e(circleci): check circleci build * e2e(circleci): troubleshoot build failure * e2e(circleci): troubleshout circleci build * e2e(circleci): troubleshoot circleci build issues * e2e(circleci): troubleshoot build schedule * e2e(update): wip updating alerts selectors * e2e(circleci): troubleshoot reporting from tests * e2e(update): fix alert selectors - WIP * e2e(circleci): troubleshoot reporting issues in circleci * e2e(update): monitoring selector fixes * e2e(circleci): troubleshoot reporting issues * e2e(update): fix monitoring selectors * e2e(circleci): change cron trigger schedule for bonitoo * e2e(config): add ENV to declare username * test: add semantic commit * e2e: remove debug lines from old config.yml * fix(temp): remove bonitoo workflow from config.yml * fix(e2e): reset cron for hourly-e2e to original values * dataExplorer.feature new scenarios * fix(e2e): generalize urls in telegraf asserts * fix(e2e): troubleshoot circleci build * fix: update .circleci/config.yml nightly acceptance test and sync with upstream * fix(e2e): troubleshoot network issues on jenkins * fix(e2): troubleshoot jenkins failures * fix(e2e): troubleshoot jenkins issues * fix(e2e): troubleshoot jenkins failures * fix(e2e): troubleshoot test issues - change page load strategy * fix(e2e): troubleshoot build issues * fix(e2e): troubleshoot build issues * fix(e2e): add paranoia checks on using UI signin * fix(e2e): troubleshoot test issues * fix(e2e): change handling of env params * fix(e2e): troubleshoot signin stale elem issue * fix(e2e): typo * fix(e2e): synch selectors with recent UI changes * fix(e2e): update check for stale element on signin * fix(e2e): fine tune retry on stale element signin * fix(e2e): lengthen signin retry * fix(e2): try second stale element workaround * fix(e2): attempt to workaround stale element * fix(e2): try cruder solution to stale element on sign in * fix(e2): lengthen timeout for signing page load * fix(e2e): clear notifications before save in dataexplorer * fixes(e2e): update variables button selector * fix(e2e): cleanup data explorer test variable - from browser * fixes(e2e): stash experim changes to cucumber.js * fixes(e2e): troubleshoot deadman check failure * fix(e2e): stash cucumber.js * fix(e2e): update selectors for telegraf delete * fixes(e2e): extend timeout for input to monaco * fixes(e2e): troubleshoot timeout issue on paste into monaco * fixes(e2e): safety commit containerize * fixes(e2e): generic page header no longer applies - temp fix * fixes(e2e): changes to headers temp fixes * chore(e2e): stash acceptance test containerize work * chore(e2e): clean debug messages * feat(e2e): commandline args in containerized test script * fixes(e2e): add junit report generation to container script * fixes(e2e): set delay for selenoid startup * fixes(e2e): stop docker containers after tests * fix(e2e): drop bonitoo argv args before cucumber calls ArgvParser * chore(e2e): update README and remove experim naming * fix(e2e): troubleshoot occasional flake in notification assertions * feat(e2e): add simple performance utility for cloud * feat(e2e): tweek performance util * feat(e2e): start cloud testing with containerized tests * fix(e2e): halt script on unset required params * fix(e2e): remove messages that could leak info * fix(e2e): troubleshoot jenkins credentials * fix(e2e): troubleshoot parameter issues in jenkins * fix(e2e): cleanup troubleshoot code * fix(e2e): update create variables popup selector * fix(e2e): update submit button for template popup * fix(e2e): update selectors for data tokens tests * fix(e2e): sync alerts tests with recent changes * chore(e2e): add cloud specific Dockerfile * chore(e2e): add reporting to cloud dockerfile Co-authored-by: Cubone21 <kyuboun@gmail.com>
2020-08-05 15:22:09 +00:00
//__wdriver.setFileDetector(LocalFileDetector);
2020-05-13 20:49:31 +00:00
__wdriver.executor_.w3c = true;
console.log("DEBUG __wdriver: " + JSON.stringify(__wdriver));
module.exports = {
'default': common + '--format summary --format node_modules/cucumber-pretty --format json:report/cucumber_report.json',
dry: common + '--dry-run',
progress: common + '--format progress'
};