-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Acceptance Testing #1973
Comments
I don't know what is the best way to do fonctionnal testing. However I can expose you how I'm doing it. As you said, the challenge is regarding selecting elements. To do it I'm adding |
sounds interesting, are you just putting that property directly on the MUI React component?
|
Yes, like this. |
See #3330. |
Hi,
first thanks for an awesome implementation!
And keeping upto date so fast, cool.
Anyway, I'm wondering what the best practices are for identifying dom elements for acceptance testing?
I'm using nightwatch but would be the same for protractor, fitness etc ...
I can't seem to find a way of setting ids on the components ? which may not be the best way to go anyway and I'v been moving more to adding html5 test attributes (testId=something) on elements to keep the ids seperate...
I'm having to set a BEM style name on the class attribute
contentClassName="login__dialog"
which I can then query in my testsclient.expect.element('.login__dialog').to.be.present.before(500);
What is the best practice for this?
Setting a classname feels a bit spooky, not having an id I can understand, but not having a way of setting say a html5 attribute for testing purposes is kind of challenging ...
Look forward to your replies,
Stephen.
The text was updated successfully, but these errors were encountered: