I am trying to run my e2e tests in docker image via circle ci.
Out of 7 tests, 6 tests are failing and 1 test is passing. But when I ran them locally all tests are passing.
This is the error I am getting
✗ Should Display Dashboard Header and Loan Information
- Failed: No element found using locator: By(css selector, h3[class="sprk-b-TypeDisplayFour sprk-o-Stack__item sprk-u-Color--white"])
at elementArrayFinder.getWebElements.then (/home/circleci/project/node_modules/protractor/built/element.js:814:27)
at ManagedPromise.invokeCallback_ (/home/circleci/project/node_modules/selenium-webdriver/lib/promise.js:1376:14)
at TaskQueue.execute_ (/home/circleci/project/node_modules/selenium-webdriver/lib/promise.js:3084:14)
at TaskQueue.executeNext_ (/home/circleci/project/node_modules/selenium-webdriver/lib/promise.js:3067:27)
at asyncRun (/home/circleci/project/node_modules/selenium-webdriver/lib/promise.js:2927:27)
at /home/circleci/project/node_modules/selenium-webdriver/lib/promise.js:668:7
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)Error
at ElementArrayFinder.applyAction_ (/home/circleci/project/node_modules/protractor/built/element.js:459:27)
at ElementArrayFinder.(anonymous function).args [as getText] (/home/circleci/project/node_modules/protractor/built/element.js:91:29)
at ElementFinder.(anonymous function).args [as getText] (/home/circleci/project/node_modules/protractor/built/element.js:831:22)
at Dashboard.getDashboardHeaderText (/home/circleci/project/e2e/app/loan/dashboard/dashboard.po.ts:47:41)
at Object.<anonymous> (/home/circleci/project/e2e/app/loan/dashboard/dashboard.e2e-spec.ts:18:30)
at step (/home/circleci/project/node_modules/tslib/tslib.js:133:27)
at Object.next (/home/circleci/project/node_modules/tslib/tslib.js:114:57)
at /home/circleci/project/node_modules/tslib/tslib.js:107:75
at new Promise (<anonymous>)
at Object.__awaiter (/home/circleci/project/node_modules/tslib/tslib.js:103:16)
From: Task: Run it("Should Display Dashboard Header and Loan Information") in control flow
at UserContext.<anonymous> (/home/circleci/project/node_modules/jasminewd2/index.js:94:19)
at
all other tests are also failing with the same error element not found.