chore: fix flaky lexical test (#11035)

The "select decoratorNodes" test was flaky, as it often selected the relationship block node with a relationship to "payload.jpg", instead of the upload node for "payload.jpg", depending on which node loaded first.

This PR ensures it waits for all blocks to be loaded, and updates the selector to specifically target the upload node
This commit is contained in:
Alessio Gravili
2025-02-06 20:24:49 -07:00
committed by GitHub
parent 098fe10ade
commit 04dad9d7a6
3 changed files with 13 additions and 3 deletions

View File

@@ -881,6 +881,7 @@ export interface TextField {
fieldWithDefaultValue?: string | null;
dependentOnFieldWithDefaultValue?: string | null;
hasMany?: string[] | null;
readOnlyHasMany?: string[] | null;
validatesHasMany?: string[] | null;
localizedHasMany?: string[] | null;
withMinRows?: string[] | null;
@@ -3243,6 +3244,7 @@ export interface TextFieldsSelect<T extends boolean = true> {
fieldWithDefaultValue?: T;
dependentOnFieldWithDefaultValue?: T;
hasMany?: T;
readOnlyHasMany?: T;
validatesHasMany?: T;
localizedHasMany?: T;
withMinRows?: T;