mirror of
https://github.com/louisdh/panelkit.git
synced 2024-07-14 10:50:26 +03:00
quick fail on iPhone
This commit is contained in:
parent
29b4623b29
commit
64218f98b4
@ -22,6 +22,10 @@ class PanelKit_UI_Tests: XCTestCase {
|
||||
XCUIApplication().launch()
|
||||
|
||||
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
|
||||
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
XCTFail("Test does not work on an iPhone")
|
||||
}
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
|
@ -29,7 +29,11 @@ class MainTests: XCTestCase {
|
||||
|
||||
XCTAssertNotNil(navigationController.view)
|
||||
XCTAssertNotNil(viewController.view)
|
||||
|
||||
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
continueAfterFailure = false
|
||||
XCTFail("Test does not work on an iPhone")
|
||||
}
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
|
@ -30,6 +30,9 @@ class StateTests: XCTestCase {
|
||||
XCTAssertNotNil(navigationController.view)
|
||||
XCTAssertNotNil(viewController.view)
|
||||
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
XCTFail("Test does not work on an iPhone")
|
||||
}
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
|
Loading…
Reference in New Issue
Block a user