From 8a040b99d91bec679d0c865ebc03fe00fa65a48d Mon Sep 17 00:00:00 2001 From: Joshua T Flowers Date: Thu, 22 Jul 2021 17:48:06 -0400 Subject: [PATCH] Add scope to BACS slotfill (https://github.com/woocommerce/woocommerce-admin/pull/7405) * Update e2e matcher for tasklist header * Add scope to BACS slotfill Co-authored-by: Lourens Schep --- .../task-list/tasks/PaymentGatewaySuggestions/plugins/Bacs.js | 1 + .../packages/admin-e2e-tests/src/pages/WcHomescreen.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/plugins/Bacs.js b/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/plugins/Bacs.js index 9199fb5be7e..04ed1f62042 100644 --- a/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/plugins/Bacs.js +++ b/plugins/woocommerce-admin/client/task-list/tasks/PaymentGatewaySuggestions/plugins/Bacs.js @@ -175,4 +175,5 @@ const BacsPaymentGatewaySetup = () => { registerPlugin( 'wc-admin-payment-gateway-setup-bacs', { render: BacsPaymentGatewaySetup, + scope: 'woocommerce-admin', } ); diff --git a/plugins/woocommerce-admin/packages/admin-e2e-tests/src/pages/WcHomescreen.ts b/plugins/woocommerce-admin/packages/admin-e2e-tests/src/pages/WcHomescreen.ts index 4b11ee9537d..422580b00f5 100644 --- a/plugins/woocommerce-admin/packages/admin-e2e-tests/src/pages/WcHomescreen.ts +++ b/plugins/woocommerce-admin/packages/admin-e2e-tests/src/pages/WcHomescreen.ts @@ -30,7 +30,7 @@ export class WcHomescreen extends BasePage { await page.waitForSelector( '.woocommerce-task-card .woocommerce-task-list__item-title' ); - await waitForElementByText( 'p', 'Get ready to start selling' ); + await waitForElementByText( 'span', 'Get ready to start selling' ); const list = await this.page.$$eval( '.woocommerce-task-card .woocommerce-task-list__item-title', ( items ) => items.map( ( item ) => item.textContent )