DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.08k stars 380 forks source link

Cypress E2E Material-UI #1907

Closed cavr closed 5 years ago

cavr commented 5 years ago

Is there an easy way to use Cypress? I am having problems with selectors when testing DataGrid using Cypress?

SergeyAlexeev commented 5 years ago

Hi,

Would you please clarify what template suite you are using: Bootstrap 3/4 or Material-UI?

I am having problems with selectors

I suppose it's Material-UI. If so, I'd like to point that Material-UI components are created based on JSS. That's why html element class names are dynamic:

image

I've found the related issue in cypress repo.

Did you try TestCafe for end-to-end testing? There is a plugin that makes it easier to test React components. Moreover, TestCafé Studio contains an integrated Visual Test Recorder, which allows you to specify a particular selector for an html element. For example, you can select an element by a class name, tag name or attribute.

cavr commented 5 years ago

@SergeyAlexeev Yes I'm using Material-UI. I will try TestCafe instead because using Cypress is imposible at the moment. Thanks.

lock[bot] commented 5 years ago

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.