Skip to content

Commit

Permalink
fix: [ANDROAPP-6667] Add field to warning list for warning on complet…
Browse files Browse the repository at this point in the history
…e rule
  • Loading branch information
xavimolloy authored and mmmateos committed Dec 11, 2024
1 parent 749bfe9 commit 6a70824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ class RulesUtilsProviderImpl(
val message = warningOnCompletion.content() + " " + data
if (model != null) {
fieldViewModels[fieldUid] = model.setWarning(message)
fieldsWithWarnings.add(
FieldWithError(fieldUid, message),
)
}

messageOnComplete = message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ class RulesUtilsProviderImplTest {

assertEquals(testFieldViewModels[testingUid]!!.warning, "content data")
assertTrue(result.messageOnComplete == "content data")
assertTrue(result.fieldsWithWarnings.isNotEmpty())
assertTrue(result.canComplete)
}

Expand Down

0 comments on commit 6a70824

Please sign in to comment.