Skip to content

Commit

Permalink
Generate screenshots and update iTC metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Jan 9, 2017
1 parent a15d791 commit 1b3288f
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 41 deletions.
66 changes: 33 additions & 33 deletions HomeAssistantUITests/HomeAssistantUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,46 @@ class HomeAssistantUITests: XCTestCase {
}

func testExample() {
print("TEST EXAMPLE")
print("RUN CONFIGURATION")

let app = XCUIApplication()
let tabBarsQuery = app.tabBars
snapshot("00Launch")
let welcomeAlert = app.alerts["Welcome"]
let myawesomeemailGmailComTextField = welcomeAlert.collectionViews.textFields["myawesomeemail@gmail.com"]
myawesomeemailGmailComTextField.tap()
myawesomeemailGmailComTextField.typeText("me@robbiet.us")
welcomeAlert.buttons["OK"].tap()

let tablesQuery2 = app.tables
let tablesQuery = tablesQuery2
// snapshot("0Launch")
// app.alerts["Welcome"].collectionViews.textFields["myawesomeemail@gmail.com"].typeText("me@robbiet.us\r")
//
// tablesQuery.textFields["https://homeassistant.myhouse.com"].tap()
// tablesQuery2.cells.containing(.staticText, identifier:"URL").children(matching: .textField).element.typeText("privatedemo.home-assistant.io")
// let textValue = tablesQuery2.cells.containing(.staticText, identifier:"URL").children(matching: .textField).element.value as! String
// XCTAssert(textValue == "https://privatedemo.home-assistant.io")
//
// let connectStaticText = tablesQuery.staticTexts["Connect"]
// connectStaticText.tap()
// tablesQuery.staticTexts["Password"].tap()
// tablesQuery2.cells.containing(.staticText, identifier:"Password").children(matching: .secureTextField).element.typeText("demoprivate")
// snapshot("01Connection")
// connectStaticText.tap()
// app.alerts["Connected"].buttons["OK"].tap()
print("INSPECTENTITIES")
tablesQuery.textFields["https://homeassistant.myhouse.com"].tap()
tablesQuery2.cells.containing(.staticText, identifier:"URL").children(matching: .textField).element.typeText("privatedemo.home-assistant.io")
let textValue = tablesQuery2.cells.containing(.staticText, identifier:"URL").children(matching: .textField).element.value as! String
XCTAssert(textValue == "https://privatedemo.home-assistant.io")

let connectStaticText = tablesQuery.staticTexts["Connect"]
connectStaticText.tap()
tablesQuery.staticTexts["Password"].tap()
tablesQuery2.cells.containing(.staticText, identifier:"Password").children(matching: .secureTextField).element.typeText("demoprivate")
connectStaticText.tap()
app.navigationBars["Settings"].buttons["Done"].tap()

snapshot("2DefaultGroupView")
snapshot("01GroupView", waitForLoadingIndicator: true)

let tabBarsQuery = app.tabBars
tabBarsQuery.buttons["All Switches"].tap()

tablesQuery.staticTexts["AC"].tap()
tablesQuery.switches["AC"].tap()
snapshot("3SingleEntity")
app.navigationBars["AC"].buttons["All Switches"].tap()
snapshot("3SingleEntityOn")
app.tabBars.buttons["people"].tap()
tabBarsQuery.buttons["All Devices"].tap()
app.tables.staticTexts["Anne Therese"].tap()
app.navigationBars["45.8601, -119.6936"].buttons["All Devices"].tap()
tabBarsQuery.buttons["All Lights"].tap()

tablesQuery.staticTexts["Ceiling Lights"].tap()
tablesQuery.switches["Ceiling Lights"].tap()
tablesQuery.staticTexts["Decorative Lights"].tap()
snapshot("02SingleEntity")
tablesQuery.switches["Decorative Lights"].tap()
app.navigationBars["Decorative Lights"].buttons["All Switches"].tap()
tabBarsQuery.buttons["More"].tap()
snapshot("03ShowAllTabs")
app.navigationBars["More"].buttons["Edit"].tap()
app.navigationBars.buttons["Done"].tap()
app.staticTexts["automations"].tap()
tablesQuery.staticTexts["Notify Anne Therese is home"].tap()
snapshot("04ShowAutomationEntity")


}
}
2 changes: 1 addition & 1 deletion fastlane/Snapfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ languages([
])

# The name of the scheme which contains the UI Tests
# scheme "SchemeName"
scheme "HomeAssistant"

# Where should the resulting screenshots be stored?
# output_directory "./screenshots"
Expand Down
Binary file added fastlane/metadata/app_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/copyright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

22 changes: 21 additions & 1 deletion fastlane/metadata/en-US/description.txt
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
Home Assistant for iOS is the official companion app to Home Assistant, an open-source home automation platform running on Python 3.
Control and monitor your home from anywhere in the world. Home Assistant for iOS lets you control all your devices and provides advanced location and notification engines to allow for complex mobile automations.

Home Assistant is an open-source home automation platform running on Python 3. Supported products include:

- Amazon Echo (Alexa)
- Arduino
- Belkin WeMo
- Dark Sky
- Ecobee
- Google Cast
- IFTTT
- Kodi/XBMC
- MQTT
- Nest
- Philips Hue
- Plex
- Sonos
- Wink
- Z-Wave

Home Assistant for iOS requires an iPhone running iOS 9.3 or later and a previously configured Home Assistant running on a server.
2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/keywords.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
home automation,open source,lights,homekit,hue,wemo,smartthings,wink,lutron,insteon,homeseer,openhab
home automation,open source,lights,homekit,hue,wemo,smartthings,wink,lutron,insteon,homeseer,openhab
2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/marketing_url.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://home-assistant.io
https://home-assistant.io
2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/name.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Home Assistant for iOS
Home Assistant — Open Source Home Automation
1 change: 1 addition & 0 deletions fastlane/metadata/en-US/privacy_url.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/en-US/release_notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion fastlane/metadata/en-US/support_url.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://home-assistant.io
https://home-assistant.io/ecosystem/ios/
2 changes: 1 addition & 1 deletion fastlane/metadata/primary_category.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MZGenre.Lifestyle
MZGenre.Utilities
1 change: 1 addition & 0 deletions fastlane/metadata/primary_first_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/primary_second_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion fastlane/metadata/secondary_category.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MZGenre.Productivity
MZGenre.Productivity
1 change: 1 addition & 0 deletions fastlane/metadata/secondary_first_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions fastlane/metadata/secondary_second_sub_category.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 1b3288f

Please sign in to comment.