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
version: '3.8' | |
services: | |
vault: | |
image: vault | |
container_name: vault | |
environment: | |
VAULT_API_ADDR: 'http://0.0.0.0:8302' | |
ports: | |
- "8302:8302" | |
restart: always |
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
typealias ApplicationState = XCTNSPredicateExpectation | |
protocol UIElement { | |
var existance: ApplicationState { get } | |
} | |
extension XCUIElement: UIElement { | |
var existance: ApplicationState { | |
let state = NSPredicate(format: "exists == true") | |
return ApplicationState(predicate: state, object: self) | |
} | |
} |
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
extension XCUIApplication: Application { | |
static var app: Application { | |
return XCUIApplication() | |
} | |
var movieTable: UIElement { | |
return self.tables.staticTexts["New Releases"] | |
} | |
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
protocol UIElement { | |
var existance: ApplicationState { get } | |
} | |
protocol Application { | |
static var app: Application { get } | |
var searchBar: UIElement { get } | |
var movieTable: UIElement { get } | |
func movie(titled: String) -> UIElement |
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
extension XCUIApplication: UserBehavior { | |
static var user: UserBehavior { | |
return XCUIApplication() | |
} | |
func wait(_ timeout: TimeInterval, for states: [ApplicationState]) { | |
let state = XCTWaiter.wait(for: states, timeout: timeout) | |
switch state { | |
case .completed: |
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
protocol UserBehavior: class { | |
static var user: UserBehavior { get } | |
func launch() | |
func login() | |
func swipeToShowSearch() | |
func search(for text: String) | |
func select(_ text: String) | |
func wait(_ timeout: TimeInterval, for states: ApplicationState…) |
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
func testSelectThor() { | |
let movieTitle = "Thor" | |
let user = Scenario.user | |
let app = Scenario.app | |
user.login() | |
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
// beak: JohnSundell/ShellOut @ 2.1.0 | |
/* | |
Copyright 2018 The CB4 (Cavelle Benjamin) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
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
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
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
--- | |
folder: | |
name: "Project" | |
folderItems: | |
- folder: | |
name: "Framework" | |
folderItems: | |
- folder: | |
name: "Sources" | |
folderItems: |
NewerOlder