Remove unnecessary @Suppress("StringTemplate") in tests

This commit removes several unnecessary `@Suppress("StringTemplate")` annotations from UI test files. These suppressions were added to handle string templates that are no longer present or are no longer flagged by the linter, making the annotation redundant.
This commit is contained in:
Patrick Honkonen 2025-10-29 15:20:38 -04:00
parent 3c86dc39ba
commit 6f368d55a6
No known key found for this signature in database
GPG Key ID: 27C65CF8B03CC9FB
3 changed files with 0 additions and 10 deletions

View File

@ -100,7 +100,6 @@ class PasswordHistoryScreenTest : BitwardenComposeTest() {
)
}
@Suppress("StringTemplate")
composeTestRule.onNodeWithText("${LRO}${password.password}$PDF").assertIsDisplayed()
composeTestRule.onNodeWithContentDescription("Copy").performClick()
@ -167,7 +166,6 @@ class PasswordHistoryScreenTest : BitwardenComposeTest() {
)
}
@Suppress("StringTemplate")
composeTestRule.onNodeWithText("${LRO}Password1$PDF").assertIsDisplayed()
}
}

View File

@ -684,7 +684,6 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
composeTestRule
.onNodeWithContentDescription("Show")
.performClick()
@Suppress("StringTemplate")
composeTestRule
.onNodeWithText("Password")
.assertTextEquals("Password", "${LRO}p@ssw0rd$PDF")
@ -1007,7 +1006,6 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assertExists()
.performClick()
@Suppress("StringTemplate")
composeTestRule
.onNodeWithText("Authenticator key")
.assertTextEquals("Authenticator key", "${LRO}TestCode$PDF")
@ -1017,7 +1015,6 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
updateLoginType(currentState) { copy(totp = "NewTestCode") }
}
@Suppress("StringTemplate")
composeTestRule
.onNodeWithTextAfterScroll("Authenticator key")
.assertTextEquals("Authenticator key", "${LRO}NewTestCode$PDF")
@ -1045,7 +1042,6 @@ class VaultAddEditScreenTest : BitwardenComposeTest() {
.assertExists()
.performClick()
@Suppress("StringTemplate")
composeTestRule
.onNodeWithText("Authenticator key")
.assertTextEquals("Authenticator key", "${LRO}TestCode$PDF")

View File

@ -64,7 +64,6 @@ import org.junit.Test
import java.time.Instant
@Suppress("LargeClass")
class VaultItemScreenTest : BitwardenComposeTest() {
private var onNavigateBackCalled = false
@ -1003,7 +1002,6 @@ class VaultItemScreenTest : BitwardenComposeTest() {
)
}
@Suppress("StringTemplate")
composeTestRule
.onNodeWithText("Password")
.assertTextEquals("Password", "${LRO}p@ssw0rd$PDF")
@ -2801,7 +2799,6 @@ class VaultItemScreenTest : BitwardenComposeTest() {
)
}
@Suppress("StringTemplate")
composeTestRule
.onNodeWithText("Number")
.assertTextEquals("Number", "${LRO}number$PDF")
@ -2952,7 +2949,6 @@ class VaultItemScreenTest : BitwardenComposeTest() {
)
}
@Suppress("StringTemplate")
composeTestRule
.onNodeWithText("Security code")
.assertTextEquals("Security code", "${LRO}123$PDF")