Skip to content

Swap the "Expected" and "Actual" tabs in the test results panel #783

Description

@GoodbyeNJN

Clear and concise description of the problem

Image

As shown in the image, we generally uses the code expect(<actual>).toBe(<expected>) to define an assertion, while in the test results panel, "Expected" is on the left and "Actual" is on the right. In the meanwhile, the AssertionError message shows "Actual" before "Expected", and in the "Badge" (I'm not sure if this is the correct term) at the end of the line where the error occurs, "Actual" is also shown before "Expected".

I would like to swap the "Expected" and "Actual" tabs in the test results panel to maintain consistency with other information displays.

Suggested solution

Swap two tabs directly, or provide settings for the user to set which one is on the left and which one is on the right

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions