Toegankelijkheidsstandaard

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard

Globale Configuratie Toegankelijkheidsstandaard

Not for use with personal data

De instelling voor de toegankelijkheidsstandaard bepaalt welke set van toegankelijkheidsregels axe Watcher gebruikt tijdens het testen. Verschillende standaarden komen overeen met verschillende versies en conformiteitsniveaus van WCAG (Web Content Accessibility Guidelines) en andere toegankelijkheidsspecificaties. Deze instelling regelt de basiscriteria waartegen je webpagina's worden beoordeeld.

Standaardwaarde

Wanneer je geen uitzondering voor de toegankelijkheidsstandaard opgeeft, gebruikt axe Watcher de standaard die in de globale configuratie van jouw organisatie is ingesteld. Dit wordt doorgaans door je administrator ingesteld om consistent testen over alle teams te waarborgen.

Overschrijven

Je kunt de toegankelijkheidsstandaard overschrijven wanneer de globale configuratie van jouw organisatie dit toestaat. Je administrator bepaalt welke standaarden beschikbaar zijn voor overschrijving in het Global-paneel van axe Configuration. Als je probeert een standaard te gebruiken die niet is toegestaan, ontvang je een 422-fout van de server.

Je kunt de accessibilityStandard overschrijving niet gebruiken samen met runOptions.runOnly—deze opties sluiten elkaar uit en veroorzaken een fout indien gecombineerd.

Beschikbare Opties

JavaScript/TypeScript (string):

  • „All“ - Testen tegen alle beschikbare standaarden
  • „WCAG 2.2 AAA“
  • „WCAG 2.2 AA“
  • „WCAG 2.2 A“
  • „WCAG 2.1 AAA“
  • „WCAG 2.1 AA“
  • „WCAG 2.1 A“
  • „WCAG 2.0 AAA“
  • „WCAG 2.0 AA“
  • „WCAG 2.0 A“
  • „Trusted Tester v5“
  • „EN 301 549“

Java (ConfigurationOverrides.AccessibilityStandard enum waarden):

  • WCAG2A - WCAG 2.0 Niveau A
  • WCAG2AA - WCAG 2.0 Niveau AA
  • WCAG2AAA - WCAG 2.0 Niveau AAA
  • WCAG21A - WCAG 2.1 Niveau A
  • WCAG21AA - WCAG 2.1 Niveau AA
  • WCAG21AAA - WCAG 2.1 Niveau AAA
  • WCAG22A - WCAG 2.2 Niveau A
  • WCAG22AA - WCAG 2.2 Niveau AA
  • WCAG22AAA - WCAG 2.2 Niveau AAA
  • TTV5 - Trusted Tester v5
  • EN301549 - EN 301 549
  • ALL - Alle standaarden

JavaScript/TypeScript Voorbeeld

const config = {
  axe: {
    apiKey: process.env.AXE_API_KEY,
    projectId: process.env.AXE_PROJECT_ID,
    configurationOverrides: {
      accessibilityStandard: 'WCAG 2.2 AA'
    }
  }
};

Java Voorbeeld

ConfigurationOverrides overrides = new ConfigurationOverrides()
    .setAccessibilityStandard(ConfigurationOverrides.AccessibilityStandard.WCAG22AA);

AxeWatcherOptions options = new AxeWatcherOptions()
    .setApiKey(System.getenv("AXE_API_KEY"))
    .setProjectId(System.getenv("AXE_PROJECT_ID"))
    .setConfigurationOverrides(overrides);