@deque/axe-appium3-webdriveragent 0.0.0-stage → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Configurations/IOSSettings.xcconfig +31 -0
- package/Configurations/IOSTestSettings.xcconfig +1 -0
- package/Configurations/TVOSSettings.xcconfig +31 -0
- package/Configurations/TVOSTestSettings.xcconfig +1 -0
- package/LICENSE +66 -0
- package/LICENSE-3RD-PARTY.md +70 -0
- package/MySwiftFramework/JSONHelper.swift +31 -0
- package/MySwiftFramework/MySwiftFramework.h +18 -0
- package/PrivateHeaders/AccessibilityUtilities/AXSettings.h +15 -0
- package/PrivateHeaders/MobileCoreServices/LSApplicationWorkspace.h +127 -0
- package/PrivateHeaders/TextInput/TIPreferencesController.h +45 -0
- package/PrivateHeaders/UIKitCore/UIKeyboardImpl.h +27 -0
- package/PrivateHeaders/XCTest/CDStructures.h +7 -0
- package/PrivateHeaders/XCTest/NSFastEnumeration-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCAXClient_iOS.h +91 -0
- package/PrivateHeaders/XCTest/XCApplicationQuery.h +30 -0
- package/PrivateHeaders/XCTest/XCDebugLogDelegate-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCPointerEvent.h +63 -0
- package/PrivateHeaders/XCTest/XCPointerEventPath.h +65 -0
- package/PrivateHeaders/XCTest/XCSynthesizedEventRecord.h +55 -0
- package/PrivateHeaders/XCTest/XCTAggregateSuiteRunStatistics.h +38 -0
- package/PrivateHeaders/XCTest/XCTAttachmentManager.h +33 -0
- package/PrivateHeaders/XCTest/XCTCapabilities.h +35 -0
- package/PrivateHeaders/XCTest/XCTCapabilitiesProviding-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTElementSetTransformer-Protocol.h +35 -0
- package/PrivateHeaders/XCTest/XCTElementSnapshotAttributeDataSource-Protocol.h +33 -0
- package/PrivateHeaders/XCTest/XCTElementSnapshotProvider-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTExpectedFailureContextManager.h +35 -0
- package/PrivateHeaders/XCTest/XCTFuture.h +45 -0
- package/PrivateHeaders/XCTest/XCTHarnessEventReporting-Protocol.h +29 -0
- package/PrivateHeaders/XCTest/XCTIssue.h +49 -0
- package/PrivateHeaders/XCTest/XCTIssueHandling-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/XCTMacCatalystStatusProviding-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTMeasureOptions.h +48 -0
- package/PrivateHeaders/XCTest/XCTMemoryChecker.h +50 -0
- package/PrivateHeaders/XCTest/XCTMemoryCheckerDelegate-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/XCTMessagingChannel_IDEToRunner-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/XCTMessagingChannel_RunnerToDaemon-Protocol.h +39 -0
- package/PrivateHeaders/XCTest/XCTMessagingChannel_RunnerToIDE-Protocol.h +32 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_ActivityReporting-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_AttachmentFutureResultStatusUpdating-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_BundleRequesting-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_CapabilityExchange-Protocol.h +56 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_DebugLogging-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_EventSynthesis-Protocol.h +34 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_ForcePressureSupportQuerying-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_HIDEventRecording-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_MemoryTesting-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_PerformanceMeasurementReporting-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_ProcessMonitoring-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_ProtectedResourceAuthorization-Protocol.h +22 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_ScreenRecording-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_SelfDiagnosisIssueReporting-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_SignpostRequesting-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_SiriAutomation-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_SystemConfiguration-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_TelemetrySending-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_TestExecution-Protocol.h +28 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_TestReporting-Protocol.h +40 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_UIAutomation-Protocol.h +29 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_UIAutomationRunnerEventReporting-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/XCTMessagingRole_UserPresence-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTMetricDiagnosticHelper.h +49 -0
- package/PrivateHeaders/XCTest/XCTNSPredicateExpectationObject-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTPromise.h +30 -0
- package/PrivateHeaders/XCTest/XCTRemoteSignpostListenerProxy-Protocol.h +29 -0
- package/PrivateHeaders/XCTest/XCTRepetitionPolicy.h +43 -0
- package/PrivateHeaders/XCTest/XCTReportingSession.h +50 -0
- package/PrivateHeaders/XCTest/XCTReportingSessionConfiguration-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/XCTReportingSessionIssueReporter-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTReportingSessionTestContainer-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/XCTReportingSessionTestReporter.h +51 -0
- package/PrivateHeaders/XCTest/XCTRunnerAutomationSession-Protocol.h +38 -0
- package/PrivateHeaders/XCTest/XCTRunnerDaemonSession.h +96 -0
- package/PrivateHeaders/XCTest/XCTRunnerDaemonSessionUIAutomationDelegate-Protocol.h +33 -0
- package/PrivateHeaders/XCTest/XCTRunnerIDESession.h +99 -0
- package/PrivateHeaders/XCTest/XCTRunnerIDESessionDelegate-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTRuntimeDiagnosticsPolicy.h +36 -0
- package/PrivateHeaders/XCTest/XCTRuntimeIssueDetectionPolicy.h +39 -0
- package/PrivateHeaders/XCTest/XCTScreenCapturePolicy.h +35 -0
- package/PrivateHeaders/XCTest/XCTSignpostListener-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCTSkippedTestContext.h +37 -0
- package/PrivateHeaders/XCTest/XCTSourceCodeContext.h +39 -0
- package/PrivateHeaders/XCTest/XCTSourceCodeLocation.h +31 -0
- package/PrivateHeaders/XCTest/XCTTagSelection.h +41 -0
- package/PrivateHeaders/XCTest/XCTTestIdentifier.h +81 -0
- package/PrivateHeaders/XCTest/XCTTestIdentifierSet.h +54 -0
- package/PrivateHeaders/XCTest/XCTTestSelection.h +35 -0
- package/PrivateHeaders/XCTest/XCTWaiter.h +54 -0
- package/PrivateHeaders/XCTest/XCTWaiterManagement-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTWaiterManager-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCTWaiterWait.h +40 -0
- package/PrivateHeaders/XCTest/XCTest.h +53 -0
- package/PrivateHeaders/XCTest/XCTestCase.h +180 -0
- package/PrivateHeaders/XCTest/XCTestCaseDiscoveryUIAutomationDelegate-Protocol.h +20 -0
- package/PrivateHeaders/XCTest/XCTestCaseRun.h +28 -0
- package/PrivateHeaders/XCTest/XCTestCaseUIAutomationDelegate-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCTestCastMethodNamesUIAutomationDelegate-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCTestConfiguration.h +94 -0
- package/PrivateHeaders/XCTest/XCTestDriver.h +64 -0
- package/PrivateHeaders/XCTest/XCTestExpectation.h +50 -0
- package/PrivateHeaders/XCTest/XCTestExpectationDelegate-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCTestObservationCenter.h +60 -0
- package/PrivateHeaders/XCTest/XCTestRun.h +44 -0
- package/PrivateHeaders/XCTest/XCUIAXNotificationHandling-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCUIAccessibilityInterface-Protocol.h +58 -0
- package/PrivateHeaders/XCTest/XCUIAlertMonitoring-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/XCUIApplication.h +98 -0
- package/PrivateHeaders/XCTest/XCUIApplicationAutomationSessionProviding-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/XCUIApplicationImpl.h +90 -0
- package/PrivateHeaders/XCTest/XCUIApplicationImplReporter-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/XCUIApplicationManaging-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCUIApplicationMonitor-Protocol.h +43 -0
- package/PrivateHeaders/XCTest/XCUIApplicationOpenRequest.h +34 -0
- package/PrivateHeaders/XCTest/XCUIApplicationPlatformServicesProviderDelegate-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCUIApplicationProcess.h +105 -0
- package/PrivateHeaders/XCTest/XCUIApplicationProcessDelegate-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCUIApplicationProcessManaging-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/XCUIApplicationProcessTracker-Protocol.h +28 -0
- package/PrivateHeaders/XCTest/XCUIApplicationRegistry.h +32 -0
- package/PrivateHeaders/XCTest/XCUIButtonConsole.h +26 -0
- package/PrivateHeaders/XCTest/XCUICoordinate.h +49 -0
- package/PrivateHeaders/XCTest/XCUIDevice.h +134 -0
- package/PrivateHeaders/XCTest/XCUIDeviceAutomationModeInterface-Protocol.h +25 -0
- package/PrivateHeaders/XCTest/XCUIDeviceDelayedAttachmentTransferSupportInterface-Protocol.h +22 -0
- package/PrivateHeaders/XCTest/XCUIDeviceEventAndStateInterface-Protocol.h +40 -0
- package/PrivateHeaders/XCTest/XCUIElement.h +207 -0
- package/PrivateHeaders/XCTest/XCUIElementAttributesPrivate-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/XCUIElementEventTarget-Protocol.h +38 -0
- package/PrivateHeaders/XCTest/XCUIElementQuery.h +166 -0
- package/PrivateHeaders/XCTest/XCUIElementTypeQueryProvider_Private-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCUIEventRecording-Protocol.h +37 -0
- package/PrivateHeaders/XCTest/XCUIHitPointResult.h +25 -0
- package/PrivateHeaders/XCTest/XCUIInterruptionMonitoring-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/XCUIIssueDiagnosticsProviding-Protocol.h +23 -0
- package/PrivateHeaders/XCTest/XCUIKnobControl.h +26 -0
- package/PrivateHeaders/XCTest/XCUILocation.h +24 -0
- package/PrivateHeaders/XCTest/XCUIPlatformApplicationServicesProviding-Protocol.h +33 -0
- package/PrivateHeaders/XCTest/XCUIRemoteAccessibilityInterface-Protocol.h +45 -0
- package/PrivateHeaders/XCTest/XCUIRemoteDeviceRunner-Protocol.h +24 -0
- package/PrivateHeaders/XCTest/XCUIRemoteSiriInterface-Protocol.h +30 -0
- package/PrivateHeaders/XCTest/XCUIResetAuthorizationStatusOfProtectedResourcesInterface-Protocol.h +22 -0
- package/PrivateHeaders/XCTest/XCUIScreen.h +53 -0
- package/PrivateHeaders/XCTest/XCUIScreenDataSource-Protocol.h +35 -0
- package/PrivateHeaders/XCTest/XCUISiriService.h +39 -0
- package/PrivateHeaders/XCTest/XCUISystem.h +26 -0
- package/PrivateHeaders/XCTest/XCUIXcodeApplicationManaging-Protocol.h +27 -0
- package/PrivateHeaders/XCTest/_TtC10XCTestCore19XCTReportingContext.h +26 -0
- package/PrivateHeaders/XCTest/_XCTMessaging_VoidProtocol-Protocol.h +20 -0
- package/PrivateHeaders/XCTest/_XCTestObservationInternal-Protocol.h +26 -0
- package/PrivateHeaders/XCTest/_XCTestObservationPrivate-Protocol.h +27 -0
- package/README.md +57 -2
- package/Scripts/build-webdriveragent.mjs +93 -0
- package/Scripts/build.sh +137 -0
- package/Scripts/bundle-mobile-assets.sh +35 -0
- package/Scripts/embed-runner-icon.sh +118 -0
- package/Scripts/fetch-prebuilt-wda.mjs +81 -0
- package/Scripts/update-wda-version.mjs +44 -0
- package/WebDriverAgent.xcodeproj/project.pbxproj +8522 -0
- package/WebDriverAgent.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/WebDriverAgent.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/WebDriverAgent.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationApp.xcscheme +87 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationApp_tvOS.xcscheme +78 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationApp_watchOS.xcscheme +78 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationTests_1.xcscheme +93 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationTests_2.xcscheme +93 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationTests_3.xcscheme +93 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationTests_tvOS.xcscheme +93 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/IntegrationTests_watchOS.xcscheme +93 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentLib.xcscheme +125 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentLib_tvOS.xcscheme +95 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentLib_watchOS.xcscheme +85 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentRunner-nodebug.xcscheme +87 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentRunner.xcscheme +132 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentRunner_noauth.xcscheme +70 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentRunner_tvOS.xcscheme +123 -0
- package/WebDriverAgent.xcodeproj/xcshareddata/xcschemes/WebDriverAgentRunner_watchOS.xcscheme +128 -0
- package/WebDriverAgentLib/Categories/FBXCElementSnapshotWrapper+Helpers.h +100 -0
- package/WebDriverAgentLib/Categories/FBXCElementSnapshotWrapper+Helpers.m +192 -0
- package/WebDriverAgentLib/Categories/NSDictionary+FBUtf8SafeDictionary.h +39 -0
- package/WebDriverAgentLib/Categories/NSDictionary+FBUtf8SafeDictionary.m +105 -0
- package/WebDriverAgentLib/Categories/NSExpression+FBFormat.h +29 -0
- package/WebDriverAgentLib/Categories/NSExpression+FBFormat.m +34 -0
- package/WebDriverAgentLib/Categories/NSString+FBVisualLength.h +18 -0
- package/WebDriverAgentLib/Categories/NSString+FBVisualLength.m +18 -0
- package/WebDriverAgentLib/Categories/NSString+FBXMLSafeString.h +27 -0
- package/WebDriverAgentLib/Categories/NSString+FBXMLSafeString.m +30 -0
- package/WebDriverAgentLib/Categories/XCAXClient_iOS+FBSnapshotReqParams.h +26 -0
- package/WebDriverAgentLib/Categories/XCAXClient_iOS+FBSnapshotReqParams.m +181 -0
- package/WebDriverAgentLib/Categories/XCTIssue+FBPatcher.h +17 -0
- package/WebDriverAgentLib/Categories/XCTIssue+FBPatcher.m +35 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBAlert.h +47 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBAlert.m +179 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBFocused.h +23 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.h +186 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBHelpers.m +674 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBQuiescence.h +24 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBQuiescence.m +28 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBTouchAction.h +82 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBTouchAction.m +198 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBUIInterruptions.h +22 -0
- package/WebDriverAgentLib/Categories/XCUIApplication+FBUIInterruptions.m +31 -0
- package/WebDriverAgentLib/Categories/XCUIApplicationProcess+FBQuiescence.h +27 -0
- package/WebDriverAgentLib/Categories/XCUIApplicationProcess+FBQuiescence.m +111 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHealthCheck.h +30 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHealthCheck.m +47 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.h +236 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m +478 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHinge.h +41 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHinge.m +215 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBRotation.h +46 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBRotation.m +108 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBVoiceOver.h +66 -0
- package/WebDriverAgentLib/Categories/XCUIDevice+FBVoiceOver.m +218 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBAccessibility.h +29 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBAccessibility.m +50 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBCaching.h +19 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBCaching.m +36 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBClassChain.h +57 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBClassChain.m +239 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBCustomActions.h +27 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBCustomActions.m +127 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBFind.h +75 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBFind.m +146 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBForceTouch.h +38 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBForceTouch.m +55 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBIsVisible.h +28 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBIsVisible.m +78 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBMinMax.h +33 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBMinMax.m +75 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBPickerWheel.h +45 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBPickerWheel.m +59 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBResolve.h +37 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBResolve.m +51 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBScrolling.h +98 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBScrolling.m +465 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBSwiping.h +38 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBSwiping.m +56 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBTVFocuse.h +35 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBTVFocuse.m +71 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBTyping.h +97 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBTyping.m +233 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBUID.h +42 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBUID.m +85 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBUtilities.h +108 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBUtilities.m +175 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBVisibleFrame.h +35 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBVisibleFrame.m +61 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBWebDriverAttributes.h +32 -0
- package/WebDriverAgentLib/Categories/XCUIElement+FBWebDriverAttributes.m +299 -0
- package/WebDriverAgentLib/Categories/XCUIElementQuery+FBHelpers.h +28 -0
- package/WebDriverAgentLib/Categories/XCUIElementQuery+FBHelpers.m +47 -0
- package/WebDriverAgentLib/Commands/AxeAuthCommands.h +30 -0
- package/WebDriverAgentLib/Commands/AxeAuthCommands.m +175 -0
- package/WebDriverAgentLib/Commands/AxeAutoScanCommands.h +19 -0
- package/WebDriverAgentLib/Commands/AxeAutoScanCommands.m +143 -0
- package/WebDriverAgentLib/Commands/AxeProductDeclaration.h +21 -0
- package/WebDriverAgentLib/Commands/AxeProductDeclaration.m +40 -0
- package/WebDriverAgentLib/Commands/AxeReportCommands.h +20 -0
- package/WebDriverAgentLib/Commands/AxeReportCommands.m +62 -0
- package/WebDriverAgentLib/Commands/AxeScanCommands.h +20 -0
- package/WebDriverAgentLib/Commands/AxeScanCommands.m +386 -0
- package/WebDriverAgentLib/Commands/AxeUsageCommands.h +27 -0
- package/WebDriverAgentLib/Commands/AxeUsageCommands.m +90 -0
- package/WebDriverAgentLib/Commands/FBAlertViewCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBAlertViewCommands.m +104 -0
- package/WebDriverAgentLib/Commands/FBCustomCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBCustomCommands.m +848 -0
- package/WebDriverAgentLib/Commands/FBDebugCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBDebugCommands.m +81 -0
- package/WebDriverAgentLib/Commands/FBElementCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBElementCommands.m +775 -0
- package/WebDriverAgentLib/Commands/FBFindElementCommands.h +18 -0
- package/WebDriverAgentLib/Commands/FBFindElementCommands.m +186 -0
- package/WebDriverAgentLib/Commands/FBOrientationCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBOrientationCommands.m +192 -0
- package/WebDriverAgentLib/Commands/FBScreenshotCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBScreenshotCommands.m +40 -0
- package/WebDriverAgentLib/Commands/FBSessionCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBSessionCommands.m +519 -0
- package/WebDriverAgentLib/Commands/FBTouchActionCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBTouchActionCommands.m +41 -0
- package/WebDriverAgentLib/Commands/FBTouchIDCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBTouchIDCommands.m +30 -0
- package/WebDriverAgentLib/Commands/FBUnknownCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBUnknownCommands.m +39 -0
- package/WebDriverAgentLib/Commands/FBVideoCommands.h +19 -0
- package/WebDriverAgentLib/Commands/FBVideoCommands.m +84 -0
- package/WebDriverAgentLib/FBAlert.h +104 -0
- package/WebDriverAgentLib/FBAlert.m +454 -0
- package/WebDriverAgentLib/Info.plist +26 -0
- package/WebDriverAgentLib/Routing/FBCommandHandler.h +38 -0
- package/WebDriverAgentLib/Routing/FBCommandStatus.h +80 -0
- package/WebDriverAgentLib/Routing/FBCommandStatus.m +279 -0
- package/WebDriverAgentLib/Routing/FBElement.h +98 -0
- package/WebDriverAgentLib/Routing/FBElementCache.h +61 -0
- package/WebDriverAgentLib/Routing/FBElementCache.m +100 -0
- package/WebDriverAgentLib/Routing/FBElementUtils.h +76 -0
- package/WebDriverAgentLib/Routing/FBElementUtils.m +153 -0
- package/WebDriverAgentLib/Routing/FBExceptionHandler.h +29 -0
- package/WebDriverAgentLib/Routing/FBExceptionHandler.m +65 -0
- package/WebDriverAgentLib/Routing/FBExceptions.h +69 -0
- package/WebDriverAgentLib/Routing/FBExceptions.m +27 -0
- package/WebDriverAgentLib/Routing/FBHTTPServer.h +97 -0
- package/WebDriverAgentLib/Routing/FBHTTPServer.m +955 -0
- package/WebDriverAgentLib/Routing/FBHTTPStatusCodes.h +581 -0
- package/WebDriverAgentLib/Routing/FBResponseJSONPayload.h +29 -0
- package/WebDriverAgentLib/Routing/FBResponseJSONPayload.m +58 -0
- package/WebDriverAgentLib/Routing/FBResponsePayload.h +74 -0
- package/WebDriverAgentLib/Routing/FBResponsePayload.m +148 -0
- package/WebDriverAgentLib/Routing/FBRoute.h +86 -0
- package/WebDriverAgentLib/Routing/FBRoute.m +183 -0
- package/WebDriverAgentLib/Routing/FBRouteRequest-Private.h +20 -0
- package/WebDriverAgentLib/Routing/FBRouteRequest.h +39 -0
- package/WebDriverAgentLib/Routing/FBRouteRequest.m +32 -0
- package/WebDriverAgentLib/Routing/FBScreenRecordingContainer.h +65 -0
- package/WebDriverAgentLib/Routing/FBScreenRecordingContainer.m +88 -0
- package/WebDriverAgentLib/Routing/FBScreenRecordingPromise.h +29 -0
- package/WebDriverAgentLib/Routing/FBScreenRecordingPromise.m +31 -0
- package/WebDriverAgentLib/Routing/FBScreenRecordingRequest.h +39 -0
- package/WebDriverAgentLib/Routing/FBScreenRecordingRequest.m +99 -0
- package/WebDriverAgentLib/Routing/FBSession-Private.h +26 -0
- package/WebDriverAgentLib/Routing/FBSession.h +179 -0
- package/WebDriverAgentLib/Routing/FBSession.m +575 -0
- package/WebDriverAgentLib/Routing/FBTCPSocket.h +117 -0
- package/WebDriverAgentLib/Routing/FBTCPSocket.m +244 -0
- package/WebDriverAgentLib/Routing/FBWebServer.h +68 -0
- package/WebDriverAgentLib/Routing/FBWebServer.m +306 -0
- package/WebDriverAgentLib/Routing/FBXCAccessibilityElement.h +34 -0
- package/WebDriverAgentLib/Routing/FBXCAccessibilityElement.m +17 -0
- package/WebDriverAgentLib/Routing/FBXCDeviceEvent.h +34 -0
- package/WebDriverAgentLib/Routing/FBXCDeviceEvent.m +42 -0
- package/WebDriverAgentLib/Routing/FBXCElementSnapshot.h +82 -0
- package/WebDriverAgentLib/Routing/FBXCElementSnapshot.m +9 -0
- package/WebDriverAgentLib/Routing/FBXCElementSnapshotWrapper.h +29 -0
- package/WebDriverAgentLib/Routing/FBXCElementSnapshotWrapper.m +114 -0
- package/WebDriverAgentLib/Routing/RouteRequest.h +28 -0
- package/WebDriverAgentLib/Routing/RouteRequest.m +25 -0
- package/WebDriverAgentLib/Routing/RouteResponse.h +30 -0
- package/WebDriverAgentLib/Routing/RouteResponse.m +54 -0
- package/WebDriverAgentLib/Utilities/FBAccessibilityTraits.h +20 -0
- package/WebDriverAgentLib/Utilities/FBAccessibilityTraits.m +61 -0
- package/WebDriverAgentLib/Utilities/FBActiveAppDetectionPoint.h +56 -0
- package/WebDriverAgentLib/Utilities/FBActiveAppDetectionPoint.m +115 -0
- package/WebDriverAgentLib/Utilities/FBAlertsMonitor.h +51 -0
- package/WebDriverAgentLib/Utilities/FBAlertsMonitor.m +110 -0
- package/WebDriverAgentLib/Utilities/FBBaseActionsSynthesizer.h +132 -0
- package/WebDriverAgentLib/Utilities/FBBaseActionsSynthesizer.m +165 -0
- package/WebDriverAgentLib/Utilities/FBCapabilities.h +43 -0
- package/WebDriverAgentLib/Utilities/FBCapabilities.m +24 -0
- package/WebDriverAgentLib/Utilities/FBClassChainQueryParser.h +99 -0
- package/WebDriverAgentLib/Utilities/FBClassChainQueryParser.m +666 -0
- package/WebDriverAgentLib/Utilities/FBConfiguration.h +379 -0
- package/WebDriverAgentLib/Utilities/FBConfiguration.m +476 -0
- package/WebDriverAgentLib/Utilities/FBDebugLogDelegateDecorator.h +26 -0
- package/WebDriverAgentLib/Utilities/FBDebugLogDelegateDecorator.m +49 -0
- package/WebDriverAgentLib/Utilities/FBElementHelpers.h +29 -0
- package/WebDriverAgentLib/Utilities/FBElementHelpers.m +21 -0
- package/WebDriverAgentLib/Utilities/FBElementTypeTransformer.h +45 -0
- package/WebDriverAgentLib/Utilities/FBElementTypeTransformer.m +149 -0
- package/WebDriverAgentLib/Utilities/FBErrorBuilder.h +64 -0
- package/WebDriverAgentLib/Utilities/FBErrorBuilder.m +75 -0
- package/WebDriverAgentLib/Utilities/FBFailureProofTestCase.h +19 -0
- package/WebDriverAgentLib/Utilities/FBFailureProofTestCase.m +74 -0
- package/WebDriverAgentLib/Utilities/FBImageProcessor.h +55 -0
- package/WebDriverAgentLib/Utilities/FBImageProcessor.m +197 -0
- package/WebDriverAgentLib/Utilities/FBImageUtils.h +25 -0
- package/WebDriverAgentLib/Utilities/FBImageUtils.m +80 -0
- package/WebDriverAgentLib/Utilities/FBKeyboard.h +37 -0
- package/WebDriverAgentLib/Utilities/FBKeyboard.m +123 -0
- package/WebDriverAgentLib/Utilities/FBLogger.h +32 -0
- package/WebDriverAgentLib/Utilities/FBLogger.m +47 -0
- package/WebDriverAgentLib/Utilities/FBMacros.h +66 -0
- package/WebDriverAgentLib/Utilities/FBMathUtils.h +100 -0
- package/WebDriverAgentLib/Utilities/FBMathUtils.m +147 -0
- package/WebDriverAgentLib/Utilities/FBMjpegServer.h +36 -0
- package/WebDriverAgentLib/Utilities/FBMjpegServer.m +248 -0
- package/WebDriverAgentLib/Utilities/FBNotificationsHelper.h +37 -0
- package/WebDriverAgentLib/Utilities/FBNotificationsHelper.m +29 -0
- package/WebDriverAgentLib/Utilities/FBPasteboard.h +40 -0
- package/WebDriverAgentLib/Utilities/FBPasteboard.m +176 -0
- package/WebDriverAgentLib/Utilities/FBProtocolHelpers.h +46 -0
- package/WebDriverAgentLib/Utilities/FBProtocolHelpers.m +144 -0
- package/WebDriverAgentLib/Utilities/FBReflectionUtils.h +23 -0
- package/WebDriverAgentLib/Utilities/FBReflectionUtils.m +31 -0
- package/WebDriverAgentLib/Utilities/FBRunLoopSpinner.h +77 -0
- package/WebDriverAgentLib/Utilities/FBRunLoopSpinner.m +94 -0
- package/WebDriverAgentLib/Utilities/FBRuntimeUtils.h +79 -0
- package/WebDriverAgentLib/Utilities/FBRuntimeUtils.m +112 -0
- package/WebDriverAgentLib/Utilities/FBScreen.h +49 -0
- package/WebDriverAgentLib/Utilities/FBScreen.m +128 -0
- package/WebDriverAgentLib/Utilities/FBScreenshot.h +44 -0
- package/WebDriverAgentLib/Utilities/FBScreenshot.m +231 -0
- package/WebDriverAgentLib/Utilities/FBSettings.h +51 -0
- package/WebDriverAgentLib/Utilities/FBSettings.m +45 -0
- package/WebDriverAgentLib/Utilities/FBSettingsHandler.h +35 -0
- package/WebDriverAgentLib/Utilities/FBSettingsHandler.m +398 -0
- package/WebDriverAgentLib/Utilities/FBTVNavigationTracker-Private.h +37 -0
- package/WebDriverAgentLib/Utilities/FBTVNavigationTracker.h +77 -0
- package/WebDriverAgentLib/Utilities/FBTVNavigationTracker.m +177 -0
- package/WebDriverAgentLib/Utilities/FBUnattachedAppLauncher.h +26 -0
- package/WebDriverAgentLib/Utilities/FBUnattachedAppLauncher.m +21 -0
- package/WebDriverAgentLib/Utilities/FBW3CActionsHelpers.h +42 -0
- package/WebDriverAgentLib/Utilities/FBW3CActionsHelpers.m +119 -0
- package/WebDriverAgentLib/Utilities/FBW3CActionsSynthesizer.h +19 -0
- package/WebDriverAgentLib/Utilities/FBW3CActionsSynthesizer.m +1011 -0
- package/WebDriverAgentLib/Utilities/FBWebServerParams.h +22 -0
- package/WebDriverAgentLib/Utilities/FBWebServerParams.m +23 -0
- package/WebDriverAgentLib/Utilities/FBXCAXClientProxy.h +171 -0
- package/WebDriverAgentLib/Utilities/FBXCAXClientProxy.m +240 -0
- package/WebDriverAgentLib/Utilities/FBXCTestDaemonsProxy.h +45 -0
- package/WebDriverAgentLib/Utilities/FBXCTestDaemonsProxy.m +362 -0
- package/WebDriverAgentLib/Utilities/FBXCodeCompatibility.h +73 -0
- package/WebDriverAgentLib/Utilities/FBXCodeCompatibility.m +129 -0
- package/WebDriverAgentLib/Utilities/FBXMLGenerationOptions.h +45 -0
- package/WebDriverAgentLib/Utilities/FBXMLGenerationOptions.m +25 -0
- package/WebDriverAgentLib/Utilities/FBXPath-Private.h +61 -0
- package/WebDriverAgentLib/Utilities/FBXPath.h +59 -0
- package/WebDriverAgentLib/Utilities/FBXPath.m +1087 -0
- package/WebDriverAgentLib/Utilities/FBXPathExtensions.h +40 -0
- package/WebDriverAgentLib/Utilities/FBXPathExtensions.m +418 -0
- package/WebDriverAgentLib/Utilities/LRUCache/LRUCache.h +66 -0
- package/WebDriverAgentLib/Utilities/LRUCache/LRUCache.m +149 -0
- package/WebDriverAgentLib/Utilities/LRUCache/LRUCacheNode.h +43 -0
- package/WebDriverAgentLib/Utilities/LRUCache/LRUCacheNode.m +51 -0
- package/WebDriverAgentLib/Utilities/NSPredicate+FBFormat.h +42 -0
- package/WebDriverAgentLib/Utilities/NSPredicate+FBFormat.m +69 -0
- package/WebDriverAgentLib/Utilities/XCTestPrivateSymbols.h +78 -0
- package/WebDriverAgentLib/Utilities/XCTestPrivateSymbols.m +127 -0
- package/WebDriverAgentLib/Utilities/XCUIApplicationProcessDelay.h +37 -0
- package/WebDriverAgentLib/Utilities/XCUIApplicationProcessDelay.m +83 -0
- package/WebDriverAgentLib/WebDriverAgentLib.h +61 -0
- package/WebDriverAgentRunner/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/WebDriverAgentRunner/Assets.xcassets/AppIcon.appiconset/icon-1024.png +0 -0
- package/WebDriverAgentRunner/Assets.xcassets/Contents.json +6 -0
- package/WebDriverAgentRunner/Info.plist +30 -0
- package/WebDriverAgentRunner/UITestingUITests.m +58 -0
- package/WebDriverAgentTests/IntegrationApp/COORDINATE_PROBE.md +52 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/AppDelegate.h +14 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/AppDelegate.m +38 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBAlertViewController.h +14 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBAlertViewController.m +82 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBCoordinateProbeViewController.h +4 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBCoordinateProbeViewController.m +194 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBNavigationController.h +12 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBNavigationController.m +25 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBScrollViewController.h +13 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBScrollViewController.m +52 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBTableDataSource.h +16 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/FBTableDataSource.m +35 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/SceneDelegate.h +20 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/SceneDelegate.m +81 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/TouchSpotView.h +17 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/TouchSpotView.m +28 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/TouchViewController.h +23 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/TouchViewController.m +29 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/TouchableView.h +30 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/TouchableView.m +119 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/ViewController.h +12 -0
- package/WebDriverAgentTests/IntegrationApp/Classes/ViewController.m +144 -0
- package/WebDriverAgentTests/IntegrationApp/Info.plist +71 -0
- package/WebDriverAgentTests/IntegrationApp/Resources/Base.lproj/Main.storyboard +650 -0
- package/WebDriverAgentTests/IntegrationApp/main.m +15 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/AppDelegate.h +13 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/AppDelegate.m +26 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/Info.plist +41 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/SceneDelegate.h +15 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/SceneDelegate.m +22 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/ViewController.h +13 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/ViewController.m +79 -0
- package/WebDriverAgentTests/IntegrationApp_tvOS/main.m +17 -0
- package/WebDriverAgentTests/IntegrationApp_watchOS/ContentView.swift +31 -0
- package/WebDriverAgentTests/IntegrationApp_watchOS/WatchSpikeApp.swift +18 -0
- package/WebDriverAgentTests/IntegrationTests/FBAlertTests.m +175 -0
- package/WebDriverAgentTests/IntegrationTests/FBAutoAlertsHandlerTests.m +79 -0
- package/WebDriverAgentTests/IntegrationTests/FBConfigurationTests.m +123 -0
- package/WebDriverAgentTests/IntegrationTests/FBDisplayGestureTests.m +541 -0
- package/WebDriverAgentTests/IntegrationTests/FBElementAttributeTests.m +273 -0
- package/WebDriverAgentTests/IntegrationTests/FBElementSwipingTests.m +222 -0
- package/WebDriverAgentTests/IntegrationTests/FBElementVisibilityTests.m +68 -0
- package/WebDriverAgentTests/IntegrationTests/FBFailureProofTestCaseTests.m +41 -0
- package/WebDriverAgentTests/IntegrationTests/FBForceTouchTests.m +88 -0
- package/WebDriverAgentTests/IntegrationTests/FBImageProcessorTests.m +116 -0
- package/WebDriverAgentTests/IntegrationTests/FBIntegrationAppTests.m +87 -0
- package/WebDriverAgentTests/IntegrationTests/FBIntegrationTestCase.h +101 -0
- package/WebDriverAgentTests/IntegrationTests/FBIntegrationTestCase.m +176 -0
- package/WebDriverAgentTests/IntegrationTests/FBKeyboardTests.m +61 -0
- package/WebDriverAgentTests/IntegrationTests/FBPasteboardTests.m +92 -0
- package/WebDriverAgentTests/IntegrationTests/FBPickerWheelSelectTests.m +55 -0
- package/WebDriverAgentTests/IntegrationTests/FBSafariAlertTests.m +77 -0
- package/WebDriverAgentTests/IntegrationTests/FBScreenTests.m +450 -0
- package/WebDriverAgentTests/IntegrationTests/FBScrollingTests.m +123 -0
- package/WebDriverAgentTests/IntegrationTests/FBSessionIntegrationTests.m +228 -0
- package/WebDriverAgentTests/IntegrationTests/FBTapTest.m +186 -0
- package/WebDriverAgentTests/IntegrationTests/FBTestMacros.h +33 -0
- package/WebDriverAgentTests/IntegrationTests/FBTypingTest.m +68 -0
- package/WebDriverAgentTests/IntegrationTests/FBVideoRecordingTests.m +63 -0
- package/WebDriverAgentTests/IntegrationTests/FBVoiceOverTests.m +103 -0
- package/WebDriverAgentTests/IntegrationTests/FBW3CMultiTouchActionsIntegrationTests.m +159 -0
- package/WebDriverAgentTests/IntegrationTests/FBW3CTouchActionsIntegrationTests.m +700 -0
- package/WebDriverAgentTests/IntegrationTests/FBW3CTypeActionsTests.m +184 -0
- package/WebDriverAgentTests/IntegrationTests/FBXPathIntegrationTests.m +260 -0
- package/WebDriverAgentTests/IntegrationTests/Info.plist +24 -0
- package/WebDriverAgentTests/IntegrationTests/XCElementSnapshotHelperTests.m +205 -0
- package/WebDriverAgentTests/IntegrationTests/XCElementSnapshotHitPointTests.m +30 -0
- package/WebDriverAgentTests/IntegrationTests/XCUIApplicationHelperTests.m +162 -0
- package/WebDriverAgentTests/IntegrationTests/XCUIDeviceHealthCheckTests.m +27 -0
- package/WebDriverAgentTests/IntegrationTests/XCUIDeviceHelperTests.m +236 -0
- package/WebDriverAgentTests/IntegrationTests/XCUIDeviceRotationTests.m +105 -0
- package/WebDriverAgentTests/IntegrationTests/XCUIElementAttributesTests.m +248 -0
- package/WebDriverAgentTests/IntegrationTests/XCUIElementFBFindTests.m +673 -0
- package/WebDriverAgentTests/IntegrationTests/XCUIElementHelperIntegrationTests.m +51 -0
- package/WebDriverAgentTests/IntegrationTests_tvOS/FBTVFocusIntegrationTests.m +84 -0
- package/WebDriverAgentTests/IntegrationTests_tvOS/Info.plist +24 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/IntegrationTests_watchOS-Bridging-Header.h +23 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAAlertIntegrationTests.swift +25 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAAppLifecycleIntegrationTests.swift +37 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAClickIntegrationTests.swift +25 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDADeviceIntegrationTests.swift +92 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAElementAttributeIntegrationTests.swift +39 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAFindIntegrationTests.swift +101 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAMjpegStreamingIntegrationTests.swift +81 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAScreenshotAndSourceIntegrationTests.swift +54 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDATypingIntegrationTests.swift +73 -0
- package/WebDriverAgentTests/IntegrationTests_watchOS/WDAWatchInProcessTestCase.swift +51 -0
- package/WebDriverAgentTests/UnitTests/Doubles/XCElementSnapshotDouble.h +16 -0
- package/WebDriverAgentTests/UnitTests/Doubles/XCElementSnapshotDouble.m +110 -0
- package/WebDriverAgentTests/UnitTests/Doubles/XCUIApplicationDouble.h +17 -0
- package/WebDriverAgentTests/UnitTests/Doubles/XCUIApplicationDouble.m +66 -0
- package/WebDriverAgentTests/UnitTests/Doubles/XCUIElementDouble.h +55 -0
- package/WebDriverAgentTests/UnitTests/Doubles/XCUIElementDouble.m +114 -0
- package/WebDriverAgentTests/UnitTests/FBClassChainTests.m +313 -0
- package/WebDriverAgentTests/UnitTests/FBConfigurationTests.m +72 -0
- package/WebDriverAgentTests/UnitTests/FBCustomCommandsTests.m +144 -0
- package/WebDriverAgentTests/UnitTests/FBElementCacheTests.m +124 -0
- package/WebDriverAgentTests/UnitTests/FBElementTypeTransformerTests.m +45 -0
- package/WebDriverAgentTests/UnitTests/FBElementUtilitiesTests.m +76 -0
- package/WebDriverAgentTests/UnitTests/FBErrorBuilderTests.m +61 -0
- package/WebDriverAgentTests/UnitTests/FBExceptionHandlerTests.m +59 -0
- package/WebDriverAgentTests/UnitTests/FBHTTPServerSessionTests.m +151 -0
- package/WebDriverAgentTests/UnitTests/FBHTTPServerTests.m +458 -0
- package/WebDriverAgentTests/UnitTests/FBLRUCacheTests.m +161 -0
- package/WebDriverAgentTests/UnitTests/FBMathUtilsTests.m +196 -0
- package/WebDriverAgentTests/UnitTests/FBProtocolHelpersTests.m +81 -0
- package/WebDriverAgentTests/UnitTests/FBResponseJSONPayloadTests.m +76 -0
- package/WebDriverAgentTests/UnitTests/FBRouteTests.m +129 -0
- package/WebDriverAgentTests/UnitTests/FBRunLoopSpinnerTests.m +98 -0
- package/WebDriverAgentTests/UnitTests/FBRuntimeUtilsTests.m +45 -0
- package/WebDriverAgentTests/UnitTests/FBSDKVersionTests.m +66 -0
- package/WebDriverAgentTests/UnitTests/FBSessionTests.m +268 -0
- package/WebDriverAgentTests/UnitTests/FBTouchableViewTests.m +121 -0
- package/WebDriverAgentTests/UnitTests/FBXCAXClientProxyTests.m +90 -0
- package/WebDriverAgentTests/UnitTests/FBXMLSafeStringTests.m +35 -0
- package/WebDriverAgentTests/UnitTests/FBXPathTests.m +381 -0
- package/WebDriverAgentTests/UnitTests/Info.plist +24 -0
- package/WebDriverAgentTests/UnitTests/NSDictionaryFBUtf8SafeTests.m +77 -0
- package/WebDriverAgentTests/UnitTests/NSExpressionFBFormatTests.m +60 -0
- package/WebDriverAgentTests/UnitTests/NSPredicateFBFormatTests.m +72 -0
- package/WebDriverAgentTests/UnitTests/XCUIElementHelpersTests.m +50 -0
- package/WebDriverAgentTests/UnitTests_tvOS/Doubles/FBXCAccessibilityElementDouble.h +27 -0
- package/WebDriverAgentTests/UnitTests_tvOS/Doubles/FBXCAccessibilityElementDouble.m +23 -0
- package/WebDriverAgentTests/UnitTests_tvOS/Doubles/FBXCElementSnapshotDouble.h +43 -0
- package/WebDriverAgentTests/UnitTests_tvOS/Doubles/FBXCElementSnapshotDouble.m +24 -0
- package/WebDriverAgentTests/UnitTests_tvOS/Doubles/XCUIElementDouble.h +47 -0
- package/WebDriverAgentTests/UnitTests_tvOS/Doubles/XCUIElementDouble.m +81 -0
- package/WebDriverAgentTests/UnitTests_tvOS/FBTVNavigationTrackerTests.m +134 -0
- package/WebDriverAgentTests/UnitTests_tvOS/Info.plist +24 -0
- package/axeDevToolsXCUI.xcframework/Info.plist +50 -0
- package/axeDevToolsXCUI.xcframework/LICENSE-3RD-PARTY-axe-devtools-ios.md +29 -0
- package/axeDevToolsXCUI.xcframework/axe-devtools-ios-4.3.1.cdx.json +75 -0
- package/axeDevToolsXCUI.xcframework/axe-devtools-ios-4.3.1.spdx.json +67 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/HTMLReportTemplate.html +1912 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Headers/AxeTestBundleObserver.h +55 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Headers/axeDevToolsXCUI-Swift.h +1546 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Headers/axeDevToolsXCUI.h +17 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Info.plist +57 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/LICENSE.md +7 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios.abi.json +34308 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios.private.swiftinterface +927 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios.swiftinterface +927 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/Modules/module.modulemap +10 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64/axeDevToolsXCUI.framework/axeDevToolsXCUI +0 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/HTMLReportTemplate.html +1912 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Headers/AxeTestBundleObserver.h +55 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Headers/axeDevToolsXCUI-Swift.h +3088 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Headers/axeDevToolsXCUI.h +17 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Info.plist +53 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/LICENSE.md +7 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios-simulator.abi.json +34308 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +927 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +927 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/x86_64-apple-ios-simulator.abi.json +34308 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +927 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/axeDevToolsXCUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +927 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/Modules/module.modulemap +10 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/_CodeSignature/CodeResources +278 -0
- package/axeDevToolsXCUI.xcframework/ios-arm64_x86_64-simulator/axeDevToolsXCUI.framework/axeDevToolsXCUI +0 -0
- package/build/lib/check-dependencies.d.ts +6 -0
- package/build/lib/check-dependencies.d.ts.map +1 -0
- package/build/lib/check-dependencies.js +50 -0
- package/build/lib/check-dependencies.js.map +1 -0
- package/build/lib/constants.d.ts +25 -0
- package/build/lib/constants.d.ts.map +1 -0
- package/build/lib/constants.js +28 -0
- package/build/lib/constants.js.map +1 -0
- package/build/lib/index.d.ts +7 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.js +7 -0
- package/build/lib/index.js.map +1 -0
- package/build/lib/logger.d.ts +2 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.js +3 -0
- package/build/lib/logger.js.map +1 -0
- package/build/lib/no-session-proxy.d.ts +7 -0
- package/build/lib/no-session-proxy.d.ts.map +1 -0
- package/build/lib/no-session-proxy.js +17 -0
- package/build/lib/no-session-proxy.js.map +1 -0
- package/build/lib/types.d.ts +206 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js +2 -0
- package/build/lib/types.js.map +1 -0
- package/build/lib/utils/index.d.ts +11 -0
- package/build/lib/utils/index.d.ts.map +1 -0
- package/build/lib/utils/index.js +13 -0
- package/build/lib/utils/index.js.map +1 -0
- package/build/lib/utils/module.d.ts +25 -0
- package/build/lib/utils/module.d.ts.map +1 -0
- package/build/lib/utils/module.js +47 -0
- package/build/lib/utils/module.js.map +1 -0
- package/build/lib/utils/platform.d.ts +19 -0
- package/build/lib/utils/platform.d.ts.map +1 -0
- package/build/lib/utils/platform.js +32 -0
- package/build/lib/utils/platform.js.map +1 -0
- package/build/lib/utils/processes.d.ts +34 -0
- package/build/lib/utils/processes.d.ts.map +1 -0
- package/build/lib/utils/processes.js +151 -0
- package/build/lib/utils/processes.js.map +1 -0
- package/build/lib/utils/security.d.ts +5 -0
- package/build/lib/utils/security.d.ts.map +1 -0
- package/build/lib/utils/security.js +12 -0
- package/build/lib/utils/security.js.map +1 -0
- package/build/lib/utils/xctestrun.d.ts +51 -0
- package/build/lib/utils/xctestrun.d.ts.map +1 -0
- package/build/lib/utils/xctestrun.js +135 -0
- package/build/lib/utils/xctestrun.js.map +1 -0
- package/build/lib/wda-strategies.d.ts +69 -0
- package/build/lib/wda-strategies.d.ts.map +1 -0
- package/build/lib/wda-strategies.js +247 -0
- package/build/lib/wda-strategies.js.map +1 -0
- package/build/lib/webdriveragent.d.ts +175 -0
- package/build/lib/webdriveragent.d.ts.map +1 -0
- package/build/lib/webdriveragent.js +540 -0
- package/build/lib/webdriveragent.js.map +1 -0
- package/build/lib/xcodebuild.d.ts +98 -0
- package/build/lib/xcodebuild.d.ts.map +1 -0
- package/build/lib/xcodebuild.js +562 -0
- package/build/lib/xcodebuild.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/lib/check-dependencies.ts +64 -0
- package/lib/constants.ts +33 -0
- package/lib/index.ts +7 -0
- package/lib/logger.ts +3 -0
- package/lib/no-session-proxy.ts +19 -0
- package/lib/types.ts +238 -0
- package/lib/utils/index.ts +20 -0
- package/lib/utils/module.ts +66 -0
- package/lib/utils/platform.ts +34 -0
- package/lib/utils/processes.ts +174 -0
- package/lib/utils/security.ts +16 -0
- package/lib/utils/xctestrun.ts +188 -0
- package/lib/wda-strategies.ts +343 -0
- package/lib/webdriveragent.ts +642 -0
- package/lib/xcodebuild.ts +678 -0
- package/package.json +114 -3
|
@@ -0,0 +1,1912 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Accessibility Report - Axe DevTools Mobile</title>
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20id%3D%22Layer_1%22%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20.cls-1%20%7B%0A%20%20%20%20%20%20%20%20fill%3A%20%23f6f3ed%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20.cls-2%20%7B%0A%20%20%20%20%20%20%20%20fill%3A%20%232e5f7a%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20.cls-2%2C%20.cls-3%20%7B%0A%20%20%20%20%20%20%20%20fill-rule%3A%20evenodd%3B%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20.cls-3%20%7B%0A%20%20%20%20%20%20%20%20fill%3A%20%23b25295%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%3C%2Fstyle%3E%0A%20%20%3C%2Fdefs%3E%0A%20%20%3Crect%20class%3D%22cls-1%22%20y%3D%220%22%20width%3D%2248%22%20height%3D%2248%22%2F%3E%0A%20%20%3Cg%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-2%22%20d%3D%22M23.66%2C33.17c1.14%2C0%2C2.24.45%2C3.04%2C1.26.81.81%2C1.26%2C1.9%2C1.26%2C3.04s-.45%2C2.24-1.26%2C3.04c-.81.81-1.9%2C1.26-3.04%2C1.26h-3.41v-8.61h3.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-2%22%20d%3D%22M23.66%2C33.17c1.14%2C0%2C2.24.45%2C3.04%2C1.26.81.81%2C1.26%2C1.9%2C1.26%2C3.04s-.45%2C2.24-1.26%2C3.04c-.81.81-1.9%2C1.26-3.04%2C1.26h-3.41v-8.61h3.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-2%22%20d%3D%22M23.66%2C33.17c1.14%2C0%2C2.24.45%2C3.04%2C1.26.81.81%2C1.26%2C1.9%2C1.26%2C3.04s-.45%2C2.24-1.26%2C3.04c-.81.81-1.9%2C1.26-3.04%2C1.26h-3.41v-8.61h3.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-3%22%20d%3D%22M30.24%2C30.72c.81-.81%2C1.9-1.26%2C3.04-1.26s2.24.45%2C3.04%2C1.26c.81.81%2C1.26%2C1.9%2C1.26%2C3.04s-.45%2C2.24-1.26%2C3.04l-2.41%2C2.41-6.09-6.09%2C2.41-2.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-2%22%20d%3D%22M33.17%2C24.34c0-1.14.45-2.24%2C1.26-3.04.81-.81%2C1.9-1.26%2C3.04-1.26s2.24.45%2C3.04%2C1.26c.81.81%2C1.26%2C1.9%2C1.26%2C3.04v3.41h-8.61v-3.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-3%22%20d%3D%22M30.72%2C17.76c-.81-.81-1.26-1.9-1.26-3.04s.45-2.24%2C1.26-3.04c.81-.81%2C1.9-1.26%2C3.04-1.26s2.24.45%2C3.04%2C1.26l2.41%2C2.41-6.09%2C6.09-2.41-2.41h0Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-2%22%20d%3D%22M24.34%2C14.83c-1.14%2C0-2.24-.45-3.04-1.26s-1.26-1.9-1.26-3.04.45-2.24%2C1.26-3.04c.81-.81%2C1.9-1.26%2C3.04-1.26h3.41v8.61h-3.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-3%22%20d%3D%22M17.76%2C17.28c-.81.81-1.9%2C1.26-3.04%2C1.26s-2.24-.45-3.04-1.26c-.81-.81-1.26-1.9-1.26-3.04s.45-2.24%2C1.26-3.04l2.41-2.41%2C6.09%2C6.09-2.41%2C2.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-2%22%20d%3D%22M14.83%2C23.66c0%2C1.14-.45%2C2.24-1.26%2C3.04s-1.9%2C1.26-3.04%2C1.26-2.24-.45-3.04-1.26c-.81-.81-1.26-1.9-1.26-3.04v-3.41h8.61s0%2C3.41%2C0%2C3.41Z%22%2F%3E%0A%20%20%20%20%3Cpath%20class%3D%22cls-3%22%20d%3D%22M17.28%2C30.24c.81.81%2C1.26%2C1.9%2C1.26%2C3.04s-.45%2C2.24-1.26%2C3.04-1.9%2C1.26-3.04%2C1.26-2.24-.45-3.04-1.26l-2.41-2.41%2C6.09-6.09%2C2.41%2C2.41h0Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E">
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
|
|
11
|
+
<script type="module">
|
|
12
|
+
const IMPACT_LEVELS = {
|
|
13
|
+
CRITICAL: 3,
|
|
14
|
+
SERIOUS: 2,
|
|
15
|
+
MODERATE: 1,
|
|
16
|
+
MINOR: 0
|
|
17
|
+
};
|
|
18
|
+
class AccessibilityReportViewer {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.report = window.axeDevToolsReport || null;
|
|
21
|
+
this.currentViewFilter = "all";
|
|
22
|
+
this.currentImpactFilter = "all";
|
|
23
|
+
this.screenActiveHighlights = /* @__PURE__ */ new Map();
|
|
24
|
+
this.renderTimeout = null;
|
|
25
|
+
this.isRendering = false;
|
|
26
|
+
this.init();
|
|
27
|
+
}
|
|
28
|
+
init() {
|
|
29
|
+
this.setReportTitle();
|
|
30
|
+
if (this.report) {
|
|
31
|
+
this.populateStatistics();
|
|
32
|
+
this.createViewFilters();
|
|
33
|
+
this.bindFilterEvents();
|
|
34
|
+
}
|
|
35
|
+
this.renderScreenList();
|
|
36
|
+
}
|
|
37
|
+
setReportTitle() {
|
|
38
|
+
const titleElement = document.getElementById("reportTitle");
|
|
39
|
+
if (!titleElement) return;
|
|
40
|
+
if (this.report && this.report.name) {
|
|
41
|
+
titleElement.textContent = this.report.name;
|
|
42
|
+
} else {
|
|
43
|
+
const now = /* @__PURE__ */ new Date();
|
|
44
|
+
const options = {
|
|
45
|
+
year: "numeric",
|
|
46
|
+
month: "long",
|
|
47
|
+
day: "numeric",
|
|
48
|
+
hour: "2-digit",
|
|
49
|
+
minute: "2-digit"
|
|
50
|
+
};
|
|
51
|
+
const dateTime = now.toLocaleString("en-US", options);
|
|
52
|
+
titleElement.textContent = `Accessibility report ${dateTime}`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
populateStatistics() {
|
|
56
|
+
if (!this.report) return;
|
|
57
|
+
const stats = this.calculateStatistics();
|
|
58
|
+
const totalScansEl = document.getElementById("totalScans");
|
|
59
|
+
const totalIssuesEl = document.getElementById("totalIssues");
|
|
60
|
+
const accessibilityScoreEl = document.getElementById("accessibilityScore");
|
|
61
|
+
const criticalIssuesEl = document.getElementById("criticalIssues");
|
|
62
|
+
const seriousIssuesEl = document.getElementById("seriousIssues");
|
|
63
|
+
const moderateIssuesEl = document.getElementById("moderateIssues");
|
|
64
|
+
const minorIssuesEl = document.getElementById("minorIssues");
|
|
65
|
+
const totalScans = Array.isArray(this.report.screens) ? this.report.screens.length : 0;
|
|
66
|
+
if (totalScansEl) totalScansEl.textContent = totalScans.toString();
|
|
67
|
+
if (totalIssuesEl) totalIssuesEl.textContent = stats.totalIssues;
|
|
68
|
+
if (accessibilityScoreEl) accessibilityScoreEl.textContent = this.computeAccessibilityScore();
|
|
69
|
+
if (criticalIssuesEl) criticalIssuesEl.textContent = stats.criticalIssues;
|
|
70
|
+
if (seriousIssuesEl) seriousIssuesEl.textContent = stats.seriousIssues;
|
|
71
|
+
if (moderateIssuesEl) moderateIssuesEl.textContent = stats.moderateIssues;
|
|
72
|
+
if (minorIssuesEl) minorIssuesEl.textContent = stats.minorIssues;
|
|
73
|
+
}
|
|
74
|
+
calculateStatistics() {
|
|
75
|
+
let totalIssues = 0;
|
|
76
|
+
let criticalIssues = 0;
|
|
77
|
+
let seriousIssues = 0;
|
|
78
|
+
let moderateIssues = 0;
|
|
79
|
+
let minorIssues = 0;
|
|
80
|
+
if (Array.isArray(this.report.screens)) {
|
|
81
|
+
this.report.screens.forEach((screen) => {
|
|
82
|
+
if (!screen || !Array.isArray(screen.axeRuleResults)) return;
|
|
83
|
+
screen.axeRuleResults.forEach((rule) => {
|
|
84
|
+
if (rule.status === "FAIL") {
|
|
85
|
+
totalIssues++;
|
|
86
|
+
const impact = Number(rule.impact);
|
|
87
|
+
if (impact >= IMPACT_LEVELS.CRITICAL) {
|
|
88
|
+
criticalIssues++;
|
|
89
|
+
} else if (impact === IMPACT_LEVELS.SERIOUS) {
|
|
90
|
+
seriousIssues++;
|
|
91
|
+
} else if (impact === IMPACT_LEVELS.MODERATE) {
|
|
92
|
+
moderateIssues++;
|
|
93
|
+
} else if (impact === IMPACT_LEVELS.MINOR) {
|
|
94
|
+
minorIssues++;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
this.report.totalIssues = totalIssues;
|
|
101
|
+
this.report.criticalIssues = criticalIssues;
|
|
102
|
+
this.report.seriousIssues = seriousIssues;
|
|
103
|
+
this.report.moderateIssues = moderateIssues;
|
|
104
|
+
this.report.minorIssues = minorIssues;
|
|
105
|
+
return {
|
|
106
|
+
totalIssues: totalIssues.toString(),
|
|
107
|
+
criticalIssues: criticalIssues.toString(),
|
|
108
|
+
seriousIssues: seriousIssues.toString(),
|
|
109
|
+
moderateIssues: moderateIssues.toString(),
|
|
110
|
+
minorIssues: minorIssues.toString()
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
createViewFilters() {
|
|
114
|
+
if (!this.report || !this.report.screens) return;
|
|
115
|
+
const viewFilterGroup = document.getElementById("viewFilter");
|
|
116
|
+
this.report.screens.forEach((screen, index) => {
|
|
117
|
+
const radioWrapper = document.createElement("label");
|
|
118
|
+
radioWrapper.className = "radio-wrapper";
|
|
119
|
+
radioWrapper.innerHTML = `
|
|
120
|
+
<input type="radio" name="view" value="screen-${index}" class="radio-input">
|
|
121
|
+
<div class="radio-button">
|
|
122
|
+
<div class="radio-dot"></div>
|
|
123
|
+
</div>
|
|
124
|
+
<span class="radio-label">${screen.scanName}</span>
|
|
125
|
+
`;
|
|
126
|
+
viewFilterGroup.appendChild(radioWrapper);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
bindFilterEvents() {
|
|
130
|
+
const viewRadios = document.querySelectorAll('input[name="view"]');
|
|
131
|
+
viewRadios.forEach((radio) => {
|
|
132
|
+
radio.addEventListener("change", (e) => {
|
|
133
|
+
this.currentViewFilter = e.target.value;
|
|
134
|
+
this.debouncedRenderScreenList();
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
const impactRadios = document.querySelectorAll('input[name="impact"]');
|
|
138
|
+
impactRadios.forEach((radio) => {
|
|
139
|
+
radio.addEventListener("change", (e) => {
|
|
140
|
+
this.currentImpactFilter = e.target.value;
|
|
141
|
+
this.debouncedRenderScreenList();
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
debouncedRenderScreenList() {
|
|
146
|
+
if (this.renderTimeout) {
|
|
147
|
+
clearTimeout(this.renderTimeout);
|
|
148
|
+
}
|
|
149
|
+
if (this.isRendering) {
|
|
150
|
+
this.renderTimeout = setTimeout(() => {
|
|
151
|
+
this.debouncedRenderScreenList();
|
|
152
|
+
}, 50);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const screenList = document.getElementById("screenList");
|
|
156
|
+
if (screenList && screenList.children.length > 0 && !screenList.querySelector(".no-scans")) {
|
|
157
|
+
screenList.style.opacity = "0.6";
|
|
158
|
+
screenList.style.transition = "opacity 0.1s ease-out";
|
|
159
|
+
}
|
|
160
|
+
this.renderTimeout = setTimeout(() => {
|
|
161
|
+
this.renderScreenList();
|
|
162
|
+
}, 80);
|
|
163
|
+
}
|
|
164
|
+
renderScreenList() {
|
|
165
|
+
this.isRendering = true;
|
|
166
|
+
const screenList = document.getElementById("screenList");
|
|
167
|
+
const allCanvases = document.querySelectorAll(
|
|
168
|
+
'.screenshot-canvas, .screenshot-container, .screenshot-placeholder, .screenshot-image, canvas[data-screen-index], canvas[id^="canvas-"], [class*="screenshot"]'
|
|
169
|
+
);
|
|
170
|
+
allCanvases.forEach((el) => {
|
|
171
|
+
el.remove();
|
|
172
|
+
});
|
|
173
|
+
if (!this.report || !this.report.screens || this.report.screens.length === 0) {
|
|
174
|
+
const screenItems = screenList.querySelectorAll(".screen-item");
|
|
175
|
+
screenItems.forEach((el) => el.remove());
|
|
176
|
+
screenList.innerHTML = `
|
|
177
|
+
<div class="no-issues no-scans">
|
|
178
|
+
<div class="no-issues-heading">No scan results in this report</div>
|
|
179
|
+
<div class="no-issues-text">Import or add scan results to view your accessibility report.</div>
|
|
180
|
+
</div>
|
|
181
|
+
`;
|
|
182
|
+
requestAnimationFrame(() => {
|
|
183
|
+
const remainingCanvases = document.querySelectorAll(
|
|
184
|
+
'canvas.screenshot-canvas, canvas[data-screen-index], canvas[id^="canvas-"]'
|
|
185
|
+
);
|
|
186
|
+
remainingCanvases.forEach((canvas) => canvas.remove());
|
|
187
|
+
});
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
let screensToShow = [];
|
|
191
|
+
if (this.currentViewFilter === "all") {
|
|
192
|
+
screensToShow = this.report.screens.map((screen, index) => ({
|
|
193
|
+
screen,
|
|
194
|
+
index
|
|
195
|
+
}));
|
|
196
|
+
} else {
|
|
197
|
+
const screenIndex = parseInt(this.currentViewFilter.replace("screen-", ""));
|
|
198
|
+
if (this.report.screens[screenIndex]) {
|
|
199
|
+
screensToShow = [{
|
|
200
|
+
screen: this.report.screens[screenIndex],
|
|
201
|
+
index: screenIndex
|
|
202
|
+
}];
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
let html = "";
|
|
206
|
+
screensToShow.forEach(({ screen, index }) => {
|
|
207
|
+
var _a;
|
|
208
|
+
const failedRules = this.getFailedRules(screen);
|
|
209
|
+
const defaultViewId = ((_a = failedRules.find((rule) => rule.axeViewId)) == null ? void 0 : _a.axeViewId) || "";
|
|
210
|
+
html += `
|
|
211
|
+
<div class="screen-item" id="screen-${index}" data-screen-index="${index}" data-default-view-id="${defaultViewId}">
|
|
212
|
+
<div class="screen-header">
|
|
213
|
+
<h2 class="screen-name">${screen.scanName || `Screen ${index + 1}`}</h2>
|
|
214
|
+
</div>
|
|
215
|
+
<div class="screen-content">
|
|
216
|
+
<div class="screenshot-column">
|
|
217
|
+
${this.renderScreenshot(screen, index)}
|
|
218
|
+
</div>
|
|
219
|
+
<div class="issues-column">
|
|
220
|
+
${this.renderFailedRules(failedRules, index)}
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
`;
|
|
225
|
+
});
|
|
226
|
+
screenList.innerHTML = html || `
|
|
227
|
+
<div class="no-issues no-scans">
|
|
228
|
+
<div class="no-issues-heading">No scan results in this report</div>
|
|
229
|
+
<div class="no-issues-text">Import or add scan results to view your accessibility report.</div>
|
|
230
|
+
</div>
|
|
231
|
+
`;
|
|
232
|
+
if (screensToShow.length > 0) {
|
|
233
|
+
requestAnimationFrame(() => {
|
|
234
|
+
setTimeout(() => {
|
|
235
|
+
this.setupScreenshotHighlights();
|
|
236
|
+
this.bindHighlightButtons();
|
|
237
|
+
requestAnimationFrame(() => {
|
|
238
|
+
if (screenList) {
|
|
239
|
+
screenList.style.opacity = "1";
|
|
240
|
+
screenList.style.transition = "opacity 0.15s ease-in";
|
|
241
|
+
}
|
|
242
|
+
this.isRendering = false;
|
|
243
|
+
});
|
|
244
|
+
}, 100);
|
|
245
|
+
});
|
|
246
|
+
} else {
|
|
247
|
+
requestAnimationFrame(() => {
|
|
248
|
+
if (screenList) {
|
|
249
|
+
screenList.style.opacity = "1";
|
|
250
|
+
screenList.style.transition = "opacity 0.15s ease-in";
|
|
251
|
+
}
|
|
252
|
+
this.isRendering = false;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
bindHighlightButtons() {
|
|
257
|
+
const buttons = document.querySelectorAll(".highlight-button");
|
|
258
|
+
buttons.forEach((button) => {
|
|
259
|
+
button.addEventListener("click", () => {
|
|
260
|
+
const screenIndex = parseInt(button.getAttribute("data-screen-index"));
|
|
261
|
+
const axeViewId = button.getAttribute("data-axe-view-id");
|
|
262
|
+
const issueNumber = parseInt(button.getAttribute("data-issue-number"));
|
|
263
|
+
if (!axeViewId) return;
|
|
264
|
+
const isActive = button.classList.contains("active");
|
|
265
|
+
if (isActive) {
|
|
266
|
+
button.classList.remove("active");
|
|
267
|
+
this.removeHighlight(screenIndex, axeViewId);
|
|
268
|
+
this.screenActiveHighlights.delete(screenIndex);
|
|
269
|
+
this.showAllHighlights(screenIndex);
|
|
270
|
+
} else {
|
|
271
|
+
const existingActive = this.screenActiveHighlights.get(screenIndex);
|
|
272
|
+
if (existingActive && existingActive !== axeViewId) {
|
|
273
|
+
const existingButton = document.querySelector(
|
|
274
|
+
`.highlight-button[data-screen-index="${screenIndex}"][data-axe-view-id="${existingActive}"]`
|
|
275
|
+
);
|
|
276
|
+
if (existingButton) {
|
|
277
|
+
existingButton.classList.remove("active");
|
|
278
|
+
}
|
|
279
|
+
this.removeHighlight(screenIndex, existingActive);
|
|
280
|
+
}
|
|
281
|
+
const canvas = document.getElementById(`canvas-${screenIndex}`);
|
|
282
|
+
const image = document.getElementById(`screenshot-${screenIndex}`);
|
|
283
|
+
if (canvas && image) {
|
|
284
|
+
const context = canvas.getContext("2d");
|
|
285
|
+
if (context) {
|
|
286
|
+
context.clearRect(0, 0, canvas.width, canvas.height);
|
|
287
|
+
context.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
const container = document.querySelector(`.screenshot-container[data-screen-index="${screenIndex}"]`);
|
|
291
|
+
if (container) {
|
|
292
|
+
const badges = container.querySelectorAll(".highlight-badge");
|
|
293
|
+
badges.forEach((badge) => badge.remove());
|
|
294
|
+
}
|
|
295
|
+
if (image && image.complete) {
|
|
296
|
+
const isOutOfBounds = this.checkHighlightOutOfBounds(screenIndex, axeViewId, image);
|
|
297
|
+
if (isOutOfBounds) {
|
|
298
|
+
const buttonParent = button.parentElement;
|
|
299
|
+
button.remove();
|
|
300
|
+
const outOfBoundsEl = document.createElement("div");
|
|
301
|
+
outOfBoundsEl.className = "highlight-out-of-bounds";
|
|
302
|
+
outOfBoundsEl.setAttribute("data-screen-index", screenIndex);
|
|
303
|
+
outOfBoundsEl.setAttribute("data-axe-view-id", axeViewId);
|
|
304
|
+
outOfBoundsEl.innerHTML = `
|
|
305
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
306
|
+
<path d="M8 16C12.42 16 16 12.42 16 8C16 3.58 12.42 0 8 0C3.58 0 0 3.58 0 8C0 12.42 3.58 16 8 16ZM6.74667 10.5H7.49333V8.5H6.74667C6.33333 8.5 6 8.16667 6 7.75333C6 7.34 6.33333 7.00667 6.74667 7.00667H8.24667C8.66 7.00667 8.99333 7.34 8.99333 7.75333V10.5H9.24667C9.66 10.5 9.99333 10.8333 9.99333 11.2467C9.99333 11.66 9.66 11.9933 9.24667 11.9933H6.74667C6.33333 11.9933 6 11.66 6 11.2467C6 10.8333 6.33333 10.5 6.74667 10.5ZM8 4C8.55333 4 9 4.44667 9 5C9 5.55333 8.55333 6 8 6C7.44667 6 7 5.55333 7 5C7 4.44667 7.44667 4 8 4Z" fill="#333333"/>
|
|
307
|
+
</svg>
|
|
308
|
+
Element is off-screen
|
|
309
|
+
`;
|
|
310
|
+
buttonParent.appendChild(outOfBoundsEl);
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
button.classList.add("active");
|
|
315
|
+
this.drawSingleHighlight(screenIndex, axeViewId, issueNumber);
|
|
316
|
+
this.screenActiveHighlights.set(screenIndex, axeViewId);
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
const screenItems = document.querySelectorAll(".screen-item[data-screen-index]");
|
|
321
|
+
screenItems.forEach((item) => {
|
|
322
|
+
const screenIndex = Number(item.getAttribute("data-screen-index"));
|
|
323
|
+
const image = document.getElementById(`screenshot-${screenIndex}`);
|
|
324
|
+
if (image) {
|
|
325
|
+
if (image.complete) {
|
|
326
|
+
this.checkAndReplaceOutOfBoundsButtons(screenIndex, image);
|
|
327
|
+
} else {
|
|
328
|
+
image.addEventListener("load", () => {
|
|
329
|
+
this.checkAndReplaceOutOfBoundsButtons(screenIndex, image);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
checkHighlightOutOfBounds(screenIndex, axeViewId, image) {
|
|
336
|
+
var _a, _b;
|
|
337
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
338
|
+
if (!screen || !screen.axeContext) {
|
|
339
|
+
return true;
|
|
340
|
+
}
|
|
341
|
+
const axeViewRoot = screen.axeContext.axeView;
|
|
342
|
+
if (!axeViewRoot) {
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
const bounds = this.findViewBounds(axeViewRoot, axeViewId);
|
|
346
|
+
if (!bounds) {
|
|
347
|
+
return true;
|
|
348
|
+
}
|
|
349
|
+
const canvas = document.getElementById(`canvas-${screenIndex}`);
|
|
350
|
+
if (!canvas) {
|
|
351
|
+
return true;
|
|
352
|
+
}
|
|
353
|
+
const xScale = canvas.width / (image.naturalWidth || image.width);
|
|
354
|
+
const yScale = canvas.height / (image.naturalHeight || image.height);
|
|
355
|
+
const leftScaled = bounds.left * xScale;
|
|
356
|
+
const topScaled = bounds.top * yScale;
|
|
357
|
+
const widthScaled = (bounds.right - bounds.left) * xScale;
|
|
358
|
+
const heightScaled = (bounds.bottom - bounds.top) * yScale;
|
|
359
|
+
const isOutOfBounds = leftScaled < -widthScaled || topScaled < -heightScaled || leftScaled > canvas.width || topScaled > canvas.height;
|
|
360
|
+
return isOutOfBounds;
|
|
361
|
+
}
|
|
362
|
+
checkAndReplaceOutOfBoundsButtons(screenIndex, image) {
|
|
363
|
+
const buttons = document.querySelectorAll(
|
|
364
|
+
`.highlight-button[data-screen-index="${screenIndex}"]`
|
|
365
|
+
);
|
|
366
|
+
buttons.forEach((button) => {
|
|
367
|
+
const axeViewId = button.getAttribute("data-axe-view-id");
|
|
368
|
+
if (!axeViewId) return;
|
|
369
|
+
const isOutOfBounds = this.checkHighlightOutOfBounds(screenIndex, axeViewId, image);
|
|
370
|
+
if (isOutOfBounds) {
|
|
371
|
+
const buttonParent = button.parentElement;
|
|
372
|
+
button.remove();
|
|
373
|
+
const outOfBoundsEl = document.createElement("div");
|
|
374
|
+
outOfBoundsEl.className = "highlight-out-of-bounds";
|
|
375
|
+
outOfBoundsEl.setAttribute("data-screen-index", screenIndex);
|
|
376
|
+
outOfBoundsEl.setAttribute("data-axe-view-id", axeViewId);
|
|
377
|
+
outOfBoundsEl.innerHTML = `
|
|
378
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
379
|
+
<path d="M8 16C12.42 16 16 12.42 16 8C16 3.58 12.42 0 8 0C3.58 0 0 3.58 0 8C0 12.42 3.58 16 8 16ZM6.74667 10.5H7.49333V8.5H6.74667C6.33333 8.5 6 8.16667 6 7.75333C6 7.34 6.33333 7.00667 6.74667 7.00667H8.24667C8.66 7.00667 8.99333 7.34 8.99333 7.75333V10.5H9.24667C9.66 10.5 9.99333 10.8333 9.99333 11.2467C9.99333 11.66 9.66 11.9933 9.24667 11.9933H6.74667C6.33333 11.9933 6 11.66 6 11.2467C6 10.8333 6.33333 10.5 6.74667 10.5ZM8 4C8.55333 4 9 4.44667 9 5C9 5.55333 8.55333 6 8 6C7.44667 6 7 5.55333 7 5C7 4.44667 7.44667 4 8 4Z" fill="#333333"/>
|
|
380
|
+
</svg>
|
|
381
|
+
Element is off-screen
|
|
382
|
+
`;
|
|
383
|
+
buttonParent.appendChild(outOfBoundsEl);
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
removeHighlight(screenIndex, axeViewId) {
|
|
388
|
+
var _a, _b;
|
|
389
|
+
const container = document.querySelector(`.screenshot-container[data-screen-index="${screenIndex}"]`);
|
|
390
|
+
if (!container) return;
|
|
391
|
+
const badge = container.querySelector(`.highlight-badge[data-axe-view-id="${axeViewId}"]`);
|
|
392
|
+
if (badge) {
|
|
393
|
+
badge.remove();
|
|
394
|
+
}
|
|
395
|
+
const activeKey = this.screenActiveHighlights.get(screenIndex);
|
|
396
|
+
if (activeKey === axeViewId) {
|
|
397
|
+
this.screenActiveHighlights.delete(screenIndex);
|
|
398
|
+
}
|
|
399
|
+
const canvas = document.getElementById(`canvas-${screenIndex}`);
|
|
400
|
+
const image = document.getElementById(`screenshot-${screenIndex}`);
|
|
401
|
+
if (canvas && image && image.complete) {
|
|
402
|
+
const context = canvas.getContext("2d");
|
|
403
|
+
context.clearRect(0, 0, canvas.width, canvas.height);
|
|
404
|
+
context.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
405
|
+
const remainingBadges = container.querySelectorAll(".highlight-badge");
|
|
406
|
+
if (remainingBadges.length > 0) {
|
|
407
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
408
|
+
if (screen && screen.axeContext) {
|
|
409
|
+
const axeViewRoot = screen.axeContext.axeView;
|
|
410
|
+
context.strokeStyle = this.getHighlightColor();
|
|
411
|
+
context.beginPath();
|
|
412
|
+
remainingBadges.forEach((badge2) => {
|
|
413
|
+
const viewId = badge2.getAttribute("data-axe-view-id");
|
|
414
|
+
const bounds = this.findViewBounds(axeViewRoot, viewId);
|
|
415
|
+
if (bounds) {
|
|
416
|
+
const xScale = canvas.width / (image.naturalWidth || canvas.width);
|
|
417
|
+
const yScale = canvas.height / (image.naturalHeight || canvas.height);
|
|
418
|
+
const leftScaled = bounds.left * xScale;
|
|
419
|
+
const topScaled = bounds.top * yScale;
|
|
420
|
+
const widthScaled = (bounds.right - bounds.left) * xScale;
|
|
421
|
+
const heightScaled = (bounds.bottom - bounds.top) * yScale;
|
|
422
|
+
const clientWidth = canvas.clientWidth || canvas.width || 1;
|
|
423
|
+
const lineWidth = Math.max(2, Math.floor(3 * (canvas.width / clientWidth)));
|
|
424
|
+
context.lineWidth = lineWidth;
|
|
425
|
+
context.strokeRect(leftScaled, topScaled, widthScaled, heightScaled);
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
context.stroke();
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
drawSingleHighlight(screenIndex, axeViewId, issueNumber) {
|
|
434
|
+
var _a, _b;
|
|
435
|
+
const canvas = document.getElementById(`canvas-${screenIndex}`);
|
|
436
|
+
const image = document.getElementById(`screenshot-${screenIndex}`);
|
|
437
|
+
const container = document.querySelector(`.screenshot-container[data-screen-index="${screenIndex}"]`);
|
|
438
|
+
if (!canvas || !image || !container) return;
|
|
439
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
440
|
+
if (!screen || !screen.axeContext) return;
|
|
441
|
+
const axeViewRoot = screen.axeContext.axeView;
|
|
442
|
+
if (!axeViewRoot) return;
|
|
443
|
+
const bounds = this.findViewBounds(axeViewRoot, axeViewId);
|
|
444
|
+
if (!bounds) return;
|
|
445
|
+
const context = canvas.getContext("2d");
|
|
446
|
+
const xScale = canvas.width / (image.naturalWidth || canvas.width);
|
|
447
|
+
const yScale = canvas.height / (image.naturalHeight || canvas.height);
|
|
448
|
+
const leftScaled = bounds.left * xScale;
|
|
449
|
+
const topScaled = bounds.top * yScale;
|
|
450
|
+
const widthScaled = (bounds.right - bounds.left) * xScale;
|
|
451
|
+
const heightScaled = (bounds.bottom - bounds.top) * yScale;
|
|
452
|
+
const isOutOfBounds = leftScaled < -widthScaled || topScaled < -heightScaled || leftScaled > canvas.width || topScaled > canvas.height;
|
|
453
|
+
if (isOutOfBounds) return;
|
|
454
|
+
const clientWidth = canvas.clientWidth || canvas.width || 1;
|
|
455
|
+
const lineWidth = Math.max(2, Math.floor(3 * (canvas.width / clientWidth)));
|
|
456
|
+
context.lineWidth = lineWidth;
|
|
457
|
+
context.strokeStyle = this.getHighlightColor();
|
|
458
|
+
context.strokeRect(leftScaled, topScaled, widthScaled, heightScaled);
|
|
459
|
+
const canvasRect = canvas.getBoundingClientRect();
|
|
460
|
+
const containerRect = container.getBoundingClientRect();
|
|
461
|
+
const scaleX = canvasRect.width / canvas.width;
|
|
462
|
+
const scaleY = canvasRect.height / canvas.height;
|
|
463
|
+
const canvasOffsetX = canvasRect.left - containerRect.left;
|
|
464
|
+
const canvasOffsetY = canvasRect.top - containerRect.top;
|
|
465
|
+
const badgeWidth = 14;
|
|
466
|
+
const badgeHeight = 14;
|
|
467
|
+
const badgeLeft = canvasOffsetX + (leftScaled + widthScaled) * scaleX - badgeWidth;
|
|
468
|
+
const badgeTop = canvasOffsetY + (topScaled + heightScaled) * scaleY - badgeHeight;
|
|
469
|
+
const badge = document.createElement("div");
|
|
470
|
+
badge.className = "highlight-badge";
|
|
471
|
+
badge.textContent = issueNumber.toString();
|
|
472
|
+
badge.style.left = `${badgeLeft}px`;
|
|
473
|
+
badge.style.top = `${badgeTop}px`;
|
|
474
|
+
badge.setAttribute("data-axe-view-id", axeViewId);
|
|
475
|
+
container.appendChild(badge);
|
|
476
|
+
}
|
|
477
|
+
getFailedRules(screen) {
|
|
478
|
+
if (!screen.axeRuleResults) return [];
|
|
479
|
+
let failedRules = screen.axeRuleResults.filter((rule) => rule.status === "FAIL");
|
|
480
|
+
if (this.currentImpactFilter !== "all") {
|
|
481
|
+
const impactMap = {
|
|
482
|
+
"critical": IMPACT_LEVELS.CRITICAL,
|
|
483
|
+
"serious": IMPACT_LEVELS.SERIOUS,
|
|
484
|
+
"moderate": IMPACT_LEVELS.MODERATE,
|
|
485
|
+
"minor": IMPACT_LEVELS.MINOR
|
|
486
|
+
};
|
|
487
|
+
const filterImpact = impactMap[this.currentImpactFilter];
|
|
488
|
+
if (filterImpact !== void 0) {
|
|
489
|
+
failedRules = failedRules.filter((rule) => rule.impact === filterImpact);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return failedRules;
|
|
493
|
+
}
|
|
494
|
+
renderScreenshot(screen, screenIndex) {
|
|
495
|
+
var _a, _b;
|
|
496
|
+
if (screen.axeContext && screen.axeContext.screenshot) {
|
|
497
|
+
let imageSrc = screen.axeContext.screenshot;
|
|
498
|
+
if (!imageSrc.startsWith("data:")) {
|
|
499
|
+
if (imageSrc.startsWith("/9j/")) {
|
|
500
|
+
imageSrc = `data:image/jpeg;base64,${imageSrc}`;
|
|
501
|
+
} else if (imageSrc.startsWith("iVBORw0KGgo")) {
|
|
502
|
+
imageSrc = `data:image/png;base64,${imageSrc}`;
|
|
503
|
+
} else if (imageSrc.startsWith("R0lGOD")) {
|
|
504
|
+
imageSrc = `data:image/gif;base64,${imageSrc}`;
|
|
505
|
+
} else if (imageSrc.startsWith("UklGR")) {
|
|
506
|
+
imageSrc = `data:image/webp;base64,${imageSrc}`;
|
|
507
|
+
} else {
|
|
508
|
+
imageSrc = `data:image/jpeg;base64,${imageSrc}`;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
const canvasId = `canvas-${screenIndex}`;
|
|
512
|
+
const imageId = `screenshot-${screenIndex}`;
|
|
513
|
+
const appIdentifier = ((_b = (_a = screen.axeContext) == null ? void 0 : _a.axeMetaData) == null ? void 0 : _b.appIdentifier) || "";
|
|
514
|
+
return `
|
|
515
|
+
<div class="screenshot-container" data-screen-index="${screenIndex}">
|
|
516
|
+
<div class="screenshot-hidden">
|
|
517
|
+
<img src="${imageSrc}" alt="" class="screenshot-image" id="${imageId}" data-screen-index="${screenIndex}">
|
|
518
|
+
</div>
|
|
519
|
+
<canvas
|
|
520
|
+
class="screenshot-canvas"
|
|
521
|
+
id="${canvasId}"
|
|
522
|
+
role="img"
|
|
523
|
+
aria-label="Screenshot of the app${appIdentifier ? ` with package name ${appIdentifier}` : ""} with the accessibility issue highlighted."
|
|
524
|
+
data-screen-index="${screenIndex}"
|
|
525
|
+
></canvas>
|
|
526
|
+
</div>
|
|
527
|
+
`;
|
|
528
|
+
}
|
|
529
|
+
return `<div class="screenshot-placeholder">No screenshot available</div>`;
|
|
530
|
+
}
|
|
531
|
+
renderFailedRules(failedRules, screenIndex) {
|
|
532
|
+
if (failedRules.length === 0) {
|
|
533
|
+
return `
|
|
534
|
+
<div class="no-issues">
|
|
535
|
+
<div class="no-issues-heading">No automated accessibility issues detected!</div>
|
|
536
|
+
<div class="no-issues-text">Your scan is axe Clean. Remember that comprehensive accessibility also requires manual testing</div>
|
|
537
|
+
</div>
|
|
538
|
+
`;
|
|
539
|
+
}
|
|
540
|
+
return failedRules.map((rule, index) => {
|
|
541
|
+
var _a, _b, _c, _d;
|
|
542
|
+
const impactLevel = this.getImpactLevel(rule.impact);
|
|
543
|
+
const ruleNumber = index + 1;
|
|
544
|
+
const axeViewId = rule.axeViewId || "";
|
|
545
|
+
const hasBounds = this.hasViewBounds(screenIndex, axeViewId);
|
|
546
|
+
const highlightButton = hasBounds ? `
|
|
547
|
+
<button class="highlight-button" data-screen-index="${screenIndex}" data-axe-view-id="${axeViewId}" data-issue-number="${ruleNumber}">
|
|
548
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
549
|
+
<g clip-path="url(#clip0_hl_${screenIndex}_${index})">
|
|
550
|
+
<path d="M8 0C8.55333 0 9 0.446667 9 1V1.32667C11.9267 1.76 14.24 4.07333 14.6733 7H15C15.5533 7 16 7.44667 16 8C16 8.55333 15.5533 9 15 9H14.6733C14.24 11.9267 11.9267 14.24 9 14.6733V15C9 15.5533 8.55333 16 8 16C7.44667 16 7 15.5533 7 15V14.6733C4.07333 14.24 1.76 11.9267 1.32667 9H1C0.446667 9 0 8.55333 0 8C0 7.44667 0.446667 7 1 7H1.32667C1.76 4.07333 4.07333 1.76 7 1.32667V1C7 0.446667 7.44667 0 8 0ZM3.35333 9C3.74667 10.82 5.18 12.2533 7 12.6467V12C7 11.4467 7.44667 11 8 11C8.55333 11 9 11.4467 9 12V12.6467C10.82 12.2533 12.2533 10.82 12.6467 9H12C11.4467 9 11 8.55333 11 8C11 7.44667 11.4467 7 12 7H12.6467C12.2533 5.18 10.8267 3.74667 9 3.35333V4C9 4.55333 8.55333 5 8 5C7.44667 5 7 4.55333 7 4V3.35333C5.18 3.74667 3.74667 5.17333 3.35333 7H4C4.55333 7 5 7.44667 5 8C5 8.55333 4.55333 9 4 9H3.35333ZM8 7C8.55333 7 9 7.44667 9 8C9 8.55333 8.55333 9 8 9C7.44667 9 7 8.55333 7 8C7 7.44667 7.44667 7 8 7Z" fill="currentColor"/>
|
|
551
|
+
</g>
|
|
552
|
+
<defs>
|
|
553
|
+
<clipPath id="clip0_hl_${screenIndex}_${index}"><rect width="16" height="16" fill="white"/></clipPath>
|
|
554
|
+
</defs>
|
|
555
|
+
</svg>
|
|
556
|
+
Highlight
|
|
557
|
+
</button>
|
|
558
|
+
` : `
|
|
559
|
+
<div class="highlight-out-of-bounds" data-screen-index="${screenIndex}" data-axe-view-id="${axeViewId}">
|
|
560
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
561
|
+
<path d="M8 16C12.42 16 16 12.42 16 8C16 3.58 12.42 0 8 0C3.58 0 0 3.58 0 8C0 12.42 3.58 16 8 16ZM6.74667 10.5H7.49333V8.5H6.74667C6.33333 8.5 6 8.16667 6 7.75333C6 7.34 6.33333 7.00667 6.74667 7.00667H8.24667C8.66 7.00667 8.99333 7.34 8.99333 7.75333V10.5H9.24667C9.66 10.5 9.99333 10.8333 9.99333 11.2467C9.99333 11.66 9.66 11.9933 9.24667 11.9933H6.74667C6.33333 11.9933 6 11.66 6 11.2467C6 10.8333 6.33333 10.5 6.74667 10.5ZM8 4C8.55333 4 9 4.44667 9 5C9 5.55333 8.55333 6 8 6C7.44667 6 7 5.55333 7 5C7 4.44667 7.44667 4 8 4Z" fill="#333333"/>
|
|
562
|
+
</svg>
|
|
563
|
+
Element is off-screen
|
|
564
|
+
</div>
|
|
565
|
+
`;
|
|
566
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
567
|
+
const os = ((_d = (_c = screen == null ? void 0 : screen.axeContext) == null ? void 0 : _c.axeDevice) == null ? void 0 : _d.os) || "";
|
|
568
|
+
const docsPath = this.getDocsLinkPath(os, rule.ruleId);
|
|
569
|
+
const docsHost = "https://docs.deque.com/devtools-mobile";
|
|
570
|
+
const docsUrl = `${docsHost}${docsPath}`;
|
|
571
|
+
const ruleName = this.formatRuleTitle(rule.ruleId);
|
|
572
|
+
return `
|
|
573
|
+
<div class="rule-item" data-screen-index="${screenIndex}" data-axe-view-id="${axeViewId}" data-issue-number="${ruleNumber}" tabindex="0">
|
|
574
|
+
<div class="rule-header">
|
|
575
|
+
<div class="rule-info">
|
|
576
|
+
<h3 class="rule-title">#${ruleNumber} ${ruleName}</h3>
|
|
577
|
+
<div class="rule-description">${rule.ruleSummary || "No description available"}</div>
|
|
578
|
+
<div class="rule-docs-link">
|
|
579
|
+
<a href="${docsUrl}" target="_blank" rel="noopener noreferrer" class="docs-link">
|
|
580
|
+
Learn more about ${ruleName} in a new tab
|
|
581
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
582
|
+
<g clip-path="url(#clip0_docs_${screenIndex}_${index})">
|
|
583
|
+
<path d="M11 0C10.6 0 10.2333 0.246667 10.0733 0.62C9.92 0.993333 10.0067 1.42 10.2867 1.71333L11.58 3.00667L6.29333 8.3C5.9 8.69333 5.9 9.32667 6.29333 9.71333C6.68667 10.1 7.32 10.1067 7.70667 9.71333L12.9933 4.42L14.2867 5.71333C14.5733 6 15 6.08667 15.38 5.92667C15.76 5.76667 16 5.40667 16 5V1C16 0.446667 15.5533 0 15 0H11ZM2.5 1C1.12 1 0 2.12 0 3.5V13.5C0 14.88 1.12 16 2.5 16H12.5C13.88 16 15 14.88 15 13.5V10C15 9.44667 14.5533 9 14 9C13.4467 9 13 9.44667 13 10V13.5C13 13.7733 12.7733 14 12.5 14H2.5C2.22667 14 2 13.7733 2 13.5V3.5C2 3.22667 2.22667 3 2.5 3H6C6.55333 3 7 2.55333 7 2C7 1.44667 6.55333 1 6 1H2.5Z" fill="#333333"/>
|
|
584
|
+
</g>
|
|
585
|
+
<defs>
|
|
586
|
+
<clipPath id="clip0_docs_${screenIndex}_${index}"><rect width="16" height="16" fill="white"/></clipPath>
|
|
587
|
+
</defs>
|
|
588
|
+
</svg>
|
|
589
|
+
</a>
|
|
590
|
+
</div>
|
|
591
|
+
</div>
|
|
592
|
+
<div class="rule-actions">
|
|
593
|
+
<span class="impact-badge ${impactLevel}">Impact: ${this.capitalizeFirst(impactLevel)}</span>
|
|
594
|
+
${highlightButton}
|
|
595
|
+
</div>
|
|
596
|
+
</div>
|
|
597
|
+
|
|
598
|
+
<div class="rule-divider"></div>
|
|
599
|
+
|
|
600
|
+
<div class="analyzed-values">
|
|
601
|
+
<div class="analyzed-values-title">Analyzed values</div>
|
|
602
|
+
${this.renderAnalyzedValues(rule.props)}
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
`;
|
|
606
|
+
}).join("");
|
|
607
|
+
}
|
|
608
|
+
hasViewBounds(screenIndex, axeViewId) {
|
|
609
|
+
var _a, _b;
|
|
610
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
611
|
+
if (!screen || !screen.axeContext) {
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
614
|
+
const axeViewRoot = screen.axeContext.axeView;
|
|
615
|
+
if (!axeViewRoot) {
|
|
616
|
+
return false;
|
|
617
|
+
}
|
|
618
|
+
const bounds = this.findViewBounds(axeViewRoot, axeViewId);
|
|
619
|
+
return bounds !== null;
|
|
620
|
+
}
|
|
621
|
+
getImpactLevel(impact) {
|
|
622
|
+
const impactMap = {
|
|
623
|
+
[IMPACT_LEVELS.CRITICAL]: "critical",
|
|
624
|
+
[IMPACT_LEVELS.SERIOUS]: "serious",
|
|
625
|
+
[IMPACT_LEVELS.MODERATE]: "moderate",
|
|
626
|
+
[IMPACT_LEVELS.MINOR]: "minor"
|
|
627
|
+
};
|
|
628
|
+
return impactMap[impact] || "unknown";
|
|
629
|
+
}
|
|
630
|
+
getHighlightColor() {
|
|
631
|
+
return "#B51AD1";
|
|
632
|
+
}
|
|
633
|
+
setupScreenshotHighlights() {
|
|
634
|
+
this.screenActiveHighlights.clear();
|
|
635
|
+
const screenItems = document.querySelectorAll(".screen-item[data-screen-index]");
|
|
636
|
+
if (screenItems.length === 0) {
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
screenItems.forEach((item) => {
|
|
640
|
+
var _a, _b;
|
|
641
|
+
const screenIndex = Number(item.getAttribute("data-screen-index"));
|
|
642
|
+
if (Number.isNaN(screenIndex)) {
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
646
|
+
if (!screen || !screen.axeContext || !screen.axeContext.screenshot) {
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
this.initializeCanvas(screenIndex, () => {
|
|
650
|
+
this.showAllHighlights(screenIndex);
|
|
651
|
+
});
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
showAllHighlights(screenIndex) {
|
|
655
|
+
var _a, _b;
|
|
656
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
657
|
+
if (!screen || !Array.isArray(screen.axeRuleResults)) {
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
const failedRules = this.getFailedRules(screen);
|
|
661
|
+
if (failedRules.length === 0) {
|
|
662
|
+
return;
|
|
663
|
+
}
|
|
664
|
+
const image = document.getElementById(`screenshot-${screenIndex}`);
|
|
665
|
+
if (!image || !image.complete) {
|
|
666
|
+
if (image) {
|
|
667
|
+
image.addEventListener("load", () => {
|
|
668
|
+
this.showAllHighlights(screenIndex);
|
|
669
|
+
}, { once: true });
|
|
670
|
+
}
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
const highlightItems = failedRules.map((rule, index) => {
|
|
674
|
+
const axeViewId = rule.axeViewId;
|
|
675
|
+
const issueNumber = index + 1;
|
|
676
|
+
if (!axeViewId) {
|
|
677
|
+
return null;
|
|
678
|
+
}
|
|
679
|
+
const isOutOfBounds = this.checkHighlightOutOfBounds(screenIndex, axeViewId, image);
|
|
680
|
+
if (isOutOfBounds) {
|
|
681
|
+
return null;
|
|
682
|
+
}
|
|
683
|
+
return { axeViewId, issueNumber };
|
|
684
|
+
}).filter(Boolean);
|
|
685
|
+
if (highlightItems.length > 0) {
|
|
686
|
+
this.drawAllHighlights(screenIndex, highlightItems);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
initializeCanvas(screenIndex, onReady) {
|
|
690
|
+
if (!this.report || !this.report.screens || this.report.screens.length === 0) {
|
|
691
|
+
if (onReady) onReady();
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
const canvas = document.getElementById(`canvas-${screenIndex}`);
|
|
695
|
+
const image = document.getElementById(`screenshot-${screenIndex}`);
|
|
696
|
+
if (!canvas || !image) {
|
|
697
|
+
if (onReady) onReady();
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
const executeDraw = () => {
|
|
701
|
+
canvas.width = image.naturalWidth || image.width;
|
|
702
|
+
canvas.height = image.naturalHeight || image.height;
|
|
703
|
+
const context = canvas.getContext("2d");
|
|
704
|
+
context.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
705
|
+
if (onReady) onReady();
|
|
706
|
+
};
|
|
707
|
+
if (image.complete && image.naturalWidth) {
|
|
708
|
+
executeDraw();
|
|
709
|
+
} else {
|
|
710
|
+
image.onload = () => {
|
|
711
|
+
executeDraw();
|
|
712
|
+
};
|
|
713
|
+
image.onerror = () => {
|
|
714
|
+
if (onReady) onReady();
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
drawAllHighlights(screenIndex, highlightItems) {
|
|
719
|
+
const canvas = document.getElementById(`canvas-${screenIndex}`);
|
|
720
|
+
const image = document.getElementById(`screenshot-${screenIndex}`);
|
|
721
|
+
const container = document.querySelector(`.screenshot-container[data-screen-index="${screenIndex}"]`);
|
|
722
|
+
if (!canvas || !image || !container) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
const executeDraw = () => {
|
|
726
|
+
var _a, _b, _c;
|
|
727
|
+
const context = canvas.getContext("2d");
|
|
728
|
+
if (!context) {
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
const naturalWidth = image.naturalWidth || image.width;
|
|
732
|
+
const naturalHeight = image.naturalHeight || image.height;
|
|
733
|
+
if (!naturalWidth || !naturalHeight) {
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
canvas.width = naturalWidth;
|
|
737
|
+
canvas.height = naturalHeight;
|
|
738
|
+
context.clearRect(0, 0, canvas.width, canvas.height);
|
|
739
|
+
context.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
740
|
+
if (!highlightItems || highlightItems.length === 0) {
|
|
741
|
+
return;
|
|
742
|
+
}
|
|
743
|
+
const screen = (_b = (_a = this.report) == null ? void 0 : _a.screens) == null ? void 0 : _b[screenIndex];
|
|
744
|
+
const axeViewRoot = (_c = screen == null ? void 0 : screen.axeContext) == null ? void 0 : _c.axeView;
|
|
745
|
+
if (!axeViewRoot) {
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
context.strokeStyle = "#B51AD1";
|
|
749
|
+
context.lineJoin = "round";
|
|
750
|
+
context.lineCap = "round";
|
|
751
|
+
const oldBadges = container.querySelectorAll(".highlight-badge");
|
|
752
|
+
oldBadges.forEach((badge) => badge.remove());
|
|
753
|
+
const badgeWidth = 14;
|
|
754
|
+
const badgeHeight = 14;
|
|
755
|
+
const badgePositions = [];
|
|
756
|
+
let visibleCount = 0;
|
|
757
|
+
let outOfBoundsCount = 0;
|
|
758
|
+
highlightItems.forEach((item) => {
|
|
759
|
+
const viewId = item.axeViewId;
|
|
760
|
+
const issueNumber = item.issueNumber;
|
|
761
|
+
const bounds = this.findViewBounds(axeViewRoot, viewId);
|
|
762
|
+
if (bounds) {
|
|
763
|
+
const clientWidth = canvas.clientWidth || canvas.width || 1;
|
|
764
|
+
const lineWidth = Math.max(2, Math.floor(3 * (canvas.width / clientWidth)));
|
|
765
|
+
context.lineWidth = lineWidth;
|
|
766
|
+
const xScale = canvas.width / (image.naturalWidth || canvas.width);
|
|
767
|
+
const yScale = canvas.height / (image.naturalHeight || canvas.height);
|
|
768
|
+
const leftScaled = bounds.left * xScale;
|
|
769
|
+
const topScaled = bounds.top * yScale;
|
|
770
|
+
const widthScaled = (bounds.right - bounds.left) * xScale;
|
|
771
|
+
const heightScaled = (bounds.bottom - bounds.top) * yScale;
|
|
772
|
+
const isOutOfBounds = leftScaled < -widthScaled || topScaled < -heightScaled || leftScaled > canvas.width || topScaled > canvas.height;
|
|
773
|
+
if (isOutOfBounds) {
|
|
774
|
+
outOfBoundsCount++;
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
visibleCount++;
|
|
778
|
+
context.strokeRect(leftScaled, topScaled, widthScaled, heightScaled);
|
|
779
|
+
const canvasRect = canvas.getBoundingClientRect();
|
|
780
|
+
const containerRect = container.getBoundingClientRect();
|
|
781
|
+
const scaleX = canvasRect.width / canvas.width;
|
|
782
|
+
const scaleY = canvasRect.height / canvas.height;
|
|
783
|
+
const canvasOffsetX = canvasRect.left - containerRect.left;
|
|
784
|
+
const canvasOffsetY = canvasRect.top - containerRect.top;
|
|
785
|
+
const corners = [
|
|
786
|
+
{
|
|
787
|
+
left: canvasOffsetX + (leftScaled + widthScaled) * scaleX - badgeWidth,
|
|
788
|
+
top: canvasOffsetY + (topScaled + heightScaled) * scaleY - badgeHeight,
|
|
789
|
+
name: "bottom-right"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
left: canvasOffsetX + (leftScaled + widthScaled) * scaleX - badgeWidth,
|
|
793
|
+
top: canvasOffsetY + topScaled * scaleY,
|
|
794
|
+
name: "top-right"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
left: canvasOffsetX + leftScaled * scaleX,
|
|
798
|
+
top: canvasOffsetY + (topScaled + heightScaled) * scaleY - badgeHeight,
|
|
799
|
+
name: "bottom-left"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
left: canvasOffsetX + leftScaled * scaleX,
|
|
803
|
+
top: canvasOffsetY + topScaled * scaleY,
|
|
804
|
+
name: "top-left"
|
|
805
|
+
}
|
|
806
|
+
];
|
|
807
|
+
let badgeLeft = corners[0].left;
|
|
808
|
+
let badgeTop = corners[0].top;
|
|
809
|
+
let placed = false;
|
|
810
|
+
for (const corner of corners) {
|
|
811
|
+
const collision = badgePositions.some((pos) => {
|
|
812
|
+
return Math.abs(pos.left - corner.left) < badgeWidth + 2 && Math.abs(pos.top - corner.top) < badgeHeight + 2;
|
|
813
|
+
});
|
|
814
|
+
if (!collision) {
|
|
815
|
+
badgeLeft = corner.left;
|
|
816
|
+
badgeTop = corner.top;
|
|
817
|
+
placed = true;
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
if (!placed) {
|
|
822
|
+
const offsetIndex = badgePositions.filter(
|
|
823
|
+
(pos) => Math.abs(pos.left - corners[0].left) < 50 && Math.abs(pos.top - corners[0].top) < 50
|
|
824
|
+
).length;
|
|
825
|
+
const offsetAmount = 16;
|
|
826
|
+
const col = offsetIndex % 4;
|
|
827
|
+
const row = Math.floor(offsetIndex / 4);
|
|
828
|
+
badgeLeft = corners[0].left + col * offsetAmount;
|
|
829
|
+
badgeTop = corners[0].top + row * offsetAmount;
|
|
830
|
+
const containerWidth = canvasRect.width;
|
|
831
|
+
const containerHeight = canvasRect.height;
|
|
832
|
+
if (badgeLeft < 0) badgeLeft = 0;
|
|
833
|
+
if (badgeTop < 0) badgeTop = 0;
|
|
834
|
+
if (badgeLeft + badgeWidth > containerWidth) badgeLeft = containerWidth - badgeWidth;
|
|
835
|
+
if (badgeTop + badgeHeight > containerHeight) badgeTop = containerHeight - badgeHeight;
|
|
836
|
+
}
|
|
837
|
+
badgePositions.push({ left: badgeLeft, top: badgeTop });
|
|
838
|
+
const badge = document.createElement("div");
|
|
839
|
+
badge.className = "highlight-badge";
|
|
840
|
+
badge.textContent = issueNumber.toString();
|
|
841
|
+
badge.setAttribute("data-axe-view-id", viewId);
|
|
842
|
+
badge.style.left = `${badgeLeft}px`;
|
|
843
|
+
badge.style.top = `${badgeTop}px`;
|
|
844
|
+
container.appendChild(badge);
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
context.stroke();
|
|
848
|
+
container.dataset.visibleHighlights = visibleCount;
|
|
849
|
+
container.dataset.totalHighlights = highlightItems.length;
|
|
850
|
+
container.dataset.outOfBoundsHighlights = outOfBoundsCount;
|
|
851
|
+
};
|
|
852
|
+
this.waitForImageLoad(image, executeDraw);
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Helper method to wait for image to load before executing callback
|
|
856
|
+
* @param {HTMLImageElement} image - The image element to wait for
|
|
857
|
+
* @param {Function} callback - Function to execute when image is loaded
|
|
858
|
+
*/
|
|
859
|
+
waitForImageLoad(image, callback) {
|
|
860
|
+
if (image.complete && image.naturalWidth) {
|
|
861
|
+
callback();
|
|
862
|
+
} else {
|
|
863
|
+
image.onload = () => {
|
|
864
|
+
callback();
|
|
865
|
+
};
|
|
866
|
+
image.onerror = () => {
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
findViewBounds(axeViewNode, axeViewId) {
|
|
871
|
+
if (!axeViewNode) {
|
|
872
|
+
return null;
|
|
873
|
+
}
|
|
874
|
+
if (axeViewNode.axeViewId === axeViewId && axeViewNode.boundsInScreen) {
|
|
875
|
+
return axeViewNode.boundsInScreen;
|
|
876
|
+
}
|
|
877
|
+
if (Array.isArray(axeViewNode.children)) {
|
|
878
|
+
for (const child of axeViewNode.children) {
|
|
879
|
+
const bounds = this.findViewBounds(child, axeViewId);
|
|
880
|
+
if (bounds) {
|
|
881
|
+
return bounds;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
return null;
|
|
886
|
+
}
|
|
887
|
+
computeAccessibilityScore() {
|
|
888
|
+
if (!this.report || !Array.isArray(this.report.screens) || this.report.screens.length === 0) {
|
|
889
|
+
return "-";
|
|
890
|
+
}
|
|
891
|
+
let seriousScans = 0;
|
|
892
|
+
let moderateScans = 0;
|
|
893
|
+
let minorOrNoIssuesScans = 0;
|
|
894
|
+
this.report.screens.forEach((screen) => {
|
|
895
|
+
if (!screen) return;
|
|
896
|
+
const highestImpact = this.getHighestImpactForScan(screen);
|
|
897
|
+
if (highestImpact >= IMPACT_LEVELS.CRITICAL) ;
|
|
898
|
+
else if (highestImpact === IMPACT_LEVELS.SERIOUS) {
|
|
899
|
+
seriousScans++;
|
|
900
|
+
} else if (highestImpact === IMPACT_LEVELS.MODERATE) {
|
|
901
|
+
moderateScans++;
|
|
902
|
+
} else {
|
|
903
|
+
minorOrNoIssuesScans++;
|
|
904
|
+
}
|
|
905
|
+
const scanScore = this.scoreAxeResult(screen);
|
|
906
|
+
if (typeof screen === "object") {
|
|
907
|
+
screen.score = scanScore;
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
const totalScans = this.report.screens.length;
|
|
911
|
+
if (totalScans === 0) {
|
|
912
|
+
return "-";
|
|
913
|
+
}
|
|
914
|
+
const groupScore = (0.4 * seriousScans + 0.8 * moderateScans + minorOrNoIssuesScans) / totalScans;
|
|
915
|
+
const groupScorePercentage = Math.round(groupScore * 100);
|
|
916
|
+
return `${groupScorePercentage}%`;
|
|
917
|
+
}
|
|
918
|
+
getHighestImpactForScan(screen) {
|
|
919
|
+
if (!screen || !Array.isArray(screen.axeRuleResults)) {
|
|
920
|
+
return 0;
|
|
921
|
+
}
|
|
922
|
+
let highestImpact = 0;
|
|
923
|
+
for (const axeRuleResult of screen.axeRuleResults) {
|
|
924
|
+
if (axeRuleResult.status === "FAIL") {
|
|
925
|
+
const impactValue = Number(axeRuleResult.impact);
|
|
926
|
+
if (impactValue > highestImpact) {
|
|
927
|
+
highestImpact = impactValue;
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return highestImpact;
|
|
932
|
+
}
|
|
933
|
+
scoreAxeResult(axeResult) {
|
|
934
|
+
if (!axeResult || !Array.isArray(axeResult.axeRuleResults)) {
|
|
935
|
+
return 100;
|
|
936
|
+
}
|
|
937
|
+
let maxScore = 100;
|
|
938
|
+
for (const axeRuleResult of axeResult.axeRuleResults) {
|
|
939
|
+
if (axeRuleResult.status === "FAIL") {
|
|
940
|
+
const impactValue = Number(axeRuleResult.impact);
|
|
941
|
+
if (impactValue >= IMPACT_LEVELS.SERIOUS) {
|
|
942
|
+
return 0;
|
|
943
|
+
} else if (impactValue === IMPACT_LEVELS.MODERATE) {
|
|
944
|
+
maxScore = 40;
|
|
945
|
+
} else if (impactValue === IMPACT_LEVELS.MINOR) {
|
|
946
|
+
maxScore = Math.min(maxScore, 80);
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
return maxScore;
|
|
951
|
+
}
|
|
952
|
+
formatRuleTitle(ruleId) {
|
|
953
|
+
if (!ruleId) return "Unknown rule";
|
|
954
|
+
return ruleId.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
955
|
+
}
|
|
956
|
+
capitalizeFirst(str) {
|
|
957
|
+
if (!str) return "";
|
|
958
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
959
|
+
}
|
|
960
|
+
renderAnalyzedValues(props) {
|
|
961
|
+
if (!props || Object.keys(props).length === 0) {
|
|
962
|
+
return '<div class="code-container">No analyzed values available</div>';
|
|
963
|
+
}
|
|
964
|
+
const values = Object.entries(props).map(([key, value]) => {
|
|
965
|
+
if (typeof value === "object") {
|
|
966
|
+
return `${key}: ${JSON.stringify(value)}`;
|
|
967
|
+
}
|
|
968
|
+
return `${key}: ${value}`;
|
|
969
|
+
}).join("\n");
|
|
970
|
+
return `<div class="code-container">${values || "No analyzed values available"}</div>`;
|
|
971
|
+
}
|
|
972
|
+
getDocsLinkPath(os, ruleId) {
|
|
973
|
+
let device = os;
|
|
974
|
+
if (device === "iPadOS") {
|
|
975
|
+
device = "iOS";
|
|
976
|
+
}
|
|
977
|
+
const devicePath = device.toLowerCase();
|
|
978
|
+
return `/axe/${devicePath}/rule/${ruleId}`;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
982
|
+
new AccessibilityReportViewer();
|
|
983
|
+
});</script>
|
|
984
|
+
<style rel="stylesheet" crossorigin>* {
|
|
985
|
+
margin: 0;
|
|
986
|
+
padding: 0;
|
|
987
|
+
box-sizing: border-box;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
:root {
|
|
991
|
+
--gray-30: #E0E0E0;
|
|
992
|
+
--gray-40: #CCCCCC;
|
|
993
|
+
--gray-60: #666666;
|
|
994
|
+
--gray-90: #333333;
|
|
995
|
+
--primary-blue: #316091;
|
|
996
|
+
--focus-purple: #B51AD1;
|
|
997
|
+
--hover-dark: #333333;
|
|
998
|
+
--text-primary: #000000;
|
|
999
|
+
--text-secondary: #666666;
|
|
1000
|
+
--light-background: #F0F2F5;
|
|
1001
|
+
--accent-secondary: #F2F2F2;
|
|
1002
|
+
--impact-critical-bg: #FEA7A6;
|
|
1003
|
+
--impact-critical-border: #DB6379;
|
|
1004
|
+
--impact-critical-text: #333333;
|
|
1005
|
+
--impact-serious-bg: #FFE69F;
|
|
1006
|
+
--impact-serious-border: #FFDD75;
|
|
1007
|
+
--impact-serious-text: #333333;
|
|
1008
|
+
--impact-moderate-bg: #F0C4F8;
|
|
1009
|
+
--impact-moderate-border: #EB94FF;
|
|
1010
|
+
--impact-moderate-text: #333333;
|
|
1011
|
+
--impact-minor-bg: #F2F2F2;
|
|
1012
|
+
--impact-minor-border: #E0E0E0;
|
|
1013
|
+
--impact-minor-text: #333333;
|
|
1014
|
+
--card-shadow: 0px 2px 4px -2px rgba(51, 51, 51, 0.08), 0px 4px 8px -2px rgba(0, 0, 0, 0.04);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
body {
|
|
1018
|
+
font-family: 'Roboto', sans-serif;
|
|
1019
|
+
font-size: 16px;
|
|
1020
|
+
line-height: 1.5;
|
|
1021
|
+
color: var(--text-primary);
|
|
1022
|
+
background: white;
|
|
1023
|
+
min-height: 100vh;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.header {
|
|
1027
|
+
height: 70px;
|
|
1028
|
+
background: white;
|
|
1029
|
+
border-bottom: 1px solid var(--gray-40);
|
|
1030
|
+
display: flex;
|
|
1031
|
+
justify-content: center;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.header-inner {
|
|
1035
|
+
width: 100%;
|
|
1036
|
+
max-width: 1175px;
|
|
1037
|
+
height: 100%;
|
|
1038
|
+
display: flex;
|
|
1039
|
+
align-items: center;
|
|
1040
|
+
justify-content: space-between;
|
|
1041
|
+
border-left: 1px solid var(--gray-40);
|
|
1042
|
+
border-right: 1px solid var(--gray-40);
|
|
1043
|
+
padding: 0 24px;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.header-content {
|
|
1047
|
+
display: flex;
|
|
1048
|
+
align-items: center;
|
|
1049
|
+
gap: 0;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.logo {
|
|
1053
|
+
width: 30px;
|
|
1054
|
+
height: 30px;
|
|
1055
|
+
margin-right: 12px;
|
|
1056
|
+
flex-shrink: 0;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.header-title {
|
|
1060
|
+
font-size: 20px;
|
|
1061
|
+
font-weight: 500;
|
|
1062
|
+
line-height: 130%;
|
|
1063
|
+
letter-spacing: -0.015em;
|
|
1064
|
+
user-select: none;
|
|
1065
|
+
-webkit-user-select: none;
|
|
1066
|
+
-moz-user-select: none;
|
|
1067
|
+
-ms-user-select: none;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.container {
|
|
1071
|
+
width: 100%;
|
|
1072
|
+
margin: 0 auto;
|
|
1073
|
+
padding: 32px;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.page-body {
|
|
1077
|
+
width: 100%;
|
|
1078
|
+
max-width: 1175px;
|
|
1079
|
+
margin: 0 auto;
|
|
1080
|
+
display: flex;
|
|
1081
|
+
flex-direction: column;
|
|
1082
|
+
gap: 32px;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
/* Responsive Layout */
|
|
1086
|
+
.page-wrapper {
|
|
1087
|
+
display: flex;
|
|
1088
|
+
gap: 32px;
|
|
1089
|
+
align-items: flex-start;
|
|
1090
|
+
flex-direction: column;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.main-content-wrapper {
|
|
1094
|
+
width: 100%;
|
|
1095
|
+
display: flex;
|
|
1096
|
+
flex-direction: column;
|
|
1097
|
+
gap: 32px;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.filter-by-section {
|
|
1101
|
+
width: 100%;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
.screen-list {
|
|
1105
|
+
width: 100%;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.separator-after-filter {
|
|
1109
|
+
display: block;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/* Desktop layout (≥1024px) */
|
|
1113
|
+
@media (min-width: 1024px) {
|
|
1114
|
+
.page-wrapper {
|
|
1115
|
+
flex-direction: row;
|
|
1116
|
+
align-items: flex-start;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.main-content-wrapper {
|
|
1120
|
+
flex: 1;
|
|
1121
|
+
min-width: 0;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
@media (max-width: 1023px) {
|
|
1126
|
+
.page-wrapper {
|
|
1127
|
+
flex-direction: column;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
.main-content-wrapper {
|
|
1131
|
+
order: 2;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.report-title {
|
|
1136
|
+
font-weight: 500;
|
|
1137
|
+
font-size: 30px;
|
|
1138
|
+
line-height: 1.3;
|
|
1139
|
+
letter-spacing: -0.6px;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
.statistics {
|
|
1143
|
+
display: flex;
|
|
1144
|
+
flex-wrap: wrap;
|
|
1145
|
+
gap: 32px;
|
|
1146
|
+
row-gap: 24px;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
.stat-item {
|
|
1150
|
+
display: flex;
|
|
1151
|
+
flex-direction: column;
|
|
1152
|
+
gap: 4px;
|
|
1153
|
+
flex: 0 0 auto;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/* Statistics should fit in 1 row on larger screens, wrap to 2 rows around 900px */
|
|
1157
|
+
@media (min-width: 900px) {
|
|
1158
|
+
.stat-item {
|
|
1159
|
+
flex: 0 0 calc((100% - 224px) / 7 ); /* 7 items with 6 gaps of 32px = 224px */
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
@media (max-width: 899px) {
|
|
1164
|
+
.stat-item {
|
|
1165
|
+
flex: 0 0 calc((100% - 32px) / 2); /* 2 items per row with 1 gap */
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
.stat-label {
|
|
1170
|
+
font-weight: 500;
|
|
1171
|
+
font-size: 16px;
|
|
1172
|
+
line-height: 150%;
|
|
1173
|
+
letter-spacing: 0;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.stat-value {
|
|
1177
|
+
font-weight: 400;
|
|
1178
|
+
font-size: 16px;
|
|
1179
|
+
line-height: 150%;
|
|
1180
|
+
letter-spacing: 0;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.separator {
|
|
1184
|
+
height: 1px;
|
|
1185
|
+
background: var(--gray-30);
|
|
1186
|
+
width: 100%;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.screen-item {
|
|
1190
|
+
display: flex;
|
|
1191
|
+
flex-direction: column;
|
|
1192
|
+
gap: 24px;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
.screen-item + .screen-item {
|
|
1196
|
+
margin-top: 48px;
|
|
1197
|
+
padding-top: 48px;
|
|
1198
|
+
border-top: 1px solid var(--gray-30);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.filter-group {
|
|
1202
|
+
display: flex;
|
|
1203
|
+
align-items: center;
|
|
1204
|
+
gap: 24px;
|
|
1205
|
+
flex-wrap: wrap;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
.filter-label {
|
|
1209
|
+
font-weight: 500;
|
|
1210
|
+
font-size: 16px;
|
|
1211
|
+
line-height: 150%;
|
|
1212
|
+
letter-spacing: 0;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.radio-group {
|
|
1216
|
+
display: flex;
|
|
1217
|
+
align-items: center;
|
|
1218
|
+
gap: 12px;
|
|
1219
|
+
flex-wrap: wrap;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.radio-wrapper {
|
|
1223
|
+
display: flex;
|
|
1224
|
+
align-items: center;
|
|
1225
|
+
gap: 8px;
|
|
1226
|
+
cursor: pointer;
|
|
1227
|
+
position: relative;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.radio-input {
|
|
1231
|
+
position: absolute;
|
|
1232
|
+
opacity: 0;
|
|
1233
|
+
width: 0;
|
|
1234
|
+
height: 0;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.radio-button {
|
|
1238
|
+
width: 24px;
|
|
1239
|
+
height: 24px;
|
|
1240
|
+
border: 2px solid var(--gray-90);
|
|
1241
|
+
border-radius: 999px;
|
|
1242
|
+
display: flex;
|
|
1243
|
+
align-items: center;
|
|
1244
|
+
justify-content: center;
|
|
1245
|
+
position: relative;
|
|
1246
|
+
transition: all 0.2s ease;
|
|
1247
|
+
background: var(--white);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.radio-dot {
|
|
1251
|
+
width: 16px;
|
|
1252
|
+
height: 16px;
|
|
1253
|
+
background: var(--primary-blue);
|
|
1254
|
+
border-radius: 999px;
|
|
1255
|
+
opacity: 0;
|
|
1256
|
+
transform: scale(0);
|
|
1257
|
+
transition: all 0.2s ease;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
.radio-input:checked + .radio-button {
|
|
1261
|
+
border-color: var(--primary-blue);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
.radio-input:checked + .radio-button .radio-dot {
|
|
1265
|
+
opacity: 1;
|
|
1266
|
+
transform: scale(1);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.radio-wrapper:hover .radio-button::after {
|
|
1270
|
+
content: '';
|
|
1271
|
+
position: absolute;
|
|
1272
|
+
left: -5px;
|
|
1273
|
+
right: -5px;
|
|
1274
|
+
top: -5px;
|
|
1275
|
+
bottom: -5px;
|
|
1276
|
+
border: 1px solid var(--hover-dark);
|
|
1277
|
+
border-radius: 5px;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.radio-input:focus + .radio-button::before {
|
|
1281
|
+
content: '';
|
|
1282
|
+
position: absolute;
|
|
1283
|
+
left: -5px;
|
|
1284
|
+
right: -5px;
|
|
1285
|
+
top: -5px;
|
|
1286
|
+
bottom: -5px;
|
|
1287
|
+
border: 1px solid var(--focus-purple);
|
|
1288
|
+
border-radius: 5px;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.radio-label {
|
|
1292
|
+
font-weight: 400;
|
|
1293
|
+
font-size: 15px;
|
|
1294
|
+
line-height: 150%;
|
|
1295
|
+
letter-spacing: 0;
|
|
1296
|
+
user-select: none;
|
|
1297
|
+
color: var(--gray-90);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.screen-list {
|
|
1301
|
+
display: none;
|
|
1302
|
+
flex-direction: column;
|
|
1303
|
+
gap: 0px;
|
|
1304
|
+
opacity: 1;
|
|
1305
|
+
transition: opacity 0.15s ease-in-out;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.screen-list.active {
|
|
1309
|
+
display: flex;
|
|
1310
|
+
gap: 0px;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/* Screen list styles - consolidated with main .screen-item definition */
|
|
1314
|
+
|
|
1315
|
+
.screenshot-canvas {
|
|
1316
|
+
width: 100%;
|
|
1317
|
+
height: auto;
|
|
1318
|
+
display: block;
|
|
1319
|
+
background: transparent;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/* Hide any canvas when no-scans is present - catch-all rule */
|
|
1323
|
+
body:has(#screenList .no-scans) canvas.screenshot-canvas,
|
|
1324
|
+
body:has(#screenList .no-scans) canvas[data-screen-index],
|
|
1325
|
+
body:has(#screenList .no-scans) canvas[id^="canvas-"] {
|
|
1326
|
+
display: none !important;
|
|
1327
|
+
visibility: hidden !important;
|
|
1328
|
+
opacity: 0 !important;
|
|
1329
|
+
position: absolute !important;
|
|
1330
|
+
left: -9999px !important;
|
|
1331
|
+
width: 0 !important;
|
|
1332
|
+
height: 0 !important;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/* Hide canvas elements when no-scans state is shown */
|
|
1336
|
+
.no-scans ~ .screenshot-canvas,
|
|
1337
|
+
.no-scans ~ .screenshot-container,
|
|
1338
|
+
.no-scans .screenshot-canvas,
|
|
1339
|
+
.no-scans .screenshot-container,
|
|
1340
|
+
#screenList .no-scans ~ .screenshot-canvas,
|
|
1341
|
+
#screenList .no-scans ~ .screenshot-container {
|
|
1342
|
+
display: none !important;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.screenshot-container {
|
|
1346
|
+
position: relative;
|
|
1347
|
+
width: 100%;
|
|
1348
|
+
overflow: hidden;
|
|
1349
|
+
border: 1px solid var(--gray-40);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
.screenshot-hidden {
|
|
1353
|
+
display: none;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
.highlight-badge {
|
|
1357
|
+
position: absolute;
|
|
1358
|
+
min-width: 14px;
|
|
1359
|
+
height: 14px;
|
|
1360
|
+
background: var(--focus-purple);
|
|
1361
|
+
color: white;
|
|
1362
|
+
font-size: 9px;
|
|
1363
|
+
font-weight: 700;
|
|
1364
|
+
line-height: 14px;
|
|
1365
|
+
text-align: center;
|
|
1366
|
+
padding: 0 2px;
|
|
1367
|
+
box-sizing: border-box;
|
|
1368
|
+
border-radius: 0;
|
|
1369
|
+
display: flex;
|
|
1370
|
+
align-items: center;
|
|
1371
|
+
justify-content: center;
|
|
1372
|
+
pointer-events: none;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
.screenshot-placeholder {
|
|
1376
|
+
width: 100%;
|
|
1377
|
+
min-height: 400px;
|
|
1378
|
+
background: var(--light-background);
|
|
1379
|
+
border: 1px solid var(--gray-30);
|
|
1380
|
+
border-radius: 16px;
|
|
1381
|
+
display: flex;
|
|
1382
|
+
align-items: center;
|
|
1383
|
+
justify-content: center;
|
|
1384
|
+
color: #999;
|
|
1385
|
+
font-size: 14px;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.screen-rules {
|
|
1389
|
+
flex: 1;
|
|
1390
|
+
display: flex;
|
|
1391
|
+
flex-direction: column;
|
|
1392
|
+
gap: 24px;
|
|
1393
|
+
min-width: 0;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.rule-item {
|
|
1397
|
+
border: 1px solid var(--gray-30);
|
|
1398
|
+
border-radius: 16px;
|
|
1399
|
+
padding: 24px;
|
|
1400
|
+
display: flex;
|
|
1401
|
+
flex-direction: column;
|
|
1402
|
+
gap: 24px;
|
|
1403
|
+
background: #fff;
|
|
1404
|
+
box-shadow: var(--card-shadow);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
.rule-header {
|
|
1408
|
+
display: flex;
|
|
1409
|
+
flex-wrap: wrap;
|
|
1410
|
+
align-items: flex-start;
|
|
1411
|
+
gap: 16px;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.rule-info {
|
|
1415
|
+
display: flex;
|
|
1416
|
+
flex-direction: column;
|
|
1417
|
+
gap: 8px;
|
|
1418
|
+
flex: 1;
|
|
1419
|
+
min-width: 320px;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
.rule-title {
|
|
1423
|
+
font-family: 'Roboto', sans-serif;
|
|
1424
|
+
font-size: 18px;
|
|
1425
|
+
font-style: normal;
|
|
1426
|
+
font-weight: 500;
|
|
1427
|
+
line-height: 150%;
|
|
1428
|
+
color: var(--gray-90);
|
|
1429
|
+
margin: 0;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
.rule-description {
|
|
1433
|
+
font-weight: 400;
|
|
1434
|
+
font-size: 16px;
|
|
1435
|
+
line-height: 150%;
|
|
1436
|
+
color: var(--gray-60);
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
.impact-badge {
|
|
1440
|
+
display: inline-flex;
|
|
1441
|
+
align-items: center;
|
|
1442
|
+
gap: 4px;
|
|
1443
|
+
padding: 8px 16px;
|
|
1444
|
+
min-height: 36px;
|
|
1445
|
+
border-radius: 999px;
|
|
1446
|
+
font-weight: 500;
|
|
1447
|
+
font-size: 16px;
|
|
1448
|
+
line-height: 1;
|
|
1449
|
+
white-space: nowrap;
|
|
1450
|
+
border: 1px solid transparent;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.impact-badge.critical {
|
|
1454
|
+
background: #FEA7A6;
|
|
1455
|
+
border-color: #DB6379;
|
|
1456
|
+
color: var(--gray-90);
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.impact-badge.serious {
|
|
1460
|
+
background: #FFE69F;
|
|
1461
|
+
border-color: #FFDD75;
|
|
1462
|
+
color: var(--gray-90);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.impact-badge.moderate {
|
|
1466
|
+
background: #F0C4F8;
|
|
1467
|
+
border-color: #EB94FF;
|
|
1468
|
+
color: var(--gray-90);
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.impact-badge.minor {
|
|
1472
|
+
background: #F2F2F2;
|
|
1473
|
+
border-color: #E0E0E0;
|
|
1474
|
+
color: var(--gray-90);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
.impact-badge.unknown {
|
|
1478
|
+
background: var(--gray-30);
|
|
1479
|
+
border-color: var(--gray-40);
|
|
1480
|
+
color: var(--gray-90);
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
.rule-divider {
|
|
1484
|
+
height: 1px;
|
|
1485
|
+
background: var(--gray-30);
|
|
1486
|
+
margin: 8px 0;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
.analyzed-values {
|
|
1490
|
+
display: flex;
|
|
1491
|
+
flex-direction: column;
|
|
1492
|
+
gap: 16px;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.analyzed-values-title {
|
|
1496
|
+
font-weight: 500;
|
|
1497
|
+
font-size: 16px;
|
|
1498
|
+
line-height: 150%;
|
|
1499
|
+
color: #333333;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
.code-container {
|
|
1503
|
+
display: flex;
|
|
1504
|
+
flex-direction: column;
|
|
1505
|
+
align-items: flex-start;
|
|
1506
|
+
padding: 12px;
|
|
1507
|
+
gap: 8px;
|
|
1508
|
+
background: var(--light-background);
|
|
1509
|
+
border: 1px solid var(--gray-40);
|
|
1510
|
+
border-radius: 4px;
|
|
1511
|
+
font-family: 'Monaco', 'Courier New', monospace;
|
|
1512
|
+
font-size: 13px;
|
|
1513
|
+
line-height: 150%;
|
|
1514
|
+
color: #575957;
|
|
1515
|
+
word-break: break-all;
|
|
1516
|
+
overflow-wrap: break-word;
|
|
1517
|
+
white-space: pre-line;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.rule-docs-link {
|
|
1521
|
+
margin-top: 8px;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.docs-link {
|
|
1525
|
+
display: inline-flex;
|
|
1526
|
+
align-items: center;
|
|
1527
|
+
gap: 4px;
|
|
1528
|
+
background: transparent;
|
|
1529
|
+
font-family: 'Roboto', sans-serif;
|
|
1530
|
+
font-size: 16px;
|
|
1531
|
+
font-style: normal;
|
|
1532
|
+
font-weight: 400;
|
|
1533
|
+
line-height: 150%;
|
|
1534
|
+
color: var(--gray-90);
|
|
1535
|
+
text-decoration-line: underline;
|
|
1536
|
+
text-decoration-style: solid;
|
|
1537
|
+
text-decoration-skip-ink: none;
|
|
1538
|
+
text-decoration-thickness: auto;
|
|
1539
|
+
text-underline-offset: auto;
|
|
1540
|
+
text-underline-position: from-font;
|
|
1541
|
+
transition: opacity 0.2s;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
.docs-link:hover {
|
|
1545
|
+
text-decoration: underline;
|
|
1546
|
+
opacity: 0.7;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
.docs-link svg {
|
|
1550
|
+
flex-shrink: 0;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
.no-issues {
|
|
1555
|
+
display: flex;
|
|
1556
|
+
padding: 40px;
|
|
1557
|
+
align-items: flex-start;
|
|
1558
|
+
gap: 24px;
|
|
1559
|
+
align-self: stretch;
|
|
1560
|
+
border-radius: 16px;
|
|
1561
|
+
border: 1px solid #E0E0E0;
|
|
1562
|
+
background: #FFFFFF;
|
|
1563
|
+
flex-direction: column;
|
|
1564
|
+
text-align: left;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
.no-issues-heading {
|
|
1568
|
+
color: var(--black);
|
|
1569
|
+
font-family: 'Roboto', sans-serif;
|
|
1570
|
+
font-size: 20px;
|
|
1571
|
+
font-style: normal;
|
|
1572
|
+
font-weight: 500;
|
|
1573
|
+
line-height: 130%;
|
|
1574
|
+
letter-spacing: -0.3px;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
.no-issues-text {
|
|
1578
|
+
color: var(--black);
|
|
1579
|
+
font-family: 'Roboto', sans-serif;
|
|
1580
|
+
font-size: 16px;
|
|
1581
|
+
font-style: normal;
|
|
1582
|
+
font-weight: 400;
|
|
1583
|
+
max-width: 488px;
|
|
1584
|
+
color: #666;
|
|
1585
|
+
line-height: 150%;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.no-issues.no-scans {
|
|
1589
|
+
width: 100%;
|
|
1590
|
+
max-width: 100%;
|
|
1591
|
+
align-self: stretch;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
/* Hide all canvas and screenshot elements when no-scans is shown */
|
|
1595
|
+
#screenList .no-scans ~ .screenshot-canvas,
|
|
1596
|
+
#screenList .no-scans ~ .screenshot-container,
|
|
1597
|
+
#screenList .no-scans ~ .screenshot-placeholder,
|
|
1598
|
+
#screenList:has(.no-scans) .screenshot-canvas,
|
|
1599
|
+
#screenList:has(.no-scans) .screenshot-container,
|
|
1600
|
+
#screenList:has(.no-scans) .screenshot-placeholder,
|
|
1601
|
+
/* Hide any canvas elements when no-scans is present anywhere in screenList */
|
|
1602
|
+
#screenList:has(.no-scans) ~ .screenshot-canvas,
|
|
1603
|
+
body:has(#screenList .no-scans) .screenshot-canvas[data-screen-index],
|
|
1604
|
+
body:has(#screenList .no-scans) .screenshot-container {
|
|
1605
|
+
display: none !important;
|
|
1606
|
+
visibility: hidden !important;
|
|
1607
|
+
opacity: 0 !important;
|
|
1608
|
+
height: 0 !important;
|
|
1609
|
+
width: 0 !important;
|
|
1610
|
+
overflow: hidden !important;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
/* Screen Layout - Two Column */
|
|
1614
|
+
.screen-item {
|
|
1615
|
+
display: flex;
|
|
1616
|
+
flex-direction: column;
|
|
1617
|
+
gap: 24px;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
.screen-item + .screen-item {
|
|
1621
|
+
margin-top: 48px;
|
|
1622
|
+
padding-top: 48px;
|
|
1623
|
+
border-top: 1px solid var(--gray-30);
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
.screen-header {
|
|
1627
|
+
display: flex;
|
|
1628
|
+
flex-direction: column;
|
|
1629
|
+
gap: 8px;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
.screen-name {
|
|
1633
|
+
font-family: 'Roboto', sans-serif;
|
|
1634
|
+
font-size: 18px;
|
|
1635
|
+
font-style: normal;
|
|
1636
|
+
font-weight: 500;
|
|
1637
|
+
line-height: 150%;
|
|
1638
|
+
color: var(--gray-90);
|
|
1639
|
+
margin: 0;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
.screen-content {
|
|
1643
|
+
display: flex;
|
|
1644
|
+
align-items: flex-start;
|
|
1645
|
+
gap: 32px;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
@media (max-width: 767px) {
|
|
1649
|
+
.screen-content {
|
|
1650
|
+
flex-direction: column;
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.screenshot-column {
|
|
1655
|
+
width: 323px;
|
|
1656
|
+
flex-shrink: 0;
|
|
1657
|
+
position: sticky;
|
|
1658
|
+
top: 20px;
|
|
1659
|
+
align-self: flex-start;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
@media (max-width: 767px) {
|
|
1663
|
+
.screenshot-column {
|
|
1664
|
+
width: 100%;
|
|
1665
|
+
position: static; /* Disable sticky on mobile */
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
.issues-column {
|
|
1670
|
+
flex: 1;
|
|
1671
|
+
min-width: 0;
|
|
1672
|
+
display: flex;
|
|
1673
|
+
flex-direction: column;
|
|
1674
|
+
gap: 24px;
|
|
1675
|
+
padding-right: 8px;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
/* Highlight Button */
|
|
1679
|
+
.highlight-button {
|
|
1680
|
+
display: flex;
|
|
1681
|
+
align-items: center;
|
|
1682
|
+
justify-content: center;
|
|
1683
|
+
gap: 6px;
|
|
1684
|
+
padding: 10px 16px;
|
|
1685
|
+
height: 36px;
|
|
1686
|
+
background: var(--gray-30);
|
|
1687
|
+
border: 1px solid var(--gray-40);
|
|
1688
|
+
border-radius: 4px;
|
|
1689
|
+
font-family: 'Roboto', sans-serif;
|
|
1690
|
+
font-size: 16px;
|
|
1691
|
+
font-weight: 500;
|
|
1692
|
+
line-height: 1;
|
|
1693
|
+
color: var(--gray-90);
|
|
1694
|
+
cursor: pointer;
|
|
1695
|
+
transition: background 0.2s, border 0.2s, color 0.2s;
|
|
1696
|
+
white-space: nowrap;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
.highlight-button:hover:not(:disabled) {
|
|
1700
|
+
background: #e6e6e6;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.highlight-button.active {
|
|
1704
|
+
background: var(--accent-secondary);
|
|
1705
|
+
border-color: var(--focus-purple);
|
|
1706
|
+
color: var(--focus-purple);
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
.highlight-button.active svg path {
|
|
1710
|
+
fill: var(--focus-purple);
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.highlight-button:disabled {
|
|
1714
|
+
background: var(--gray-30);
|
|
1715
|
+
color: var(--gray-60);
|
|
1716
|
+
cursor: not-allowed;
|
|
1717
|
+
opacity: 0.5;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
.highlight-button:focus-visible {
|
|
1721
|
+
outline: 2px solid var(--focus-purple);
|
|
1722
|
+
outline-offset: 2px;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
.highlight-button svg {
|
|
1726
|
+
width: 16px;
|
|
1727
|
+
height: 16px;
|
|
1728
|
+
flex-shrink: 0;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.highlight-button svg path {
|
|
1732
|
+
fill: var(--gray-90);
|
|
1733
|
+
transition: fill 0.2s;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/* Out of bounds indicator */
|
|
1737
|
+
.highlight-out-of-bounds {
|
|
1738
|
+
display: flex;
|
|
1739
|
+
align-items: center;
|
|
1740
|
+
gap: 6px;
|
|
1741
|
+
padding: 10px 16px;
|
|
1742
|
+
height: 36px;
|
|
1743
|
+
color: var(--gray-60);
|
|
1744
|
+
font-family: 'Roboto', sans-serif;
|
|
1745
|
+
font-size: 16px;
|
|
1746
|
+
font-weight: 400;
|
|
1747
|
+
line-height: 1;
|
|
1748
|
+
white-space: nowrap;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
.highlight-out-of-bounds svg {
|
|
1752
|
+
width: 16px;
|
|
1753
|
+
height: 16px;
|
|
1754
|
+
flex-shrink: 0;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.rule-actions {
|
|
1758
|
+
display: flex;
|
|
1759
|
+
align-items: center;
|
|
1760
|
+
gap: 12px;
|
|
1761
|
+
}</style>
|
|
1762
|
+
</head>
|
|
1763
|
+
<body>
|
|
1764
|
+
<header class="header">
|
|
1765
|
+
<div class="header-inner">
|
|
1766
|
+
<div class="header-content">
|
|
1767
|
+
<svg class="logo" width="30" height="30" viewBox="0 0 162.5 162.5" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
1768
|
+
<defs>
|
|
1769
|
+
<style>.logo .cls-1{fill:#2e5f7a;fill-rule:evenodd}.logo .cls-2{fill:#b25295;fill-rule:evenodd}</style>
|
|
1770
|
+
</defs>
|
|
1771
|
+
<path class="cls-1" d="M79.69,123.16c5.22,0,10.22,2.07,13.91,5.76,3.69,3.69,5.76,8.69,5.76,13.91s-2.07,10.22-5.76,13.91c-3.69,3.69-8.69,5.76-13.91,5.76h-15.6v-39.34h15.6Z"/>
|
|
1772
|
+
<path class="cls-2" d="M109.78,111.98c3.69-3.69,8.69-5.76,13.91-5.76,5.22,0,10.22,2.07,13.91,5.76,3.69,3.69,5.76,8.69,5.76,13.91,0,5.22-2.07,10.22-5.76,13.91l-11.03,11.03-27.82-27.82,11.03-11.03Z"/>
|
|
1773
|
+
<path class="cls-1" d="M123.16,82.81c0-5.22,2.07-10.22,5.76-13.91,3.69-3.69,8.69-5.76,13.91-5.76s10.22,2.07,13.91,5.76c3.69,3.69,5.76,8.69,5.76,13.91v15.6h-39.34v-15.6Z"/>
|
|
1774
|
+
<path class="cls-2" d="M111.98,52.72c-3.69-3.69-5.76-8.69-5.76-13.91,0-5.22,2.07-10.22,5.76-13.91,3.69-3.69,8.69-5.76,13.91-5.76,5.22,0,10.22,2.07,13.91,5.76l11.03,11.03-27.82,27.82-11.03-11.03Z"/>
|
|
1775
|
+
<path class="cls-1" d="M82.81,39.34c-5.22,0-10.22-2.07-13.91-5.76-3.69-3.69-5.76-8.69-5.76-13.91,0-5.22,2.07-10.22,5.76-13.91C72.59,2.07,77.59,0,82.81,0h15.6v39.34h-15.6Z"/>
|
|
1776
|
+
<path class="cls-2" d="M52.72,50.51c-3.69,3.69-8.69,5.76-13.91,5.76-5.22,0-10.22-2.07-13.91-5.76-3.69-3.69-5.76-8.69-5.76-13.91,0-5.22,2.07-10.22,5.76-13.91l11.03-11.03,27.82,27.82-11.03,11.03Z"/>
|
|
1777
|
+
<path class="cls-1" d="M39.34,79.69c0,5.22-2.07,10.22-5.76,13.91-3.69,3.69-8.69,5.76-13.91,5.76s-10.22-2.07-13.91-5.76C2.07,89.91,0,84.91,0,79.69v-15.6h39.34v15.6Z"/>
|
|
1778
|
+
<path class="cls-2" d="M50.51,109.78c3.69,3.69,5.76,8.69,5.76,13.91,0,5.22-2.07,10.22-5.76,13.91-3.69,3.69-8.69,5.76-13.91,5.76-5.22,0-10.22-2.07-13.91-5.76l-11.03-11.03,27.82-27.82,11.03,11.03Z"/>
|
|
1779
|
+
</svg>
|
|
1780
|
+
<span class="header-title">Axe DevTools Mobile</span>
|
|
1781
|
+
</div>
|
|
1782
|
+
</div>
|
|
1783
|
+
</header>
|
|
1784
|
+
|
|
1785
|
+
<main class="container">
|
|
1786
|
+
<div class="page-body">
|
|
1787
|
+
<h1 class="report-title" id="reportTitle">Accessibility report</h1>
|
|
1788
|
+
|
|
1789
|
+
<div class="page-wrapper">
|
|
1790
|
+
<div class="main-content-wrapper">
|
|
1791
|
+
<div class="statistics" id="statistics">
|
|
1792
|
+
<div class="stat-item">
|
|
1793
|
+
<span class="stat-label">Total scans</span>
|
|
1794
|
+
<span class="stat-value" id="totalScans">-</span>
|
|
1795
|
+
</div>
|
|
1796
|
+
<div class="stat-item">
|
|
1797
|
+
<span class="stat-label">Total issues</span>
|
|
1798
|
+
<span class="stat-value" id="totalIssues">-</span>
|
|
1799
|
+
</div>
|
|
1800
|
+
<div class="stat-item">
|
|
1801
|
+
<span class="stat-label">Accessibility score</span>
|
|
1802
|
+
<span class="stat-value" id="accessibilityScore">-</span>
|
|
1803
|
+
<a href="https://docs.deque.com/devtools-mobile/accessibility-score" target="_blank" rel="noopener noreferrer" class="score-whats-this docs-link">
|
|
1804
|
+
What's this?
|
|
1805
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
|
1806
|
+
<g clip-path="url(#clip0_score_link)">
|
|
1807
|
+
<path d="M11 0C10.6 0 10.2333 0.246667 10.0733 0.62C9.92 0.993333 10.0067 1.42 10.2867 1.71333L11.58 3.00667L6.29333 8.3C5.9 8.69333 5.9 9.32667 6.29333 9.71333C6.68667 10.1 7.32 10.1067 7.70667 9.71333L12.9933 4.42L14.2867 5.71333C14.5733 6 15 6.08667 15.38 5.92667C15.76 5.76667 16 5.40667 16 5V1C16 0.446667 15.5533 0 15 0H11ZM2.5 1C1.12 1 0 2.12 0 3.5V13.5C0 14.88 1.12 16 2.5 16H12.5C13.88 16 15 14.88 15 13.5V10C15 9.44667 14.5533 9 14 9C13.4467 9 13 9.44667 13 10V13.5C13 13.7733 12.7733 14 12.5 14H2.5C2.22667 14 2 13.7733 2 13.5V3.5C2 3.22667 2.22667 3 2.5 3H6C6.55333 3 7 2.55333 7 2C7 1.44667 6.55333 1 6 1H2.5Z" fill="#333333"/>
|
|
1808
|
+
</g>
|
|
1809
|
+
<defs>
|
|
1810
|
+
<clipPath id="clip0_score_link"><rect width="16" height="16" fill="white"/></clipPath>
|
|
1811
|
+
</defs>
|
|
1812
|
+
</svg>
|
|
1813
|
+
</a>
|
|
1814
|
+
</div>
|
|
1815
|
+
<div class="stat-item">
|
|
1816
|
+
<span class="stat-label">Critical issues</span>
|
|
1817
|
+
<span class="stat-value" id="criticalIssues">-</span>
|
|
1818
|
+
</div>
|
|
1819
|
+
<div class="stat-item">
|
|
1820
|
+
<span class="stat-label">Serious issues</span>
|
|
1821
|
+
<span class="stat-value" id="seriousIssues">-</span>
|
|
1822
|
+
</div>
|
|
1823
|
+
<div class="stat-item">
|
|
1824
|
+
<span class="stat-label">Moderate issues</span>
|
|
1825
|
+
<span class="stat-value" id="moderateIssues">-</span>
|
|
1826
|
+
</div>
|
|
1827
|
+
<div class="stat-item">
|
|
1828
|
+
<span class="stat-label">Minor issues</span>
|
|
1829
|
+
<span class="stat-value" id="minorIssues">-</span>
|
|
1830
|
+
</div>
|
|
1831
|
+
</div>
|
|
1832
|
+
|
|
1833
|
+
<div class="separator"></div>
|
|
1834
|
+
<div class="filter-group" style="display: none;">
|
|
1835
|
+
<span class="filter-label">View:</span>
|
|
1836
|
+
<div class="radio-group" id="viewFilter">
|
|
1837
|
+
<label class="radio-wrapper">
|
|
1838
|
+
<input type="radio" name="view" value="all" class="radio-input" checked>
|
|
1839
|
+
<div class="radio-button">
|
|
1840
|
+
<div class="radio-dot"></div>
|
|
1841
|
+
</div>
|
|
1842
|
+
<span class="radio-label">All screens</span>
|
|
1843
|
+
</label>
|
|
1844
|
+
</div>
|
|
1845
|
+
</div>
|
|
1846
|
+
|
|
1847
|
+
<div class="filter-group filter-by-section">
|
|
1848
|
+
<span class="filter-label">Filter by:</span>
|
|
1849
|
+
<div class="radio-group" id="impactFilter">
|
|
1850
|
+
<label class="radio-wrapper">
|
|
1851
|
+
<input type="radio" name="impact" value="all" class="radio-input" checked>
|
|
1852
|
+
<div class="radio-button">
|
|
1853
|
+
<div class="radio-dot"></div>
|
|
1854
|
+
</div>
|
|
1855
|
+
<span class="radio-label">All impacts</span>
|
|
1856
|
+
</label>
|
|
1857
|
+
<label class="radio-wrapper">
|
|
1858
|
+
<input type="radio" name="impact" value="critical" class="radio-input">
|
|
1859
|
+
<div class="radio-button">
|
|
1860
|
+
<div class="radio-dot"></div>
|
|
1861
|
+
</div>
|
|
1862
|
+
<span class="radio-label">Critical</span>
|
|
1863
|
+
</label>
|
|
1864
|
+
<label class="radio-wrapper">
|
|
1865
|
+
<input type="radio" name="impact" value="serious" class="radio-input">
|
|
1866
|
+
<div class="radio-button">
|
|
1867
|
+
<div class="radio-dot"></div>
|
|
1868
|
+
</div>
|
|
1869
|
+
<span class="radio-label">Serious</span>
|
|
1870
|
+
</label>
|
|
1871
|
+
<label class="radio-wrapper">
|
|
1872
|
+
<input type="radio" name="impact" value="moderate" class="radio-input">
|
|
1873
|
+
<div class="radio-button">
|
|
1874
|
+
<div class="radio-dot"></div>
|
|
1875
|
+
</div>
|
|
1876
|
+
<span class="radio-label">Moderate</span>
|
|
1877
|
+
</label>
|
|
1878
|
+
<label class="radio-wrapper">
|
|
1879
|
+
<input type="radio" name="impact" value="minor" class="radio-input">
|
|
1880
|
+
<div class="radio-button">
|
|
1881
|
+
<div class="radio-dot"></div>
|
|
1882
|
+
</div>
|
|
1883
|
+
<span class="radio-label">Minor</span>
|
|
1884
|
+
</label>
|
|
1885
|
+
</div>
|
|
1886
|
+
</div>
|
|
1887
|
+
|
|
1888
|
+
<div class="separator separator-after-filter"></div>
|
|
1889
|
+
|
|
1890
|
+
<div id="screenList" class="screen-list active">
|
|
1891
|
+
<div class="no-issues no-scans">
|
|
1892
|
+
<div class="no-issues-heading">No scan results in this report</div>
|
|
1893
|
+
<div class="no-issues-text">Import or add scan results to view your accessibility report.</div>
|
|
1894
|
+
</div>
|
|
1895
|
+
</div>
|
|
1896
|
+
</div>
|
|
1897
|
+
</div>
|
|
1898
|
+
</div>
|
|
1899
|
+
</main>
|
|
1900
|
+
|
|
1901
|
+
<!--
|
|
1902
|
+
JSON injection for separate services:
|
|
1903
|
+
Replace this placeholder variable with the report JSON object.
|
|
1904
|
+
Example: window.axeDevToolsReport = {"name":"Report","screens":[...]};
|
|
1905
|
+
|
|
1906
|
+
-->
|
|
1907
|
+
<script>window.axeDevToolsReport = /*__AXE_DEVTOOLS_REPORT_JSON__*/ null;</script>
|
|
1908
|
+
|
|
1909
|
+
<!-- Main application entry point -->
|
|
1910
|
+
</body>
|
|
1911
|
+
</html>
|
|
1912
|
+
|