Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertHasBackground doesn't work with colors #370

Closed
rocboronat opened this issue Sep 30, 2020 · 1 comment · Fixed by #371
Closed

assertHasBackground doesn't work with colors #370

rocboronat opened this issue Sep 30, 2020 · 1 comment · Fixed by #371

Comments

@rocboronat
Copy link
Member

Library Version:

3.6.0 (the latest one right now)

Describe the Bug:

When checking if a View has a background passing a R.color.something, Barista fails. This is the error it gives:

com.schibsted.spain.barista.internal.failurehandler.BaristaException: View (with id: com.fewlaps.app.debug:id/view) didn't match condition (with background from resource id: <2131034144>[background_warning])

Steps to reproduce the bug:

  1. Make an assertion like this one: assertHasBackground(R.id.view, R.color.background_warning);

Expected Behavior:

The assertion passes if the background is applied, and fails otherwise.

@rocboronat rocboronat added the bug label Sep 30, 2020
@rocboronat
Copy link
Member Author

Just pushed a branch that reproduces this issue. Long life to EDD!

https://github.com/AdevintaSpain/Barista/tree/assert-background-with-color

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

Successfully merging a pull request may close this issue.

1 participant