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

Ionic clicks in collection-view #196

Closed
valburyakov opened this issue Dec 15, 2016 · 1 comment
Closed

Ionic clicks in collection-view #196

valburyakov opened this issue Dec 15, 2016 · 1 comment

Comments

@valburyakov
Copy link

Hello, i've tried to setup e2e testing in our ionic2/angulr2 project by this example. And i faced the problem that click or tap doesn't work with collection-view items:
let product = element(by.cssContainingText('.product-item', 'Produktserien'));
product.click() or browser.touchActions().tap(product).perform()
And i have to set browser.ignoreSynchronization = true because with it protractor begin to hang.
Even with sleeps and waitForClickable it won't work. Mb someone faced with the same issue and is there some workaround?

<collection-view-page class="ion-page show-page" style="z-index: 116;">
...
<inventory ng-reflect-products-list="" ng-reflect-categories-list="[object Object],[object Object],[object Object],[object Object]"><div class="inventory-wrapper">
  <div class="scroll">
    <categories-tree ng-reflect-categories-list="[object Object],[object Object],[object Object],[object Object]"><div class="products-holder">
  <!--template bindings={
  "ng-reflect-ng-for-of": "[object Object],[object Object],[object Object],[object Object]"
}-->
<!--template bindings={}-->
<div class="product-item" [ng-reflect-ng-style="[object](url) Object]" style="touch-action: pan-y; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); order: 0;">
      <div class="img-holder" ng-reflect-ng-style="[object Object]" style="background-color: rgb(156, 203, 129);">
        <!--template bindings={
            "ng-reflect-ng-if": null
            }-->
        <p class="item-placeholder">Produktserien</p>
        <span class="first-bg" ng-reflect-ng-style="[object Object]" style="background-color: rgb(156, 203, 129);"></span>
        <span class="second-bg" ng-reflect-ng-style="[object Object]" style="background-color: rgb(156, 203, 129);"></span>
      </div>
      <p class="item-name"><span>Produktserien</span></p>
</div>
...
@lathonez
Copy link
Owner

See #191

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

2 participants