Update `createFlash` and `flash` test selectors
What does this MR do and why?
This update adds data-testid
to find flash errors and messages in feature tests.
Why this change?
This change has two goals:
- Move away from using CSS classes selectors in our tests and in favor of
data-testid
attribute selectors. - The MR (!77656 (merged)) that replaces the flash implementation in favor a gl alerts with feature flags that are enabled requires the new selectors to pass.
Screenshots or screen recordings
NA
How to set up and validate locally
A passing pipeline validates this change.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #227846 (closed)
Edited by Miguel Rincon