Commit adcc396
Fix alerting dashboards multi-index update tests failing without security (#2125)
Break the Cypress command chain between .type() and .trigger('blur') in
the "to have multiple indices" tests. Typing {enter} into the index
combo box triggers a React re-render that detaches the input element,
causing the chained .trigger('blur') to fail with a stale DOM reference.
Re-querying the element with cy.get('#index') after the type command
ensures Cypress operates on the newly-rendered input.
Resolves opensearch-project/alerting-dashboards-plugin#1492
Signed-off-by: Vikhyat Khare <kvikhy@amazon.com>
(cherry picked from commit 46edba2)
Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com>1 parent bdbc224 commit adcc396
2 files changed
Lines changed: 10 additions & 4 deletions
File tree
- cypress/integration/plugins/alerting-dashboards-plugin
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
358 | 361 | | |
359 | 362 | | |
360 | 363 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
0 commit comments