PluginProbe
Extendify / 3.1.0
Extendify v3.1.0
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / tests / playwright / Agent / selector-ux / setup.php

setup.php in Extendify 3.1.0, at tests/playwright/Agent/selector-ux/setup.php

29 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require '/wordpress/wp-load.php';
3
4 // Headings (top-level core/heading blocks) are tagged by TagBlocks
5 // with data-extendify-agent-block-id at render time, so they're the
6 // cheapest reliable target for selector + selection-lock assertions.
7 // Three headings give the spec separate targets for (a) the picked
8 // block, (b) the outside-click no-op, and (c) the QE-canvas vs.
9 // selector coordination check.
10 $content = "<!-- wp:heading -->\n"
11 . "<h2 class=\"wp-block-heading\">Selector target heading.</h2>\n"
12 . "<!-- /wp:heading -->\n\n"
13 . "<!-- wp:heading -->\n"
14 . "<h2 class=\"wp-block-heading\">Outside click target heading.</h2>\n"
15 . "<!-- /wp:heading -->\n\n"
16 . "<!-- wp:heading -->\n"
17 . "<h2 class=\"wp-block-heading\">QE canvas heading.</h2>\n"
18 . "<!-- /wp:heading -->\n";
19
20 $pageId = wp_insert_post([
21 'post_type' => 'page',
22 'post_status' => 'publish',
23 'post_title' => 'Agent Selector UX Home',
24 'post_content' => $content,
25 ]);
26
27 update_option('show_on_front', 'page');
28 update_option('page_on_front', $pageId);
29