Skip to content

Commit

Permalink
fix ui-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
softartdev committed Aug 22, 2024
1 parent 56dab37 commit 5ff1f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.softartdev.notedelight.ui.cases

import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsNotDisplayed
import androidx.compose.ui.test.assertIsOff
import androidx.compose.ui.test.assertIsOn
import androidx.compose.ui.test.assertTextEquals
Expand Down Expand Up @@ -118,6 +119,7 @@ class SettingPasswordTestCase(
changeOldSNI.performTextReplacement(text = "1")
closeSoftKeyboard()
yesDialogButtonSNI.performClick()
composeTestRule.waitAssert(yesDialogButtonSNI::assertIsNotDisplayed)
}
encryptionSwitchSNI.assertIsOn()
.performClick()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.softartdev.notedelight.ui.screen.dialog

import androidx.compose.ui.test.SemanticsNodeInteraction
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.ComposeContentTestRule
import androidx.compose.ui.test.onNodeWithText
import kotlinx.coroutines.runBlocking
Expand All @@ -15,5 +14,4 @@ value class CommonDialogImpl(override val composeTestRule: ComposeContentTestRul
override val yesDialogButtonSNI: SemanticsNodeInteraction
get() = composeTestRule
.onNodeWithText(text = runBlocking { getString(Res.string.yes) })
.assertIsDisplayed()
}

0 comments on commit 5ff1f78

Please sign in to comment.