PM-22310: Replace Ok with Okay (#5298)

This commit is contained in:
David Perez
2025-06-02 22:54:47 +00:00
committed by GitHub
parent 891def5e32
commit a3d2e51c8e
42 changed files with 77 additions and 77 deletions
@@ -64,6 +64,6 @@ class BitwardenAutofillTileService : TileService() {
AlertDialog.Builder(this)
.setMessage(R.string.autofill_tile_accessibility_required)
.setCancelable(true)
.setPositiveButton(R.string.ok) { dialog, _ -> dialog.cancel() }
.setPositiveButton(R.string.okay) { dialog, _ -> dialog.cancel() }
.create()
}
@@ -44,7 +44,7 @@ fun BitwardenBasicDialog(
onDismissRequest = onDismissRequest,
confirmButton = {
BitwardenTextButton(
label = stringResource(id = R.string.ok),
label = stringResource(id = R.string.okay),
onClick = onDismissRequest,
modifier = Modifier.testTag(tag = "AcceptAlertButton"),
)
@@ -122,7 +122,7 @@ fun BitwardenDateSelectButton(
onDismissRequest = { shouldShowDialog = false },
confirmButton = {
BitwardenTextButton(
label = stringResource(id = R.string.ok),
label = stringResource(id = R.string.okay),
onClick = {
onDateSelect(
ZonedDateTime
@@ -20,7 +20,7 @@ fun BitwardenOverwritePasskeyConfirmationDialog(
BitwardenTwoButtonDialog(
title = stringResource(id = R.string.overwrite_passkey),
message = stringResource(id = R.string.this_item_already_contains_a_passkey_are_you_sure_you_want_to_overwrite_the_current_passkey),
confirmButtonText = stringResource(id = R.string.ok),
confirmButtonText = stringResource(id = R.string.okay),
dismissButtonText = stringResource(id = R.string.cancel),
onConfirmClick = onConfirmClick,
onDismissClick = onDismissRequest,
@@ -58,7 +58,7 @@ fun BitwardenTextEntryDialog(
},
confirmButton = {
BitwardenTextButton(
label = stringResource(id = R.string.ok),
label = stringResource(id = R.string.okay),
onClick = { onConfirmClick(text) },
modifier = Modifier.testTag("AcceptAlertButton"),
)
@@ -67,7 +67,7 @@ fun BitwardenTimePickerDialog(
confirmButton = {
BitwardenTextButton(
modifier = Modifier.testTag(tag = "AcceptAlertButton"),
label = stringResource(id = R.string.ok),
label = stringResource(id = R.string.okay),
onClick = { onTimeSelect(timePickerState.hour, timePickerState.minute) },
)
},
@@ -543,7 +543,7 @@ private fun SessionTimeoutRow(
BitwardenTwoButtonDialog(
title = stringResource(id = R.string.warning),
message = stringResource(id = R.string.never_lock_warning),
confirmButtonText = stringResource(id = R.string.ok),
confirmButtonText = stringResource(id = R.string.okay),
dismissButtonText = stringResource(id = R.string.cancel),
onConfirmClick = {
shouldShowNeverTimeoutConfirmationDialog = false
@@ -287,7 +287,7 @@ private fun LoginApprovalDialogs(
is LoginApprovalState.DialogState.ChangeAccount -> BitwardenTwoButtonDialog(
title = stringResource(id = R.string.log_in_requested),
message = state.message(),
confirmButtonText = stringResource(id = R.string.ok),
confirmButtonText = stringResource(id = R.string.okay),
dismissButtonText = stringResource(id = R.string.cancel),
onConfirmClick = onConfirmChangeAccount,
onDismissClick = onDismissChangeAccount,
@@ -156,7 +156,7 @@ private fun AppearanceDialogs(
message = stringResource(
id = R.string.dynamic_colors_may_not_adhere_to_accessibility_guidelines,
),
confirmButtonText = stringResource(R.string.ok),
confirmButtonText = stringResource(R.string.okay),
dismissButtonText = stringResource(R.string.cancel),
onConfirmClick = onConfirmEnableDynamicColorsClick,
onDismissClick = onDismissDialog,
@@ -295,7 +295,7 @@ fun VaultAddEditScreen(
BitwardenTwoButtonDialog(
title = stringResource(id = R.string.delete),
message = stringResource(id = R.string.do_you_really_want_to_soft_delete_cipher),
confirmButtonText = stringResource(id = R.string.ok),
confirmButtonText = stringResource(id = R.string.okay),
dismissButtonText = stringResource(id = R.string.cancel),
onConfirmClick = {
pendingDeleteCipher = false
@@ -94,7 +94,7 @@ fun AttachmentItemContent(
onDismissRequest = { shouldShowPremiumWarningDialog = false },
confirmButton = {
BitwardenTextButton(
label = stringResource(R.string.ok),
label = stringResource(R.string.okay),
onClick = { shouldShowPremiumWarningDialog = false },
)
},
@@ -296,7 +296,7 @@ private fun VaultItemDialogs(
BitwardenTwoButtonDialog(
title = stringResource(id = R.string.delete),
message = dialog.message.invoke(),
confirmButtonText = stringResource(id = R.string.ok),
confirmButtonText = stringResource(id = R.string.okay),
dismissButtonText = stringResource(id = R.string.cancel),
onConfirmClick = onConfirmDeleteClick,
onDismissClick = onDismissRequest,
@@ -319,7 +319,7 @@ private fun VaultItemDialogs(
VaultItemState.DialogState.RestoreItemDialog -> BitwardenTwoButtonDialog(
title = stringResource(id = R.string.restore),
message = stringResource(id = R.string.do_you_really_want_to_restore_cipher),
confirmButtonText = stringResource(id = R.string.ok),
confirmButtonText = stringResource(id = R.string.okay),
dismissButtonText = stringResource(id = R.string.cancel),
onConfirmClick = onConfirmRestoreAction,
onDismissClick = onDismissRequest,
+1 -1
View File
@@ -50,7 +50,7 @@
<string name="no">No</string>
<string name="notes">Notes</string>
<string name="private_notes">Private notes</string>
<string name="ok">Ok</string>
<string name="okay">Okay</string>
<string name="password">Password</string>
<string name="save">Save</string>
<string name="move">Move</string>
@@ -152,7 +152,7 @@ class SetupAutofillScreenTest : BitwardenComposeTest() {
.onNode(isDialog())
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(SetupAutoFillAction.DismissDialog) }
@@ -607,7 +607,7 @@ class SetupUnlockScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -130,7 +130,7 @@ class CompleteRegistrationScreenTest : BitwardenComposeTest() {
)
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(ErrorDialogDismiss) }
@@ -189,7 +189,7 @@ class CreateAccountScreenTest : BitwardenComposeTest() {
)
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(CreateAccountAction.ErrorDialogDismiss) }
@@ -160,7 +160,7 @@ class EnterpriseSignOnScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.assert(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
}
@@ -196,7 +196,7 @@ class EnterpriseSignOnScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(EnterpriseSignOnAction.DialogDismiss) }
@@ -108,7 +108,7 @@ class EnvironmentScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.assert(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
}
@@ -121,7 +121,7 @@ class EnvironmentScreenTest : BitwardenComposeTest() {
)
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(EnvironmentAction.DialogDismiss) }
@@ -401,7 +401,7 @@ class LandingScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.assert(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
}
@@ -417,7 +417,7 @@ class LandingScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(LandingAction.DialogDismiss) }
@@ -76,7 +76,7 @@ class LoginWithDeviceScreenTest : BitwardenComposeTest() {
)
}
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.assert(hasAnyAncestor(isDialog()))
.performClick()
verify {
@@ -93,7 +93,7 @@ class MasterPasswordHintScreenTest : BitwardenComposeTest() {
)
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify { viewModel.trySendAction(MasterPasswordHintAction.DismissDialog) }
@@ -155,7 +155,7 @@ class StartRegistrationScreenTest : BitwardenComposeTest() {
)
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(StartRegistrationAction.ErrorDialogDismiss) }
@@ -574,7 +574,7 @@ class VaultUnlockScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -810,7 +810,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
@@ -868,7 +868,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -935,7 +935,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
}
@@ -974,7 +974,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
.performClick()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -1005,7 +1005,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
.performClick()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -1015,7 +1015,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
.isDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -1388,7 +1388,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -127,7 +127,7 @@ class DeleteAccountScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -118,7 +118,7 @@ class DeleteAccountConfirmationScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -118,7 +118,7 @@ class LoginApprovalScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -147,7 +147,7 @@ class LoginApprovalScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onNodeWithText(text = "Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -180,7 +180,7 @@ class AppearanceScreenTest : BitwardenComposeTest() {
mutableStateFlow.update {
it.copy(dialogState = AppearanceState.DialogState.EnableDynamicColors)
}
composeTestRule.onAllNodesWithText("Ok")
composeTestRule.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify { viewModel.trySendAction(AppearanceAction.ConfirmEnableDynamicColorsClick) }
@@ -109,7 +109,7 @@ class AutoFillScreenTest : BitwardenComposeTest() {
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
}
@@ -194,7 +194,7 @@ class AutoFillScreenTest : BitwardenComposeTest() {
mutableEventFlow.tryEmit(AutoFillEvent.NavigateToAutofillSettings)
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
.performClick()
@@ -798,7 +798,7 @@ class SendScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.assert(hasAnyAncestor(isDialog()))
.performClick()
@@ -783,7 +783,7 @@ class AddEditSendScreenTest : BitwardenComposeTest() {
)
}
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify { viewModel.trySendAction(AddEditSendAction.DismissDialogClick) }
}
@@ -300,7 +300,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify {
@@ -369,7 +369,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify {
@@ -438,7 +438,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify {
@@ -456,7 +456,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
)
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -512,7 +512,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
)
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -548,7 +548,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
mutableStateFlow.value = DEFAULT_STATE_LOGIN_DIALOG
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -571,7 +571,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
mutableStateFlow.value = DEFAULT_STATE_LOGIN_DIALOG
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
}
@@ -2313,7 +2313,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.performTextInput("TestLinked")
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -2895,7 +2895,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.performTextInput("TestText")
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -2959,7 +2959,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.performTextInput("TestBoolean")
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -3000,7 +3000,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.performTextInput("TestHidden")
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -3151,7 +3151,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.performTextInput("Boolean")
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -3472,7 +3472,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -3520,7 +3520,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -3642,7 +3642,7 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -197,7 +197,7 @@ class VaultItemScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -602,7 +602,7 @@ class VaultItemScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -1058,7 +1058,7 @@ class VaultItemScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onNodeWithText("Ok")
.onNodeWithText(text = "Okay")
.performClick()
verify {
@@ -1150,7 +1150,7 @@ class VaultItemScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
@@ -1193,7 +1193,7 @@ class VaultItemScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
@@ -1232,7 +1232,7 @@ class VaultItemScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
.performClick()
@@ -1744,7 +1744,7 @@ class VaultItemListingScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify {
@@ -1839,7 +1839,7 @@ class VaultItemListingScreenTest : BitwardenComposeTest() {
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify {
@@ -1914,7 +1914,7 @@ class VaultItemListingScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
verify {
@@ -1942,7 +1942,7 @@ class VaultItemListingScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -2187,7 +2187,7 @@ class VaultItemListingScreenTest : BitwardenComposeTest() {
.assertIsDisplayed()
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -176,7 +176,7 @@ class ManualCodeEntryScreenTests : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText(text = "Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
.performClick()
@@ -576,7 +576,7 @@ class VaultScreenTest : BitwardenComposeTest() {
}
composeTestRule
.onAllNodesWithText("Ok")
.onAllNodesWithText(text = "Okay")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
@@ -327,7 +327,7 @@ private fun ItemListingDialogs(
BitwardenTwoButtonDialog(
title = stringResource(id = R.string.delete),
message = dialog.message(),
confirmButtonText = stringResource(id = R.string.ok),
confirmButtonText = stringResource(id = R.string.okay),
dismissButtonText = stringResource(id = R.string.cancel),
onConfirmClick = {
onConfirmDeleteClick(dialog.itemId)
@@ -32,7 +32,7 @@ fun BitwardenBasicDialog(
onDismissRequest = onDismissRequest,
confirmButton = {
BitwardenTextButton(
label = stringResource(id = R.string.ok),
label = stringResource(id = R.string.okay),
onClick = onDismissRequest,
)
},
@@ -343,7 +343,7 @@ private fun VaultSettings(
dialogTitle = stringResource(R.string.data_backup_title),
dialogMessage = stringResource(R.string.data_backup_message),
dialogConfirmButtonText = stringResource(R.string.learn_more),
dialogDismissButtonText = stringResource(R.string.ok),
dialogDismissButtonText = stringResource(R.string.okay),
)
if (shouldShowSyncWithBitwardenApp) {
Spacer(modifier = Modifier.height(8.dp))
@@ -7,7 +7,7 @@
<string name="generic_error_message">We were unable to process your request. Please try again or contact us.</string>
<string name="internet_connection_required_title">Internet connection required</string>
<string name="internet_connection_required_message">Please connect to the internet before continuing.</string>
<string name="ok">OK</string>
<string name="okay">Okay</string>
<string name="syncing">Syncing</string>
<string name="copy">Copy</string>
<string name="edit_item">Edit</string>
@@ -124,7 +124,7 @@ class QrCodeScanScreenTest : AuthenticatorComposeTest() {
.assertIsDisplayed()
.assert(hasAnyAncestor(isDialog()))
composeTestRule
.onNodeWithText("OK")
.onNodeWithText(text = "Okay")
.assertIsDisplayed()
.assert(hasAnyAncestor(isDialog()))
.performClick()