Modern Apps git

← Modern-Apps.git

notes: updated automated screenshot generation

Commit
ef98d77481f93d909f9ae2083cd93bd1727538bd
Author
Vayun Mathur <[email protected]>
When
2026-07-07 05:32 UTC (5 months ago)
Parents
00c3c77

Diff

metadata_data/photos/notes/2.png
diff --git a/metadata_data/photos/notes/2.png b/metadata_data/photos/notes/2.pngnew file mode 100644index 0000000000..c741ee0545Binary files /dev/null and b/metadata_data/photos/notes/2.png differ
notes/src/androidTest/java/com/vayunmathur/notes/MetadataScreenshots.kt
diff --git a/notes/src/androidTest/java/com/vayunmathur/notes/MetadataScreenshots.kt b/notes/src/androidTest/java/com/vayunmathur/notes/MetadataScreenshots.ktindex 599859d172..34829cf77c 100644--- a/notes/src/androidTest/java/com/vayunmathur/notes/MetadataScreenshots.kt+++ b/notes/src/androidTest/java/com/vayunmathur/notes/MetadataScreenshots.kt@@ -5,7 +5,9 @@ import androidx.compose.ui.graphics.asAndroidBitmap import androidx.compose.ui.test.captureToImage import androidx.compose.ui.test.junit4.createAndroidComposeRule import androidx.compose.ui.test.onAllNodesWithText+import androidx.compose.ui.test.onFirst import androidx.compose.ui.test.onRoot+import androidx.compose.ui.test.performClick import androidx.lifecycle.ViewModelProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry@@ -69,5 +71,16 @@ class MetadataScreenshots {             composeRule.onAllNodesWithText(samples[0].first).fetchSemanticsNodes().isNotEmpty()         }         snap(1) // populated notes list++        // Open a note's detail/editor page. We click the list row (headline), NOT a+        // text field, so the editor never auto-focuses — otherwise the soft keyboard+        // would slide up and cover the note's content in the shot.+        composeRule.onAllNodesWithText(samples[0].first).onFirst().performClick()+        // Wait for the detail page: the note's body text is now rendered in the editor.+        composeRule.waitUntil(timeoutMillis = 10_000) {+            composeRule.onAllNodesWithText("farmers market", substring = true)+                .fetchSemanticsNodes().isNotEmpty()+        }+        snap(2) // note detail with title + content, keyboard hidden     } }
notes/src/main/ic_launcher-playstore.png
diff --git a/notes/src/main/ic_launcher-playstore.png b/notes/src/main/ic_launcher-playstore.pngindex 656cff671a..25a4d5b31a 100644Binary files a/notes/src/main/ic_launcher-playstore.png and b/notes/src/main/ic_launcher-playstore.png differ