From 797f27b9d5f27acff661631ef3b102f8ecde0761 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Tue, 6 Oct 2015 12:34:17 +0200 Subject: [PATCH] fix e2e edit avatar in firefox --- e2e/utils/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/utils/common.js b/e2e/utils/common.js index fe3a1cb2..e0229356 100644 --- a/e2e/utils/common.js +++ b/e2e/utils/common.js @@ -314,11 +314,13 @@ common.goToFirstIssue = async function() { common.uploadFile = async function(inputFile, filePath) { let toggleInput = function() { $(arguments[0]).toggle(); + $(arguments[0]).removeClass('hidden'); }; let absolutePath = path.resolve(process.cwd(), 'e2e', filePath); await browser.executeScript(toggleInput, inputFile.getWebElement()); + await inputFile.sendKeys(absolutePath); await browser.executeScript(toggleInput, inputFile.getWebElement()); };