fix e2e edit avatar in firefox

stable
Juanfran 2015-10-06 12:34:17 +02:00
parent a95bf5ecad
commit 797f27b9d5
1 changed files with 2 additions and 0 deletions

View File

@ -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());
};