diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 031697b..2d228f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ env: jobs: linting: name: Linting - runs-on: macos-latest + runs-on: macos-11 steps: - name: Checkout @@ -22,12 +22,16 @@ jobs: appkit: name: AppKit Tests - runs-on: macos-latest + runs-on: macos-11 steps: - name: Checkout uses: actions/checkout@v2 - uses: actions/checkout@v2 + - name: Turn on Do Not Disturb + run: | + brew install vitorgalvao/tiny-scripts/calm-notifications + calm-notifications on - name: Change to testing branch env: XCODEPROJ: Tests/Essayist/Essayist.xcodeproj/project.pbxproj @@ -55,7 +59,7 @@ jobs: uikit: name: UIKit Tests - runs-on: macos-latest + runs-on: macos-11 steps: - name: Checkout diff --git a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.1.png b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.1.png index aef0028..8e31420 100644 Binary files a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.1.png and b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.1.png differ diff --git a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.2.png b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.2.png index 2869457..3c02a15 100644 Binary files a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.2.png and b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.2.png differ diff --git a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.3.png b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.3.png index 5d06ca9..c516603 100644 Binary files a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.3.png and b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testMarkdownPresetHighlighting.3.png differ diff --git a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testURLPresetHighlighting.1.png b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testURLPresetHighlighting.1.png index af9c6b5..0273e22 100644 Binary files a/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testURLPresetHighlighting.1.png and b/Tests/Essayist/iOS-EssayistUITests/__Snapshots__/iOS_EssayistUITests/testURLPresetHighlighting.1.png differ diff --git a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomFontTraits.1.png b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomFontTraits.1.png index 079d8d4..1ac4319 100644 Binary files a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomFontTraits.1.png and b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomFontTraits.1.png differ diff --git a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomNSAttributedStringKeyValues.1.png b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomNSAttributedStringKeyValues.1.png index c53ba47..2ee894f 100644 Binary files a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomNSAttributedStringKeyValues.1.png and b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testCustomNSAttributedStringKeyValues.1.png differ diff --git a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.1.png b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.1.png index f4c7f35..dfa07f4 100644 Binary files a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.1.png and b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.1.png differ diff --git a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.2.png b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.2.png index 2463ba8..c33e9f6 100644 Binary files a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.2.png and b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.2.png differ diff --git a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.3.png b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.3.png index d760700..4bacda9 100644 Binary files a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.3.png and b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testMarkdownPreset.3.png differ diff --git a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testURLPreset.1.png b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testURLPreset.1.png index f68c54f..4db3e31 100644 Binary files a/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testURLPreset.1.png and b/Tests/Essayist/macOS-EssayistUITests/__Snapshots__/macOS_EssayistUITests/testURLPreset.1.png differ diff --git a/Tests/Essayist/macOS-EssayistUITests/macOS_EssayistUITests.swift b/Tests/Essayist/macOS-EssayistUITests/macOS_EssayistUITests.swift index 97c3918..0c16c9a 100644 --- a/Tests/Essayist/macOS-EssayistUITests/macOS_EssayistUITests.swift +++ b/Tests/Essayist/macOS-EssayistUITests/macOS_EssayistUITests.swift @@ -24,7 +24,7 @@ class macOS_EssayistUITests: XCTestCase { private func selectEditor(_ editorType: EditorType) { let window = XCUIApplication().windows.firstMatch - window.popUpButtons["Select Editor"].click() + window.popUpButtons.firstMatch.click() window.menuItems[editorType.rawValue.uppercaseFirst()].click() if editorType == .blank { @@ -97,7 +97,7 @@ class macOS_EssayistUITests: XCTestCase { func testURLPresetLinkClicks() { let app = XCUIApplication() - app.launch() + app.activate() selectEditor(.url)