New inserter search input-field classname breaks e2e/performance tests #22045
Labels
[Feature] Inserter
The main way to insert blocks using the + button in the editing interface
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Describe the bug
The new classname of the search input-field of the inserter breaks the e2e/performance tests because the classname wasn't changed in the test utility functions yet.
Old class name:
block-editor-inserter__search-input
New class name:
block-editor-inserter__search
To reproduce
Steps to reproduce the behavior:
test-performance
(after having prepared everything, also see test-performance build script: Add build:packages/wp-env start scripts as dependency #22038)-block-editor-inserter__search-input
.await page.focus( '.block-editor-inserter__search-input' );
inpackages/e2e-test-utils/src/search-for-block.js:14
you will notice that the inserter search input field got the classnameblock-editor-inserter__search
, but the e2e test utility expects the old classnameblock-editor-inserter__search-input
, hence focusing it times out in puppeteer and the test fails.Expected behavior
e2e/performance tests can finish without errors.
The text was updated successfully, but these errors were encountered: