Skip to content

Commit 44ace23

Browse files
Addison-Stavlonoisysocks
authored andcommitted
Fix e2e failures on 'Front Page' template. (#28638)
Attempting to fix e2e failures on a "Front Page" template selector. It looks like tt1-blocks no longer supplies a front-page template, and using Index should work as the tests were not reliant on the specific template.
1 parent f7abb22 commit 44ace23

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/e2e-tests/specs/experiments/multi-entity-editing.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ describe( 'Multi-entity editor states', () => {
144144
// Wait for blocks to load.
145145
await canvas().waitForSelector( '.wp-block' );
146146
expect( await isEntityDirty( 'header' ) ).toBe( false );
147-
expect( await isEntityDirty( 'front-page' ) ).toBe( false );
147+
expect( await isEntityDirty( 'Index' ) ).toBe( false );
148148

149149
// Switch back and make sure it is still clean.
150-
await clickTemplateItem( 'Templates', 'Front Page' );
150+
await clickTemplateItem( 'Templates', 'Index' );
151151
await page.waitForFunction( () =>
152152
Array.from( window.frames ).find(
153153
( { name } ) => name === 'editor-canvas'
154154
)
155155
);
156156
await canvas().waitForSelector( '.wp-block' );
157157
expect( await isEntityDirty( 'header' ) ).toBe( false );
158-
expect( await isEntityDirty( 'front-page' ) ).toBe( false );
158+
expect( await isEntityDirty( 'Index' ) ).toBe( false );
159159

160160
removeErrorMocks();
161161
} );

packages/e2e-tests/specs/experiments/multi-entity-saving.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ describe( 'Multi-entity save flow', () => {
186186
// Navigate to site editor.
187187
await siteEditor.visit();
188188

189-
// Ensure we are on 'front-page' demo template.
189+
// Ensure we are on 'index' template.
190190
await navigationPanel.open();
191191
await navigationPanel.backToRoot();
192192
await navigationPanel.navigate( 'Templates' );
193-
await navigationPanel.clickItemByText( 'Front Page' );
193+
await navigationPanel.clickItemByText( 'Index' );
194194
await navigationPanel.close();
195195

196196
// Click the first block so that the template part inserts in the right place.

packages/e2e-tests/specs/experiments/template-part.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ describe( 'Template Part', () => {
5353
'.edit-site-save-button__button:not(.is-busy)'
5454
);
5555

56-
// Switch back to the front page template.
56+
// Switch back to the Index template.
5757
await navigationPanel.open();
5858
await navigationPanel.backToRoot();
5959
await navigationPanel.navigate( 'Templates' );
60-
await navigationPanel.clickItemByText( 'Front Page' );
60+
await navigationPanel.clickItemByText( 'Index' );
6161
await navigationPanel.close();
6262
}
6363

0 commit comments

Comments
 (0)