Tools
This rule prevents the usage of .ink-*
hardcoded classes. These class names are a part of a private API used internally for the Ink library, and are being deprecated. Instead, use Ink components themselves to ensure compatibility with future versions of the library.
Recommended Severity: error
All components and tests making use of .ink-*
classes.
Don't
Don't use 'ink-*' classes as selectors in your testing code.
Do
Use the component itself as a selector or use the content/role to select the component
Don't
Don't use 'ink-*' classes as selectors in your testing code.
Do
Use the component itself as a selector or use the content/role to select the component
Don't
Use the internal 'ink-*' class to build a component
Do
Use the ink component directly
Don't
Use the internal 'ink-*' class to build a component
Do
Use the ink component directly
Is this page helpful?