Files
yattee/YatteeTests/Integration/TestConstants.swift
Arkadiusz Fal c778ca5d06 Fix flaky integration tests and UI test runner robustness
- Skip Invidious integration tests gracefully on .noConnection so a
  transient instance outage no longer fails CI
- Point integration tests at i01.v.yattee.stream (the previous test
  instance was decommissioned)
- Force UTF-8 on AXe CLI output in the UI test wrapper; ASCII-tagged
  bytes were crashing JSON.parse in describe_ui
- Add iOS 26.4 visual baselines for app-launch-home and settings-main
2026-05-10 15:28:11 +02:00

38 lines
1.0 KiB
Swift

//
// TestConstants.swift
// YatteeTests
//
// Constants for integration tests.
//
import Foundation
@testable import Yattee
/// Constants for integration testing against a real Invidious instance.
enum IntegrationTestConstants {
/// Test Invidious instance URL (from CLAUDE.md).
static let testInstanceURL = URL(string: "https://i01.v.yattee.stream")!
/// Test instance for API calls.
static let testInstance = Instance(
type: .invidious,
url: testInstanceURL,
name: "Test Instance"
)
/// A stable, popular video ID for testing (Rick Astley - Never Gonna Give You Up).
static let testVideoID = "dQw4w9WgXcQ"
/// Rick Astley's channel ID.
static let testChannelID = "UCuAXFkgsw1L7xaCfnd5JJOw"
/// A popular music playlist ID.
static let testPlaylistID = "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"
/// A stable search query.
static let testSearchQuery = "never gonna give you up"
/// Timeout for network requests (30 seconds).
static let networkTimeout: TimeInterval = 30
}