Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Sep 24, 2024
1 parent 4f064ed commit 05b71f9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/e2e/specs/editor/various/allowed-patterns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ test.describe( 'Allowed Patterns', () => {
);
} );

test( 'should show all patterns when all blocks are allowed', async ( {
admin,
page,
} ) => {
test( 'should show all patterns by default', async ( { admin, page } ) => {
await admin.createNewPost();
await page
.getByRole( 'toolbar', { name: 'Document tools' } )
Expand Down Expand Up @@ -57,7 +54,7 @@ test.describe( 'Allowed Patterns', () => {
);
} );

test( 'should show only allowed patterns', async ( {
test( 'should show all patterns even if not allowed', async ( {
admin,
page,
} ) => {
Expand All @@ -80,7 +77,11 @@ test.describe( 'Allowed Patterns', () => {
page
.getByRole( 'listbox', { name: 'Block patterns' } )
.getByRole( 'option' )
).toHaveText( [ 'Test: Single heading' ] );
).toHaveText( [
'Test: Single heading',
'Test: Single paragraph',
'Test: Paragraph inside group',
] );
} );
} );
} );

0 comments on commit 05b71f9

Please sign in to comment.