If there is a data-l10n attribute that can be used instead, that should be preferred, so that the test does not depend on a specific localization.