From 60d6c366c3a708032765ae7669d3360d6a2b1b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Sat, 2 May 2026 19:51:16 +0400 Subject: [PATCH] Fix detected cookies test trying to activate an already-active banner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- e2e/console/cookie_banner_versioning_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/e2e/console/cookie_banner_versioning_test.go b/e2e/console/cookie_banner_versioning_test.go index 3e5fbe9cc..c11eb177f 100644 --- a/e2e/console/cookie_banner_versioning_test.go +++ b/e2e/console/cookie_banner_versioning_test.go @@ -530,23 +530,6 @@ func TestCookieBannerVersioning_TranslationChangesNeverBump(t *testing.T) { }) } -func activateBanner(t *testing.T, c *testutil.Client, bannerID string) { - t.Helper() - - const query = ` - mutation ActivateCookieBanner($input: ActivateCookieBannerInput!) { - activateCookieBanner(input: $input) { - cookieBanner { id state } - } - } - ` - - var result struct{} - require.NoError(t, c.Execute(query, map[string]any{ - "input": map[string]any{"cookieBannerId": bannerID}, - }, &result), "activateCookieBanner mutation failed") -} - func reportDetectedCookies(t *testing.T, c *testutil.Client, bannerID string, names ...string) { t.Helper() @@ -579,7 +562,6 @@ func TestCookieBannerVersioning_DetectedCookiesNeverBump(t *testing.T) { bannerID := factory.CreateCookieBanner(owner) published := publishBanner(t, owner, bannerID) - activateBanner(t, owner, bannerID) baseline := published.Version reportDetectedCookies(t, owner, bannerID, "_unknown_cookie", "_another")