Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic"
runPostActionsOnFailure = "NO">
<BuildActionEntries>
<BuildActionEntry
Expand Down
12 changes: 9 additions & 3 deletions UITests/SmokeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ final class SmokeTests: XCTestCase {
app.secureTextFields["Password"].typeText("demo-password")
app.buttons["Sign in"].tap()

let code = app.textFields["6-digit code"]
// The Passwords "Save Password?" sheet (from the username/password content types) covers the form.
// The Passwords "Save Password?" sheet follows the sign-in, seconds later on a slow simulator, and covers
// the form. XCTest doesn't treat it as an interruption, so wait it out before touching the next screen.
let notNow = app.buttons["Not Now"]
if notNow.waitForExistence(timeout: 3) { notNow.tap() }
if notNow.waitForExistence(timeout: 15) {
notNow.tap()
XCTAssertTrue(notNow.waitForNonExistence(timeout: 5))
}

let code = app.textFields["6-digit code"]
XCTAssertTrue(code.waitForExistence(timeout: 5))
code.tap()
code.typeText("123456")
app.buttons["Verify"].tap()
Expand Down
11 changes: 9 additions & 2 deletions scripts/sync-openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ DERIVED="Packages/SubstratalKit/Sources/SubstratalAPI/openapi.yaml"

if [[ -f "$SOURCE" ]]; then [[ "$SOURCE" -ef "$UPSTREAM" ]] || cp "$SOURCE" "$UPSTREAM"; else curl -fsSL "$SOURCE" -o "$UPSTREAM"; fi

python3 -c "import yaml" 2>/dev/null || python3 -m pip install --quiet --user pyyaml
python3 scripts/derive-openapi.py "$UPSTREAM" "$DERIVED"
# PyYAML goes in a private venv when the system Python lacks it: Homebrew's Python (the macOS runners')
# refuses `pip install --user` under PEP 668.
PYTHON=python3
if ! python3 -c "import yaml" 2>/dev/null; then
PYTHON=.build/pyvenv/bin/python3
[[ -x "$PYTHON" ]] || python3 -m venv .build/pyvenv
"$PYTHON" -c "import yaml" 2>/dev/null || "$PYTHON" -m pip install --quiet pyyaml
fi
"$PYTHON" scripts/derive-openapi.py "$UPSTREAM" "$DERIVED"

python3 - "$UPSTREAM" "$SOURCE" <<'PY'
import hashlib, json, re, sys, datetime
Expand Down
Loading