Skip to content
Merged
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
12 changes: 6 additions & 6 deletions axe-devtools-ios-sample-appUITests/SampleUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import axeDevToolsXCUI
import XCTest

/*
Full Getting Started guide is available here: https://docs.deque.com/devtools-mobile-analyzer/2023.8.16/en/ios-setup
Full Getting Started guide is available here: https://docs.deque.com/devtools-mobile/ios-setup

Quick Start Guide

Expand Down Expand Up @@ -52,15 +52,15 @@ class SampleUITests: XCTestCase {

// Run a scan on the first page of the sample app
// For more information about running an accessibility scan visit:
// https://docs.deque.com/devtools-mobile/2023.8.16/en/xcui#capture-a-scan
// https://docs.deque.com/devtools-mobile/xcui-setup#automated-testing
guard let result = try axe?.run(onElement: app) else {
XCTFail("\n\n🦮 axe DevTools didn't run - Did you add your API key in Login.swift?\n\n")
return
}

// Post scan results to the mobile dashboard
// For more information on this feature please visit:
// https://docs.deque.com/devtools-mobile/2023.8.16/en/xcui#send-results-to-the-dashboard
// https://docs.deque.com/devtools-mobile/ios-upload
try axe?.postResult(result)

let tabBar = XCUIApplication().tabBars["Tab Bar"]
Expand All @@ -74,7 +74,7 @@ class SampleUITests: XCTestCase {

// Add a custom scan name when posting result. By default, the screen title is the scan name.
// For more information on renaming a scan, check out:
// https://docs.deque.com/devtools-mobile/2023.8.16/en/ios-scan-name
// https://docs.deque.com/devtools-mobile/ios-scan-name
let newScanName = "Catalog Tab"

try axe?.postResult(result, withScanName: newScanName)
Expand All @@ -87,7 +87,7 @@ class SampleUITests: XCTestCase {

// Add tags to your scan to easily share with your coworkers when it's pushed to the dashboard.
// For more infromation on tagging a scan please see:
// https://docs.deque.com/devtools-mobile/2023.8.16/en/ios-tag-result
// https://docs.deque.com/devtools-mobile/ios-tag-result
let tags = ["Cart Tab, iPhone 15 Pro"]

try axe?.postResult(result, withTags: tags)
Expand All @@ -102,7 +102,7 @@ class SampleUITests: XCTestCase {

// This test runs an accessibility scan on the first page of the sample application and saves the scan results locally. By default, the results will be saved to a folder called 'AxeDevToolsResults' within your local User folder
// For more information on saving results locally, please visit:
// https://docs.deque.com/devtools-mobile/2023.8.16/en/ios-save-result
// https://docs.deque.com/devtools-mobile/ios-save-result
func testAccessibilityAndSaveResultsLocally() throws {
var lastResult: AxeResult?
guard let result = try axe?.run(onElement: app) else {
Expand Down
Loading