diff --git a/features/step_definitions/app.js b/features/step_definitions/app.js index adf9213..2387b7b 100644 --- a/features/step_definitions/app.js +++ b/features/step_definitions/app.js @@ -57,6 +57,7 @@ module.exports = function () { // Write code here that turns the phrase above into concrete actions const fileToUpload = './features/bdd-test.png'; const absolutePath = path.resolve(__dirname, fileToUpload); + console.log('path:',absolutePath); driver.findElement(by.css('input[type=file]')).sendKeys(absolutePath); callback(); }); @@ -90,7 +91,7 @@ module.exports = function () { // Write code here that turns the phrase above into concrete actions setTimeout(function(){ callback(null, 'pending'); - }, 11000); + }, 21000); }); diff --git a/src/index.js b/src/index.js index 4f74aa2..a91730f 100644 --- a/src/index.js +++ b/src/index.js @@ -6,6 +6,7 @@ import lsManager from './utils/lsManager'; import $ from './utils/elementSelector'; import FEgine from './utils/fariaEngine'; import blockContainer from'./utils/blockContainer'; +import imputer from './utils/imputer'; let imgContainer = document.querySelector('#app .root .block-container .mainPanel .shape'); let inputImg = document.querySelector('#app .root .block-container .mainPanel .shape .photo'); diff --git a/src/utils/cloudnary.js b/src/utils/cloudnary.js index 0e1a8bb..b05ea47 100644 --- a/src/utils/cloudnary.js +++ b/src/utils/cloudnary.js @@ -25,7 +25,7 @@ export default class Cloudnary { let theurl =""; formData.append('file',file); formData.append('upload_preset',this.uploadPreset); - console.log(this.params); + //console.log(this.params); fetch(this.url, { method: 'POST', @@ -71,7 +71,7 @@ export default class Cloudnary { //let fileType = fileInput.files[0].name.match(/.(jpg|jpeg|png|gif)$/i); reader.readAsDataURL(file); //reads the data as a URL } else { - console.warn('no image selected'); + //console.warn('no image selected'); preview.src = "assets/images/shape-one.jpg"; } } diff --git a/src/utils/imputer.js b/src/utils/imputer.js index 13a9831..983582c 100644 --- a/src/utils/imputer.js +++ b/src/utils/imputer.js @@ -1,3 +1,5 @@ +import FEgine from './fariaEngine'; +/** @jsx FEgine.h */ export default class imputer { constructor() { @@ -5,26 +7,31 @@ export default class imputer { static mount(iType,iName, iID, iClass,iTtitle,iImage="assets/images/shape-one.jpg",iIcon, iReq=false){ let required = (iReq)?"required":""; + let mount; switch (iType){ case 'text': - return '
'+ - ''+ - ''+ - ''+ - '
'; + return ( +
+ + + +
+ + ); break; case 'upload': - return '
'+ - ''+ - '
'+ - ''+iTtitle+''+ - '
'+ - '
'+ - '
'+ - ''+iTtitle+''+ - '
'+ - ''+ - '
'; + return (
+ +
+ {iTtitle} +
+
+
+ {iTtitle}/ +
+ +
+ ); break; default: break;