Skip to content

Commit

Permalink
update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed May 15, 2023
1 parent 3d139cb commit 253ccea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,16 @@ export default function NewTemplate( {
} else if ( showCustomGenericTemplateModal ) {
modalTitle = __( 'Create custom template' );
}
// TODO: Remove obsolete styles and unify modals's styles.
return (
<>
{ isCreatingTemplate && <TemplateActionsLoadingScreen /> }
<Toggle
{ ...restToggleProps }
onClick={ () => setShowModal( true ) }
icon={ showIcon ? plus : null }
label={ postType.labels.add_new }
label={ postType.labels.add_new_item }
>
{ showIcon ? null : postType.labels.add_new }
{ showIcon ? null : postType.labels.add_new_item }
</Toggle>
{ showModal && (
<Modal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test.describe( 'Site editor url navigation', () => {
] );
await page.click( 'role=button[name="Add New Template"i]' );
await page
.getByRole( 'menuitem', {
.getByRole( 'button', {
name: 'Single item: Post',
} )
.click();
Expand Down

0 comments on commit 253ccea

Please sign in to comment.