Skip to content

Advanced WorkManager and Testing #34

@Stepman95

Description

@Stepman95

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-verify-background-work?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-7-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-verify-background-work#6

Specify the language of the codelab if it is not English:

In which task and step of the codelab can this issue be found?

Task 7 - Test with emulator

Describe the problem

In step 1 it is written: "On an emulator, change the Charge level in the Extended Controls window to be 15% or lower to simulate a low battery scenario, Charger connection to AC charger, and Battery status to Not charging". However only when Charger connection is set to "None" (and not to "AC charger") the suggested test works, that is with a battery level below 15% the WorkManager does not run the blurWorker work request

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
_Android Studio version:
Android Studio Koala | 2024.1.1
Build #AI-241.15989.150.2411.11948838, built on June 10, 2024
Runtime version: 17.0.10+0--11609105 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
ide.experimental.ui=true

_API version of the emulator: 34

Additional information
Include screenshots if they would be useful in clarifying the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions