mirror of
https://github.com/louisdh/panelkit.git
synced 2024-09-11 08:15:24 +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()
|
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.
|
// 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() {
|
override func tearDown() {
|
||||||
|
@ -30,6 +30,10 @@ class MainTests: XCTestCase {
|
|||||||
XCTAssertNotNil(navigationController.view)
|
XCTAssertNotNil(navigationController.view)
|
||||||
XCTAssertNotNil(viewController.view)
|
XCTAssertNotNil(viewController.view)
|
||||||
|
|
||||||
|
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||||
|
continueAfterFailure = false
|
||||||
|
XCTFail("Test does not work on an iPhone")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override func tearDown() {
|
override func tearDown() {
|
||||||
|
@ -30,6 +30,9 @@ class StateTests: XCTestCase {
|
|||||||
XCTAssertNotNil(navigationController.view)
|
XCTAssertNotNil(navigationController.view)
|
||||||
XCTAssertNotNil(viewController.view)
|
XCTAssertNotNil(viewController.view)
|
||||||
|
|
||||||
|
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||||
|
XCTFail("Test does not work on an iPhone")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override func tearDown() {
|
override func tearDown() {
|
||||||
|
Loading…
Reference in New Issue
Block a user