Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests not working if page contains Lottie file. #51

Open
ravi-pandit14 opened this issue Jun 10, 2019 · 2 comments
Open

E2E tests not working if page contains Lottie file. #51

ravi-pandit14 opened this issue Jun 10, 2019 · 2 comments

Comments

@ravi-pandit14
Copy link

We are facing an issue with E2E Tests. E2E tests are not executed successfully, if page have Lottie file.

We have created this repository to replicate the issue easily. Repository

using package.json dependencies:

"e2e": "npm run e2e-update && npm run e2e-test",
"e2e-ci": "npm run e2e-update && npm run e2e-test --single-run",
"e2e-test": "protractor ./test-config/protractor.conf.js",
"e2e-update": "webdriver-manager update --standalone true --gecko true"
"devDependencies": {
    "@ionic/app-scripts": "3.2.1",
    "@types/node": "^12.0.2",
    "@types/jasmine": "^2.8.9",
    "connect": "^3.7.0",
    "jasmine": "^3.4.0",
    "jasmine-spec-reporter": "^4.2.1",
    "protractor": "^5.4.2",
    "ts-node": "^8.1.0",
    "typescript": "~2.6.2"
  },

 "protractor-jasmine2-screenshot-reporter": "^0.5.0",
 "ionic-angular": "3.9.3",
 "ng-lottie": "^0.3.2",
 "rxjs": "5.5.11",
@BeforeuCode
Copy link

BeforeuCode commented Jul 23, 2019

Same here. Protractor tests are stopping. Have someone dealt with it?

It is happening only when animation is running so if you remove autoloop tests will resume after first loop

@steffinchen
Copy link

We've run into the same issue. It seems protractor doesn't recognize the page as being stable when animations are running (or it waits for some interval to complete).

We first tried to use Protractor's 'waitForAngularEnabled' set to false, which kinda worked, but then it also doesn't wait for any Angular $timeout and similar to resolve, so that's whole other can of worms, and just made things worse.

In the end, we opted to turn off loop / autoplay for lottie animations via a separate environment config for E2E tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants