Devextreme-reactive: Cypress E2E Material-UI

Created on 13 Mar 2019  路  3Comments  路  Source: DevExpress/devextreme-reactive

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

question

Most helpful comment

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.

All 3 comments

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.

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

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.

Was this page helpful?
0 / 5 - 0 ratings