jhipster / generator-jhipster-ionic

Ionic for JHipster ✨

Home Page:https://developer.okta.com/blog/2022/05/12/ionic-angular-jhipster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

e2e tests don't compile when including an image

mraible opened this issue · comments

Steps to reproduce are in this demo script.

photo.e2e-spec.ts doesn’t compile - because an image variable is not found. Adding a const to the top to fixes it.

// https://www.w3docs.com/snippets/html/how-to-display-base64-images-in-html.html
const image = 'iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4\n' +
  '        //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==';

Next issue is in photo.po.ts. “image” field not found, setting to “fileInput” in doesn’t work

Run failed (e2e):

Protractor e2e failed

figuring out...

It looks like the e2e command is still calling Protractor and trying to download Webdriver.

Yes, this is solving mobile-jhipster problem.

Solved by #639.