Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e8cda14 authored by vadimt's avatar vadimt
Browse files

Further improving TAPL error messages

Old:
java.lang.AssertionError: http://go/tapl test failure:
Context: getting widget No Config in widgets list => resulting visible state is Widgets;
Details: Widgets container didn't become scrollable

New:
java.lang.AssertionError: http://go/tapl test failure: Widgets container didn't become scrollable;
Context: getting widget No Config in widgets list; now visible state is Widgets

Test: local runs
Bug: 187761685
Change-Id: I77a5b9133f577af27182f823e1130c371863e065
parent d6e33dc3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -504,9 +504,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() {