Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ final class AutoScanUITests: XCTestCase {
app.otherElements.matching(identifier: "Horizontal scroll bar, 1 page").element(boundBy: 0).swipeUp()

// Catalog — browse the categories.
app.images["Category"].firstMatch.tap()
app.goToTab("Catalog")
app.scrollViews.firstMatch.swipeUp()

// Cart — add an item.
app.images["Bag"].firstMatch.tap()
app.goToTab("Cart")
app.buttons.matching(identifier: "+").element(boundBy: 1).tap()

// Profile — open and scroll to the help section.
app.images["Menu"].firstMatch.tap()
app.goToTab("Profile")
app.cells.containing(.image, identifier: "Info Square").firstMatch.swipeUp()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,15 @@ final class TargetedScanUITests: XCTestCase {
}

/// Scans a couple of screens and uploads each result to DevHub, showing the
/// common reporting options: a custom scan name and tags.
/// common reporting option: a custom scan name.
func testScanAndUploadToDevHub() throws {
let axe = try XCTUnwrap(axe, "axe DevTools didn't start — did you add your API key to Login.swift?")

app.goToTab("Home")
try axe.postResult(try axe.run(onElement: app), withScanName: "Home Tab")

app.goToTab("Catalog")
// Tags make a scan easy to find and share on DevHub.
try axe.postResult(try axe.run(onElement: app), withTags: ["smoke", "catalog"], withScanName: "Catalog Tab")
try axe.postResult(try axe.run(onElement: app), withScanName: "Catalog Tab")
}

/// Demonstrates gating a build on accessibility: fail if any CRITICAL issues are found.
Expand Down
Loading