0 Replies
      Latest reply on Sep 26, 2019 1:50 AM by rnikander
      rnikander Level 2 Level 2 (30 points)

        I'd like to use the new localization screenshots and test plans feature to take screenshots in different languages, for the app store. I end up with images that are half one screen and half another, like it's some kind of timing issue. My test code is below. Is it missing something that would give it the right timing on the screenshots?


        I wrote a UI test and set "Localization Screenshots" to "On" in the test plan's settings. The UI test walks through a few screens and the resulting test report has a few image files attached labeled "Localization screenshot".   Some images are are split so that the left side is one view controller and the right side is another, like it captured a push navigation transition. Another image has two overlaid screens, each half faded.


        I'm running in the simulator. My test code looks like:


            func testTakeScreenshots() {
                let app = XCUIApplication()
                // At workouts page
                app.tables["workouts"].cells.element(boundBy: 0).tap()
                // At first workout
                // At workout edit screen, click first exercise
                app.tables.cells.element(boundBy: 0).tap()