Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site editor: Fix e2e tests navigation panel #26454

Merged
merged 2 commits into from
Oct 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe( 'Multi-entity editor states', () => {
expect( await isEntityDirty( 'front-page' ) ).toBe( false );

// Switch back and make sure it is still clean.
await clickTemplateItem( 'Templates', 'Front page' );
await clickTemplateItem( 'Templates', templateName );
await page.waitForSelector( '.wp-block' );
expect( await isEntityDirty( 'header' ) ).toBe( false );
expect( await isEntityDirty( 'front-page' ) ).toBe( false );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe( 'Multi-entity save flow', () => {
await navigationPanel.open();
await navigationPanel.backToRoot();
await navigationPanel.navigate( 'Templates' );
await navigationPanel.clickItemByText( 'Front page' );
await navigationPanel.clickItemByText( 'Front Page' );
await navigationPanel.close();

// Click the first block so that the template part inserts in the right place.
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/experiments/template-part.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe( 'Template Part', () => {
await navigationPanel.open();
await navigationPanel.backToRoot();
await navigationPanel.navigate( 'Templates' );
await navigationPanel.clickItemByText( 'Front page' );
await navigationPanel.clickItemByText( 'Front Page' );

// Verify that the header template part is updated.
const [ headerTemplatePart ] = await page.$x(
Expand Down