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() {