Merge "Further improving TAPL error messages" into sc-v2-dev

This commit is contained in:
Vadim Tryshev 2021-07-20 20:04:35 +00:00 committed by Android (Google) Code Review
commit 9d7cc7d59f
1 changed files with 2 additions and 3 deletions

View File

@ -514,9 +514,8 @@ public final class LauncherInstrumentation {
void fail(String message) {
checkForAnomaly();
Assert.fail(formatSystemHealthMessage(formatErrorWithEvents(
"http://go/tapl test failure:\nContext: " + getContextDescription()
+ " => resulting visible state is " + getVisibleStateMessage()
+ ";\nDetails: " + message, true)));
"http://go/tapl test failure: " + message + ";\nContext: " + getContextDescription()
+ "; now visible state is " + getVisibleStateMessage(), true)));
}
private String getContextDescription() {