* Update e2e matcher for tasklist header

* Add scope to BACS slotfill

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
This commit is contained in:
Joshua T Flowers 2021-07-22 17:48:06 -04:00 committed by GitHub
parent 66ab35bbc7
commit 8a040b99d9
2 changed files with 2 additions and 1 deletions

View File

@ -175,4 +175,5 @@ const BacsPaymentGatewaySetup = () => {
registerPlugin( 'wc-admin-payment-gateway-setup-bacs', {
render: BacsPaymentGatewaySetup,
scope: 'woocommerce-admin',
} );

View File

@ -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 )