Skip to content

Commit 97e345d

Browse files
authored
Remove complete workflow test from UIWorkflowTest
Removed test for complete workflow in UIWorkflowTest.
1 parent 918b5c3 commit 97e345d

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

  • dl3/android/DeepLabV3Demo/app/src/androidTest/java/org/pytorch/executorchexamples/dl3

dl3/android/DeepLabV3Demo/app/src/androidTest/java/org/pytorch/executorchexamples/dl3/UIWorkflowTest.kt

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -252,39 +252,6 @@ class UIWorkflowTest {
252252
composeTestRule.onNodeWithTag("inferenceTime").assertDoesNotExist()
253253
}
254254

255-
/**
256-
* Tests the complete workflow: Next -> Run -> Reset.
257-
*/
258-
@Test
259-
fun testCompleteWorkflow() {
260-
// Step 1: Click Next to change sample
261-
composeTestRule.onNodeWithTag("nextButton").performClick()
262-
composeTestRule.waitForIdle()
263-
264-
// Step 2: Run segmentation
265-
composeTestRule.onNodeWithTag("runButton").performClick()
266-
267-
composeTestRule.waitUntil(timeoutMillis = INFERENCE_TIMEOUT_MS) {
268-
composeTestRule.onAllNodesWithTag("inferenceTime")
269-
.fetchSemanticsNodes().isNotEmpty()
270-
}
271-
272-
// Verify results are shown
273-
composeTestRule.onNodeWithTag("inferenceTime").assertIsDisplayed()
274-
composeTestRule.onNodeWithTag("resetButton").assertIsEnabled()
275-
276-
// Step 3: Reset image
277-
composeTestRule.onNodeWithTag("resetButton").performClick()
278-
composeTestRule.waitForIdle()
279-
280-
// Verify reset worked
281-
composeTestRule.onNodeWithTag("resetButton").assertIsNotEnabled()
282-
composeTestRule.onNodeWithTag("inferenceTime").assertDoesNotExist()
283-
284-
// Step 4: Can run segmentation again
285-
composeTestRule.onNodeWithTag("runButton").assertIsEnabled()
286-
}
287-
288255
/**
289256
* Tests multiple consecutive runs to ensure model can be reused.
290257
*

0 commit comments

Comments
 (0)