-
Notifications
You must be signed in to change notification settings - Fork 4
chore: refresh sample app with targeted scan, AutoScan, and HTML report examples #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kyleleedq
wants to merge
2
commits into
main
Choose a base branch
from
claude/amazing-heyrovsky-9b4fb7
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...vtools-ios-sample-app.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
axe-devtools-ios-sample-appUITests/AutoScan/AutoScanUITests.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| // | ||
| // AutoScanUITests.swift | ||
| // axe-devtools-ios-sample-appUITests | ||
| // | ||
| // AUTOSCAN — the zero-code path. | ||
| // | ||
| // Notice what's NOT here: no `import axeDevToolsXCUI`, no session setup, no | ||
| // scan calls, no report calls. That's the whole point of AutoScan. | ||
| // | ||
| // As long as the axeDevToolsXCUI framework is linked to this test target and | ||
| // `axe_config.json` has `"axeAutoScanMode": true`, the framework automatically: | ||
| // 1. Starts AutoScan when the test bundle begins. | ||
| // 2. Captures and de-duplicates each unique screen as you tap and swipe. | ||
| // 3. Scans everything and writes an HTML report when the test bundle finishes. | ||
| // | ||
| // AutoScan ships DISABLED in this sample. To try it, open axe_config.json, | ||
| // set `"axeAutoScanMode": true`, and fill in your axeMobileApiKey/axeProjectId. | ||
| // Then just drive the app the way a user would — no other code required. | ||
| // | ||
| // Full guide: https://docs.deque.com/devtools-mobile/ | ||
| // | ||
|
|
||
| import XCTest | ||
|
|
||
| final class AutoScanUITests: XCTestCase { | ||
| private let app = XCUIApplication() | ||
|
|
||
| override func setUpWithError() throws { | ||
| continueAfterFailure = false | ||
| app.launch() | ||
| } | ||
|
|
||
| /// A plain user journey across the app, recorded with Xcode's UI test recorder | ||
| /// and then tidied up. There is no accessibility code here — AutoScan captures | ||
| /// and scans each screen automatically as these gestures run. | ||
| func testUserJourney() throws { | ||
| // Home — scroll through the featured content. | ||
| app.collectionViews.containing(.other, identifier: "Vertical scroll bar, 4 pages").firstMatch.swipeUp() | ||
| app.otherElements.matching(identifier: "Horizontal scroll bar, 1 page").element(boundBy: 0).swipeUp() | ||
|
|
||
| // Catalog — browse the categories. | ||
| app.images["Category"].firstMatch.tap() | ||
| app.scrollViews.firstMatch.swipeUp() | ||
|
|
||
| // Cart — add an item. | ||
| app.images["Bag"].firstMatch.tap() | ||
| app.buttons.matching(identifier: "+").element(boundBy: 1).tap() | ||
|
|
||
| // Profile — open and scroll to the help section. | ||
| app.images["Menu"].firstMatch.tap() | ||
| app.cells.containing(.image, identifier: "Info Square").firstMatch.swipeUp() | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the incorrect version of the framework and MUST be updated before merging