From c083fd7ce917a9142db805d4ee9de8fd0a20e1ad Mon Sep 17 00:00:00 2001 From: Josh Ng Date: Mon, 25 Mar 2024 12:27:00 +0000 Subject: [PATCH] chore(pie-cookie-banner): DSW-1754 updated PO method --- .../test/helpers/page-object/pie-cookie-banner.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**