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:
parent
cd49514b3e
commit
19714e8dc1
|
@ -30,7 +30,7 @@ export class WcHomescreen extends BasePage {
|
||||||
await page.waitForSelector(
|
await page.waitForSelector(
|
||||||
'.woocommerce-task-card .woocommerce-task-list__item-title'
|
'.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(
|
const list = await this.page.$$eval(
|
||||||
'.woocommerce-task-card .woocommerce-task-list__item-title',
|
'.woocommerce-task-card .woocommerce-task-list__item-title',
|
||||||
( items ) => items.map( ( item ) => item.textContent )
|
( items ) => items.map( ( item ) => item.textContent )
|
||||||
|
|
Loading…
Reference in New Issue