Skip to content

Improve test results to contain failed assertion #5058

Description

@sosnovsky
          We need to extract this meaningful piece into the test result:
  ✘ [fail]: compose - saving and rendering a draft with RTL text (plain text) [ALL RETRIES FAILED for compose - saving and rendering a draft with RTL text (plain text)]
    ℹ (attempt 1 of 1) Failed:   AssertionError: expected '<div><br></div><div><br></div><div>--…' to include '<div dir="rtl">مرحبا<br></div>'
          at <anonymous> (/home/osboxes/flowcrypt-browser/test/source/tests/compose.ts:1508:62)
          at <anonymous> (/home/osboxes/flowcrypt-browser/test/source/test.ts:81:11)
          at BrowserPool.BrowserPool.withNewBrowserTimeoutAndRetry (/home/osboxes/flowcrypt-browser/test/source/browser/browser-pool.ts:113:11)
          at <anonymous> (/home/osboxes/flowcrypt-browser/test/source/test.ts:75:7)
          at <async> <anonymous> (/test/source/tests/compose.ts:1495:39)
          at <async> <anonymous> (../test/source/test.ts:75:55)

The line with (attempt x of x) Failed (last attempt)

Originally posted by @rrrooommmaaa in #5053 (comment)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions