From 1eccaed4d2d2c5043389c8599822281d1a1fa635 Mon Sep 17 00:00:00 2001 From: Maxim Tsoy Date: Tue, 13 Aug 2024 10:44:10 +0200 Subject: [PATCH] Add rule for american airlines --- rules/autoconsent/aa.json | 32 ++++++++++++++++++++++++++++++++ tests/aa.spec.ts | 5 +++++ 2 files changed, 37 insertions(+) create mode 100644 rules/autoconsent/aa.json create mode 100644 tests/aa.spec.ts diff --git a/rules/autoconsent/aa.json b/rules/autoconsent/aa.json new file mode 100644 index 00000000..ee2e978c --- /dev/null +++ b/rules/autoconsent/aa.json @@ -0,0 +1,32 @@ +{ + "name": "aa", + "vendorUrl": "https://aa.com", + "prehideSelectors": [], + "cosmetic": true, + "detectCmp": [ + { + "exists": "#aa_optoutmulti-Modal,#cookieBannerMessage" + } + ], + "detectPopup": [ + { + "visible": "#aa_optoutmulti-Modal,#cookieBannerMessage" + } + ], + "optIn": [ + { + "hide": "#aa_optoutmulti-Modal,#cookieBannerMessage" + }, + { + "waitForThenClick": "#aa_optoutmulti_checkBox" + }, + { + "waitForThenClick": "#aa_optoutmulti-Modal button.optoutmulti_button" + } + ], + "optOut": [ + { + "hide": "#aa_optoutmulti-Modal,#cookieBannerMessage" + } + ] +} \ No newline at end of file diff --git a/tests/aa.spec.ts b/tests/aa.spec.ts new file mode 100644 index 00000000..12c80fdf --- /dev/null +++ b/tests/aa.spec.ts @@ -0,0 +1,5 @@ +import generateCMPTests from "../playwright/runner"; + +generateCMPTests('aa', [ + 'https://www.aa.com/homePage.do' +]);