E2E: fix test that opens page template #89057
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In WordPress/gutenberg#59792, the FSE page template selection was changed to use the DataViews component.
This PR updates the test that opens the page template editor.
Proposed Changes
I created a new
FullSiteEditorDataViewsComponent
, as DataViews will eventually be the new page/post listing component as well.Note that I didn't get build out a ton of functions/specific selectors here, as the DataViews component has been evolving quite quickly, and we don't want to be continually adapting this test. Specifically, I didn't bother targeting the "Edit" button (which is selectively visible) or the actions dropdown (which also has changed several times). Instead I just made the test click the primary field text, which opens the template editor.
Old layout:
New layout:
Testing Instructions
Run the following from the
fix/e2e/new_fse_template_page
branch:Pre-merge Checklist