Complete the code to import the accessibility testing library in Cypress.
import '[1]';
The cypress-axe package is the official Cypress plugin for accessibility testing.
Complete the code to inject axe into the page before running accessibility checks.
cy.visit('/'); cy.[1]();
The injectAxe() command injects the axe-core library into the page so accessibility checks can run.
Fix the error in the code to run accessibility checks on the entire page.
cy.[1]();The correct command to run accessibility checks is checkA11y().
Fill both blanks to run accessibility checks only on the main content area.
cy.[1]('[2]');
Use checkA11y('main') to run accessibility checks only on the <main> element.
Fill all three blanks to run accessibility checks with options to skip color contrast rules.
cy.[1]([2], { rules: { '[3]': { enabled: false } } });
This runs checkA11y on the whole body but disables the 'color-contrast' rule.