]> git.r.bdr.sh - rbdr/captura/blame - CapturaUITests/CapturaUITestsLaunchTests.swift
Format the code
[rbdr/captura] / CapturaUITests / CapturaUITestsLaunchTests.swift
CommitLineData
5802c153
RBR
1/*
2 Copyright (C) 2024 Rubén Beltrán del Río
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see https://captura.tranquil.systems.
16 */
bf063563
RBR
17
18import XCTest
19
20final class CapturaUITestsLaunchTests: XCTestCase {
21
505c1e62
RBR
22 override class var runsForEachTargetApplicationUIConfiguration: Bool {
23 true
24 }
25
26 override func setUpWithError() throws {
27 continueAfterFailure = false
28 }
29
30 func testLaunch() throws {
31 let app = XCUIApplication()
32 app.launch()
33
34 // Insert steps here to perform after app launch but before taking a screenshot,
35 // such as logging into a test account or navigating somewhere in the app
36
37 let attachment = XCTAttachment(screenshot: app.screenshot())
38 attachment.name = "Launch Screen"
39 attachment.lifetime = .keepAlways
40 add(attachment)
41 }
bf063563 42}