Skip to content

Commit

Permalink
Merge pull request #61 from takahirom/takahirom/delete-unchanged-chec…
Browse files Browse the repository at this point in the history
…k-for-main/2023-05-02

Fix bug captureRoboLastImage does not run when verifying and comparing
  • Loading branch information
takahirom authored May 2, 2023
2 parents 5c21a9c + 2813170 commit 67d7e19
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/check-unchanged.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: unchanged check test

on:
push:
branches:
- main
pull_request:

env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ class ManualTest {
onView(withId(R.id.button_first))
.perform(click())
}

onView(ViewMatchers.isRoot())
.captureRoboAllImage({ File("$DEFAULT_ROBORAZZI_OUTPUT_DIR_PATH/manual_all_$it.png") }) {
// back
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ fun ViewInteraction.captureRoboLastImage(
roborazziOptions: RoborazziOptions = RoborazziOptions(),
block: () -> Unit
) {
// currently, gif compare is not supported
if (!roborazziRecordingEnabled()) return
if (!roborazziEnabled()) return
captureRoboLastImage(File(filePath), roborazziOptions, block)
}

Expand Down

0 comments on commit 67d7e19

Please sign in to comment.