# Test a cookie banner: accept, decline, and the choice sticking

> Regulators expect rejecting cookies to be as easy as accepting them, and the choice to hold. A plain-language test clicks both, reloads, and checks the banner behaves.

By Jason Nguyen, Founder, Testsy. Published 2026-11-21. https://testsy.dev/blog/test-a-cookie-banner-accept-and-decline/

## A banner with legal weight

Cookie banners are often installed once and forgotten. European regulators have not forgotten them. France's CNIL fined Google and Facebook because rejecting cookies took several steps while accepting took one; the decisions stressed that [it must be as easy to reject non-essential cookies as to accept them](https://www.taylorwessing.com/en/insights-and-events/insights/2022/01/google-and-facebook-fined-by-cnil-over-cookie-consent). A 2026 summary of country rules says that in the EU and the UK, a banner with an "Accept all" button [should have a "Reject all" button or an equally easy way to refuse next to it](https://www.uniconsent.com/blog/reject-all-button-cookie-banner).

What a test can check is the behaviour: both buttons exist, both work, and the choice is remembered.

## The test

```text
Open https://client.example/.
Check a cookie banner is shown with both an "Accept all" and a
"Reject all" button on its first screen.
Press "Reject all". Check the banner closes.
Reload the page and check the banner does not come back.
Open the "Cookie settings" link in the footer and check the
analytics cookies are switched off.
```

And a second test for the other path:

```text
Open https://client.example/ and press "Accept all".
Reload and check the banner does not come back.
Open "Cookie settings" and check the analytics cookies are switched on.
```

Each run starts in a fresh browser with no cookies, so the banner appears on every run.

## Turn tracker blocking off for this test

By default Testsy blocks ads and trackers, which makes runs faster and steadier. A consent tool can be caught by that blocking. For a cookie banner test, set **Ads and trackers** to **allow** in the test's options (`trackers: "allow"`), so the page loads the way a visitor's browser loads it. See [test options](https://testsy.dev/docs/test-options/).

## Browse from the right country

Many consent tools show a different banner, or none, by country. The workspace's **Browse from** setting decides where the tester appears to be: automatic (from the site's address, such as `.fr` or `/de/`) or a country you choose. See [network](https://testsy.dev/docs/network/#browse-from-a-country).

## What this test is not

It checks the banner's behaviour on the screen. It does not audit which cookies are set before consent, or whether the site is compliant; that is a job for a consent audit tool and the client's legal advice.

This post is part of [Find the bug before your client does](https://testsy.dev/blog/find-the-bug-before-your-client-does/).
