Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 2, 2025

Implements integrated UI testing for add/edit/delete link, search, tag filtering, and favorites functionality. Creates GitHub Actions workflow to run tests on PR.

Test Suite

Added DeeprIntegratedTest.kt with 6 test cases covering:

  • Add link: FAB → enter deeplink/name → save → verify
  • Edit link: swipe right → modify → save → verify
  • Delete link: swipe left → confirm dialog → verify removal
  • Search: add multiple links → search text → verify filtering
  • Tag filtering: add tagged link → click tag → verify filter
  • Favorites: toggle star icon → verify state changes

Uses Compose UI Test framework with real MainActivity and database for integration testing.

CI Workflow

Added .github/workflows/integrated-tests.yml:

  • Triggers on PR to master (same as pr-check)
  • Runs tests on Android API 29 emulator
  • Uploads test reports as artifacts
  • Comments on PR with results link
- name: Run instrumented tests on Android Emulator
  uses: reactivecircus/android-emulator-runner@v2
  with:
    api-level: 29
    script: ./gradlew connectedFreeDebugAndroidTest

Helper methods reduce duplication for common operations like adding links with specific parameters.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/gradle-daemon-main-8.13.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/agents/gradle-instrumentation-agent-8.13.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.13 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Automated Integrated Testing</issue_title>
<issue_description>Test app flow

  • Add new link
  • Edit Link
  • Delete Link
  • Searching
  • Filter by tag
  • Add/remove to favorites

Create github action to run tests on tests on pr raise similar to pr-check</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits November 2, 2025 16:56
Co-authored-by: yogeshpaliyal <9381846+yogeshpaliyal@users.noreply.github.com>
Co-authored-by: yogeshpaliyal <9381846+yogeshpaliyal@users.noreply.github.com>
Co-authored-by: yogeshpaliyal <9381846+yogeshpaliyal@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automated integrated testing for app flow Add automated UI tests and CI workflow for core app flows Nov 2, 2025
Copilot AI requested a review from yogeshpaliyal November 2, 2025 17:05
Copilot finished work on behalf of yogeshpaliyal November 2, 2025 17:05
@github-actions
Copy link

github-actions bot commented Nov 2, 2025

🧪 Integrated Test Results

The integrated UI tests have completed.

View full test results: Test Run #19015327991

Test reports are available in the artifacts section of the workflow run.

@github-actions
Copy link

github-actions bot commented Nov 2, 2025

🧪 Integrated Test Results

The integrated UI tests have completed.

View full test results: Test Run #19015402203

Test reports are available in the artifacts section of the workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automated Integrated Testing

2 participants