This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24be159
commit 3f8cba9
Showing
5 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app/src/androidTest/java/com/ivy/wallet/compose/component/external/CalendarDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.ivy.wallet.compose.component.external | ||
|
||
import com.ivy.wallet.compose.IvyComposeTestRule | ||
import com.ivy.wallet.compose.util.printTree | ||
|
||
class CalendarDialog( | ||
private val composeTestRule: IvyComposeTestRule | ||
) { | ||
//TODO: Find a way to pick a date from the material Calendar dialog | ||
|
||
fun print() { | ||
composeTestRule.printTree(useUnmergedTree = true) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
app/src/androidTest/java/com/ivy/wallet/compose/scenario/lab/ExperimentalTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.ivy.wallet.compose.scenario.lab | ||
|
||
import com.ivy.wallet.compose.IvyComposeTest | ||
import com.ivy.wallet.compose.component.edittrn.ChooseCategoryModal | ||
import com.ivy.wallet.compose.component.planned.EditPlannedScreen | ||
import com.ivy.wallet.domain.data.TransactionType | ||
import dagger.hilt.android.testing.HiltAndroidTest | ||
import org.junit.Test | ||
|
||
@HiltAndroidTest | ||
class ExperimentalTest : IvyComposeTest() { | ||
@Test | ||
fun openCalendar() = testDebug { | ||
quickOnboarding() | ||
.clickAddFAB() | ||
.clickAddPlannedPayment() | ||
.setPaymentType(TransactionType.EXPENSE) | ||
.enterNumber(number = "10", next = ChooseCategoryModal(composeTestRule)) | ||
.selectCategory("Food & Drinks", next = EditPlannedScreen(composeTestRule)) | ||
.clickRecurringModalPickDate() | ||
.print() | ||
} | ||
} |