From ce386cc9984dfb7df3fa9726a87675fa4600baac Mon Sep 17 00:00:00 2001 From: Alex Prudhomme <78121423+alexprudhomme@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:37:45 -0400 Subject: [PATCH] fix commerce query summary https://coveord.atlassian.net/browse/KIT-3369 --- .../commerce/atomic-commerce-query-summary/e2e/page-object.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/page-object.ts b/packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/page-object.ts index 17956c5a1d9..0ecf00be447 100644 --- a/packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/page-object.ts +++ b/packages/atomic/src/components/commerce/atomic-commerce-query-summary/e2e/page-object.ts @@ -15,7 +15,9 @@ export class QuerySummaryPageObject extends BasePageObject<'atomic-commerce-quer } text(summaryRegex: RegExp) { - return this.page.getByText(summaryRegex); + return this.page + .locator(':not([role="status"])') + .filter({hasText: summaryRegex}); } get container() {