Add wildcard for element, given the element type is out of our control (https://github.com/woocommerce/woocommerce-admin/pull/7406)

This commit is contained in:
louwie17 2021-07-23 09:31:37 -03:00 committed by GitHub
parent cd49514b3e
commit 19714e8dc1
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export class WcHomescreen extends BasePage {
await page.waitForSelector(
'.woocommerce-task-card .woocommerce-task-list__item-title'
);
await waitForElementByText( 'span', 'Get ready to start selling' );
await waitForElementByText( '*', '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 )