-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add UI tests * Use Fastlane to run tests * Enable parallel testing
- Loading branch information
1 parent
27c2c73
commit db23344
Showing
31 changed files
with
1,017 additions
and
80 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Example/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?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>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
77 changes: 77 additions & 0 deletions
77
Example/Example/Accessibility/AccessibilityIdentifier.swift
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,77 @@ | ||
import SwiftUI | ||
|
||
struct AccessibilityIdentifier { | ||
let value: String | ||
} | ||
|
||
extension View { | ||
func accessibility(identifier: AccessibilityIdentifier) -> some View { | ||
accessibility(identifier: identifier.value) | ||
} | ||
} | ||
|
||
extension AccessibilityIdentifier { | ||
enum HomeScreen { | ||
static let settingsNavigationBarItem = AccessibilityIdentifier(value: "home.settings.open") | ||
|
||
static func detail(for id: String) -> AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "detail.\(id)") | ||
} | ||
|
||
static func detailSettings(for id: String) -> AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "detail.\(id).settings") | ||
} | ||
} | ||
|
||
struct SettingsScreen { | ||
let prefix: String | ||
|
||
var shortcutsSheet: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).settings.shortcuts.sheet") | ||
} | ||
|
||
var shortcutsPush: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).settings.shortcuts.push") | ||
} | ||
} | ||
|
||
struct DetailScreen { | ||
let id: String | ||
|
||
var shortcuts: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "detail.\(id).shortcuts") | ||
} | ||
|
||
var settings: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "detail.\(id).settings") | ||
} | ||
} | ||
|
||
struct NavigationShortcuts { | ||
let prefix: String | ||
|
||
var detailShortcuts: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).detailShortcuts") | ||
} | ||
|
||
var detailSettings: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).detailSettings") | ||
} | ||
|
||
var detailSettingsShortcutsPush: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).detailSettingsShortcutsPush") | ||
} | ||
|
||
var detailSettingsShortcutsSheet: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).detailSettingsShortcutsSheet") | ||
} | ||
|
||
var homeSettings: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).homeSettings") | ||
} | ||
|
||
var home: AccessibilityIdentifier { | ||
AccessibilityIdentifier(value: "\(prefix).home") | ||
} | ||
} | ||
} |
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
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
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.