This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from TCA-Team/max/snapshot
Add Fastlane Snapshot
- Loading branch information
Showing
9 changed files
with
477 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// AutomatedScreenshots.swift | ||
// AutomatedScreenshots | ||
// | ||
// Created by Max Muth on 09.03.17. | ||
// Copyright © 2017 LS1 TUM. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
|
||
//@testable import Campus | ||
|
||
class ScreenshotUITests: XCTestCase { | ||
|
||
let app = XCUIApplication() | ||
|
||
override func setUp() { | ||
super.setUp() | ||
setupSnapshot(app) | ||
app.launch() | ||
} | ||
|
||
override func tearDown() { | ||
super.tearDown() | ||
} | ||
|
||
func testAllScreenshots() { | ||
snapshot("0_CardsOverview") | ||
app.tabBars.buttons["More"].tap() | ||
snapshot("1_MoreOverview") | ||
let tablesQuery = app.tables | ||
tablesQuery.staticTexts["Calendar"].tap() | ||
snapshot("2_Calendar") | ||
app.navigationBars.buttons.element(boundBy: 0).tap() | ||
tablesQuery.staticTexts["My Lectures"].tap() | ||
snapshot("3_MyLectures") | ||
app.navigationBars["My Lectures"].buttons["More"].tap() | ||
tablesQuery.staticTexts["Room Finder"].tap() | ||
app.navigationBars["Campus.SearchView"].textFields["Search"].typeText("hs1") | ||
sleep(10) | ||
snapshot("4_RoomFinderSearch") | ||
XCTAssert(true) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ You're welcome to contribute to this app! Just check it out and open PR's for yo | |
- We have SonarQube to check the code quality at [https://sonarqube.com/dashboard?id=de.tum.in.www.Tum-Campus-App](https://sonarqube.com/dashboard?id=de.tum.in.www.Tum-Campus-App) | ||
- If a PR is coming from a branch from this repository (and not a fork), our [@TCA-Bot](https://travis-ci.org/TCA-Team/iOS) will review the changes automatically | ||
- Use [ci skip] in the commit message if you know there is no need to run a build on Travis | ||
- You can use _fastlane snapshot_ to automatically generate localized screenshots. If you want to add a view, just record a UI Test and add it to the AutomatedScreenshots.swift test | ||
|
||
## Disclaimer: | ||
This is not an official app of the Technische Universität München. There's no support or warranty (you can however send us an email [[email protected]](mailto:[email protected]) or open an issue here on Github). The app is developed by students and for students, so use it at your own risk. We try to keep your data safe with only using TUMonline tokens and not saving your password. For further information you should have a look at our privacy policy and the terms and conditions of the lecture chat. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.