Skip to content

Update `createFlash` and `flash` test selectors

Miguel Rincon requested to merge 227846-update-test-selectors-create-flash into master

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:

  1. Move away from using CSS classes selectors in our tests and in favor of data-testid attribute selectors.
  2. 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.

Related to #227846 (closed)

Edited by Miguel Rincon

Merge request reports

Loading