Skip to main content

Variable: snackbarLocator

const snackbarLocator: PartLocator

Defined in: packages/component-driver-angular-material-v22/src/components/SnackbarDriver.ts:23

Canonical scene locator for SnackbarDriver: the <mat-snack-bar-container> element MatSnackBar renders. The service offers no data-testid/ARIA identity hook on the container, and only one snackbar shows at a time (opening a new one dismisses the previous), so the component tag — Material's public selector — is the stable anchor.