@wordpress/e2e-test-utils-playwright
Version:
End-To-End (E2E) test utils for WordPress.
17 lines • 547 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.clickBlockOptionsMenuItem = clickBlockOptionsMenuItem;
/**
* Clicks a block toolbar button.
*
* @param this
* @param label The text string of the button label.
*/
async function clickBlockOptionsMenuItem(label) {
await this.clickBlockToolbarButton('Options');
await this.page
.getByRole('menu', { name: 'Options' })
.getByRole('menuitem', { name: label })
.click();
}
//# sourceMappingURL=click-block-options-menu-item.js.map