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
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,9 @@ test-ios-e2e: ## Run iOS E2E tests against the production build
else \
echo "--- :white_check_mark: Using existing build. Use 'make build REFRESH_JS_BUILD=1' to rebuild."; \
fi
@if [ ! -d "./ios/Sources/GutenbergKit/Gutenberg" ]; then \
echo "--- :open_file_folder: Copying build into iOS bundle"; \
cp -r ./dist/. ./ios/Sources/GutenbergKit/Gutenberg/; \
fi
@echo "--- :open_file_folder: Copying build into iOS bundle"
@rm -rf ./ios/Sources/GutenbergKit/Gutenberg/
@cp -r ./dist/. ./ios/Sources/GutenbergKit/Gutenberg/
@echo "--- :ios: Running iOS E2E Tests (production build)"
@set -o pipefail && \
xcodebuild test \
Expand Down
4 changes: 3 additions & 1 deletion ios/Demo-iOS/GutenbergUITests/EditorUITestHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ enum EditorUITestHelpers {
XCTAssertTrue(addBlockButton.waitForExistence(timeout: 10), "Add block button not found in WebView toolbar")
addBlockButton.tap()

let blockOption = app.buttons[name]
// Use firstMatch because the same block can appear in multiple
// inserter sections (e.g. most-used and its category section).
let blockOption = app.buttons[name].firstMatch
XCTAssertTrue(blockOption.waitForExistence(timeout: 10), "\(name) block not found in block inserter")
blockOption.tap()
}
Expand Down
Loading