diff --git a/packages/components/pie-cookie-banner/test/helpers/page-object/pie-cookie-banner.page.ts b/packages/components/pie-cookie-banner/test/helpers/page-object/pie-cookie-banner.page.ts index 15dba3eacf..80758dfd86 100644 --- a/packages/components/pie-cookie-banner/test/helpers/page-object/pie-cookie-banner.page.ts +++ b/packages/components/pie-cookie-banner/test/helpers/page-object/pie-cookie-banner.page.ts @@ -191,7 +191,7 @@ export class PieCookieBannerComponent extends BasePage { */ async isPreferenceToggleDisabled (preferenceIds: PreferenceIds) : Promise { const preferenceToggle = this.page.locator(getPreferenceItemSelector(preferenceIds)); - return preferenceToggle.isChecked(); + return preferenceToggle.isDisabled(); } /**