Update chromedriver to 77 (#45614)

* bump chromedriver to v77

* fix file import
This commit is contained in:
Dmitry Lemeshko 2019-09-18 17:34:12 +02:00 committed by GitHub
parent 30a1730bf2
commit 9a652ce2a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 18 deletions

View file

@ -360,7 +360,7 @@
"chance": "1.0.18",
"cheerio": "0.22.0",
"chokidar": "3.0.2",
"chromedriver": "^76.0.0",
"chromedriver": "^77.0.0",
"classnames": "2.2.6",
"dedent": "^0.7.0",
"delete-empty": "^2.0.0",

View file

@ -564,12 +564,8 @@ export function SettingsPageProvider({ getService, getPageObjects }) {
log.debug(`Clicking importObjects`);
await testSubjects.click('importObjects');
log.debug(`Setting the path on the file input`);
if (browser.isW3CEnabled) {
const input = await find.byCssSelector('.euiFilePicker__input');
await input.type(path);
} else {
await find.setValue('.euiFilePicker__input', path);
}
const input = await find.byCssSelector('.euiFilePicker__input');
await input.type(path);
if (!overwriteAll) {
log.debug(`Toggling overwriteAll`);

View file

@ -16,7 +16,6 @@ export function GisPageProvider({ getService, getPageObjects }) {
const find = getService('find');
const queryBar = getService('queryBar');
const comboBox = getService('comboBox');
const browser = getService('browser');
function escapeLayerName(layerName) {
return layerName.split(' ').join('_');
@ -482,12 +481,8 @@ export function GisPageProvider({ getService, getPageObjects }) {
async uploadJsonFileForIndexing(path) {
log.debug(`Setting the path on the file input`);
if (browser.isW3CEnabled) {
const input = await find.byCssSelector('.euiFilePicker__input');
await input.type(path);
} else {
await find.setValue('.euiFilePicker__input', path);
}
const input = await find.byCssSelector('.euiFilePicker__input');
await input.type(path);
log.debug(`File selected`);
await PageObjects.header.waitUntilLoadingHasFinished();

View file

@ -7609,10 +7609,10 @@ chrome-trace-event@^1.0.2:
dependencies:
tslib "^1.9.0"
chromedriver@^76.0.0:
version "76.0.0"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-76.0.0.tgz#cbf618c5b370799ff6e15b23de07e80f67f89025"
integrity sha512-jGyqs0N+lMo9iaNQxGKNPiLJWb2L9s2rwbRr1jJeQ37n6JQ1+5YMGviv/Fx5Z08vBWYbAvrKEzFsuYf8ppl+lw==
chromedriver@^77.0.0:
version "77.0.0"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-77.0.0.tgz#bd916cc87a0ccb7a6e4fb4b43cb2368bc54db6a0"
integrity sha512-mZa1IVx4HD8rDaItWbnS470mmypgiWsDiu98r0NkiT4uLm3qrANl4vOU6no6vtWtLQiW5kt1POcIbjeNpsLbXA==
dependencies:
del "^4.1.1"
extract-zip "^1.6.7"