         element.doubleTap()
         app.buttons["PhotoSliderClose"].tap()
         
-        sleep(1)
-
-        XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, false)
+        self.existsPhotoSliderScrollView(app)
     }
 
 }

        let element = app.scrollViews.matchingIdentifier("PhotoSliderScrollView").elementBoundByIndex(0)
        element.swipeUp()
        
        XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, false)
    }
    
    func testCloseWithSwipingDownImage() {

        let element = app.scrollViews.matchingIdentifier("PhotoSliderScrollView").elementBoundByIndex(0)
        element.swipeDown()
        
        self.existsPhotoSliderScrollView(app)
    }
    
    func testRightRotation() {
