# How do you test a Shopify cart with only a keyboard? | CartComply

Source: https://cartcomply.com/blog/test-shopify-cart-keyboard-accessibility.html

[Home](../index.md) / [Blog](index.md) / How do you test a Shopify cart with only a keyboard?


Published 2026-09-14

Start at a product page and complete the full path using Tab, Shift plus Tab, Enter, Space, and Escape only. Confirm every control receives visible focus, variants can be selected, the cart opens and closes without trapping focus, quantity controls have clear names, errors are announced, and focus returns to the control that opened each dialog.

## Watch the cart drawer

Drawers often move focus visually without moving keyboard focus. When the drawer opens, focus should enter it in a sensible place. When it closes, focus should return to the button that opened it, not jump to the top of the page.

## Test failure states

Submit an invalid discount, remove an item, and change quantity limits. Error text must be announced and linked to the affected control. Color alone or a silent toast leaves keyboard and screen reader users without an explanation.

## Frequently asked questions

### How do you test a cart using only a keyboard?

Unplug the mouse and work through the whole journey with Tab, Shift plus Tab, Enter, and the arrow keys. Add items, change quantities, apply a code, and remove an item. Every action should be reachable, visible, and possible in a sensible order.

### What are the most common keyboard failures in carts?

Quantity controls that cannot be reached, remove buttons that only appear on hover, focus that disappears when the cart drawer updates, and checkout buttons that sit in the tab order before the cart contents. Each one can block a keyboard user completely.

### What does visible focus mean in practice?

The element you are about to activate should be clearly outlined or highlighted at all times. If you cannot tell where you are on the page while tabbing, the focus indicator has failed, even if every control technically works.

## Find out where your store stands

[Get a free accessibility audit](mailto:hello@cartcomply.com?subject=Free%20accessibility%20audit%20-%20cartcomply.com)
