Skip to content

Commit

Permalink
fix: [ANDROAPP-6101] Do not allow to save form with errors in complet…
Browse files Browse the repository at this point in the history
…ed events (#3696)

* fix: [ANDROAPP-6101] Do not show save anyway button if there are errors, only with warnings

* ci: [ANDROAPP-6101] Ignore Compose table flaky
  • Loading branch information
xavimolloy authored Jun 26, 2024
1 parent e6d031d commit afda088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class ConfigureEventCompletionDialog(
!canComplete && onCompleteMessage != null,
)
val mainButton = getMainButton(dialogType, eventState)
val secondaryButton = if (canSkipErrorFix || eventState == EventStatus.COMPLETED) {
val secondaryButton = if (canSkipErrorFix || dialogType == WARNING) {
EventCompletionButtons(
SecondaryButton(if (eventState == EventStatus.COMPLETED) provider.provideSaveAnyway() else provider.provideNotNow()),
SecondaryButton(provider.provideNotNow()),
FormBottomDialog.ActionType.FINISH,
)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class CellTableTest {
}
}

@Ignore("Flaky test, to be resolved in a separate ticket")
@Test
fun shouldUpdateValueWhenTypingInComponent() {
tableRobot(composeTestRule) {
Expand Down

0 comments on commit afda088

Please sign in to comment.