From 3231978b318ab3e5bc28da97c5c5fbd09c03be34 Mon Sep 17 00:00:00 2001 From: minhtuevo Date: Tue, 15 Oct 2024 13:18:24 -0700 Subject: [PATCH] Updated tests --- app/packages/core/src/components/Actions/Options.tsx | 4 ++-- e2e-pw/src/oss/poms/action-row/display-options.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/packages/core/src/components/Actions/Options.tsx b/app/packages/core/src/components/Actions/Options.tsx index b9369df4d5..023c6999ca 100644 --- a/app/packages/core/src/components/Actions/Options.tsx +++ b/app/packages/core/src/components/Actions/Options.tsx @@ -227,7 +227,7 @@ const QueryPerformance = () => { if (enableQpMode) return ( <> { options={["disable", "enable"].map((value) => ({ text: value, title: value, - dataCy: `qd-mode-${value}`, + dataCy: `qp-mode-${value}`, onClick: () => setThreshold(value === "disable" ? null : config ?? count), }))} diff --git a/e2e-pw/src/oss/poms/action-row/display-options.ts b/e2e-pw/src/oss/poms/action-row/display-options.ts index 3f229e2df7..57cef8d9d9 100644 --- a/e2e-pw/src/oss/poms/action-row/display-options.ts +++ b/e2e-pw/src/oss/poms/action-row/display-options.ts @@ -13,7 +13,7 @@ export class DisplayOptionsPom { } async setLightningMode(mode: LightningMode) { - const selector = this.page.getByTestId(`lightning-mode-${mode}`); + const selector = this.page.getByTestId(`qp-mode-${mode}`); return selector.click(); }