Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Beta 3: setOrientation does not work if used in consecutive tests #153

@DanielJette

Description

@DanielJette

Repro steps

The following will not work:

    @TestifyLayout(R.layout.view_client_details)
    @ScreenshotInstrumentation
    @Test
    fun a() {
        rule
            .setOrientation(requestedOrientation = SCREEN_ORIENTATION_LANDSCAPE)
            .assertSame()
    }

    @TestifyLayout(R.layout.view_client_details)
    @ScreenshotInstrumentation
    @Test
    fun b() {
        rule
            .setOrientation(requestedOrientation = SCREEN_ORIENTATION_LANDSCAPE)
            .assertSame()
    }

The second test (b()) will not rotate into landscape

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAny behaviour the deviates from the documentation, expected outcome or API contract.LibraryRelates to the Testify Kotlin library: ScreenshotRule, ScreenshotInstrumentation, etc.

    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