Skip to content

Commit

Permalink
Add scroll actions so ensure we are verifying the components
Browse files Browse the repository at this point in the history
With the custom annotation feature we are having a bit to many components for the test emulator. We need to scroll town the page in the test to ensure that the components that we are verifying are visible
  • Loading branch information
oas004 committed Feb 12, 2023
1 parent 685226e commit be215b0
Showing 1 changed file with 33 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ class ShowcaseBrowserTest {
verifyRowsWithTextAreDisplayed(
"Group1 (2)",
"Group2 (1)",
"Group3 (2)",
"Submodule (1)"
)
}
}
Expand Down Expand Up @@ -322,6 +320,12 @@ class ShowcaseBrowserTest {
// Select components
clickRowWithText("Components ($componentSize)")

onRoot().performTouchInput {
swipeUp()
}

waitForIdle()

// Select Group 3
clickRowWithText("Group3 (2)")

Expand Down Expand Up @@ -459,7 +463,17 @@ class ShowcaseBrowserTest {
goBack()

// Confirm that we are in the right screen
verifyRowsWithTextAreDisplayed("Group1 (2)", "Group2 (1)", "Group3 (2)")
verifyRowsWithTextAreDisplayed("Group1 (2)", "Group2 (1)")

onRoot().performTouchInput {
swipeUp()
}

waitForIdle()

// Confirm that we are in the right screen
verifyRowsWithTextAreDisplayed("Group3 (2)")


// Go back to the landing screen
goBack()
Expand Down Expand Up @@ -560,6 +574,12 @@ class ShowcaseBrowserTest {
// Tap on the "Components" row
clickRowWithText("Components ($componentSize)")

onRoot().performTouchInput {
swipeUp()
}

waitForIdle()

// Select "Group4"
clickRowWithText("Group4 (1)")

Expand Down Expand Up @@ -665,6 +685,12 @@ class ShowcaseBrowserTest {

waitForIdle()

onRoot().performTouchInput {
swipeUp()
}

waitForIdle()

clickRowWithText("Group7 (4)")

waitForIdle()
Expand Down Expand Up @@ -717,6 +743,10 @@ class ShowcaseBrowserTest {

waitForIdle()

onNodeWithText("Custom Size Submodule (1)").performScrollTo()

waitForIdle()

clickRowWithText("Custom Size Submodule (1)")

waitForIdle()
Expand Down

0 comments on commit be215b0

Please sign in to comment.