UNPKG

@wordpress/e2e-test-utils-playwright

Version:
19 lines 731 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.showBlockToolbar = showBlockToolbar; /** * The block toolbar is not always visible while typing. * Call this function to reveal it. * * @param this */ async function showBlockToolbar() { // Move the mouse to disable the isTyping mode. We need at least three // mousemove events for it to work across windows (iframe). With three // moves, it's a guarantee that at least two will be in the same window. // Two events are required for the flag to be unset. await this.page.mouse.move(50, 50); await this.page.mouse.move(75, 75); await this.page.mouse.move(100, 100); } //# sourceMappingURL=show-block-toolbar.js.map