Const
Widget-scoped test ID generators using the createWidgetTestId helper. These provide consistent, hierarchical test IDs for each widget.
Usage:
import { SECURITY_LEVEL_WIDGET_IDS } from '../constants/testIds';<div data-testid={SECURITY_LEVEL_WIDGET_IDS.root}> <section data-testid={SECURITY_LEVEL_WIDGET_IDS.section('confidentiality')}> <button data-testid={SECURITY_LEVEL_WIDGET_IDS.button('view-details')}> </section></div> Copy
import { SECURITY_LEVEL_WIDGET_IDS } from '../constants/testIds';<div data-testid={SECURITY_LEVEL_WIDGET_IDS.root}> <section data-testid={SECURITY_LEVEL_WIDGET_IDS.section('confidentiality')}> <button data-testid={SECURITY_LEVEL_WIDGET_IDS.button('view-details')}> </section></div>
Widget-scoped test ID generators using the createWidgetTestId helper. These provide consistent, hierarchical test IDs for each widget.
Usage: