Accessibility
DrevOps\BehatSteps\Steps\Web\AccessibilityTrait - Source, Steps
Assess accessibility of rendered pages.
public function accessibilityAssertResultPasses(array $result, string $rules): void
Assert that an assessment result passes the effective failure threshold
public function accessibilityAssess(string $rules): array
Run the engine, normalize the result, record it for the scenario
public function accessibilityFetchJs(string $url, int $timeout): string|false
Read the engine source once from the given location
public function accessibilityFormatUrl(string $url): string
Format a page URL for display in reports and gate messages
public function accessibilityGetAutoTag(): string
Return the base tag name that enables automatic mode (no `@` prefix)
public static function accessibilityGetBlankUrls(): array
Return URL values that represent a blank tab rather than a real page
public function accessibilityGetCdnUrl(): string
Return the URL used by the default accessibilityGetJs() implementation
public function accessibilityGetDefaultRules(): string
Return the default rule identifier passed to the engine
public function accessibilityGetFailOnIncomplete(): bool
Return TRUE if "incomplete" findings should fail the gate by default
public function accessibilityGetFailureThreshold(): string
Return the default failure threshold
public function accessibilityGetFetchAttempts(): int
Return how many times the engine fetch is attempted before failing
public function accessibilityGetFetchTimeout(): int
Return the per-attempt timeout, in seconds, for the engine fetch
public function accessibilityGetImpacts(): array
Return the canonical impact levels in descending severity order
public function accessibilityGetJs(): string
Return the JavaScript source to inject into the page
public function accessibilityGetPrintCli(): bool
Return TRUE to print a 1-line per-page summary to the console
public function accessibilityGetReportDir(): string
Return the absolute directory used to write per-scenario reports
public function accessibilityNormalizeResults(array $raw): array
Normalize raw engine output into the canonical shape used by the trait
public static function accessibilityRenderAggregate(array $data): string
Render the entire aggregate report from prepared data
public function accessibilityRenderHtmlPage(string $sections): string
Wrap the per-URL sections in a standalone HTML page
public function accessibilityRenderHtmlSections(): string
Render the per-URL section markup (1 `
public function accessibilityRunEngine(string $rules): array
Execute the engine against the current page and return raw results