Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme
Browse files Browse the repository at this point in the history
alorma committed Mar 9, 2021
1 parent 58333ec commit 197532c
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -272,11 +272,11 @@ assertHint(R.id.edittext, "Hint");

#### Check TextInputLayout and EditText's errors
```java
assertError(R.id.edittext, R.string.error);
assertError(R.id.edittext, "Error message");
assertErrorDisplayed(R.id.edittext, R.string.error);
assertErrorDisplayed(R.id.edittext, "Error message");

assertNoError(R.id.edittext, R.string.error);
assertNoError(R.id.edittext, "Error message");
assertNoErrorDisplayed(R.id.edittext, R.string.error);
assertNoErrorDisplayed(R.id.edittext, "Error message");
```

#### Check TextInputLayout's assistive helper text
Original file line number Diff line number Diff line change
@@ -2,16 +2,13 @@

import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;
import com.schibsted.spain.barista.assertion.BaristaErrorAssertions;
import com.schibsted.spain.barista.internal.failurehandler.BaristaException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

import static com.schibsted.spain.barista.assertion.BaristaErrorAssertions.assertErrorDisplayed;
import static com.schibsted.spain.barista.assertion.BaristaErrorAssertions.assertNoErrorDisplayed;
import static com.schibsted.spain.barista.assertion.assertErrorDisplayed;
import static com.schibsted.spain.barista.assertion.assertNoErrorDisplayed;
import static com.schibsted.spain.barista.assertion.BaristaHintAssertions.assertHint;
import static com.schibsted.spain.barista.interaction.BaristaClickInteractions.clickOn;

0 comments on commit 197532c

Please sign in to comment.