Skip to content

Commit d287a24

Browse files
chore: add e2e for editable tabs header
1 parent 5c430ab commit d287a24

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/blocks/test/e2e/blocks/tabs.spec.js

+10
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ test.describe( 'Tabs Block', () => {
6868

6969
expect( await page.getByRole( 'paragraph' ).filter({ hasText: 'This is just a placeholder to help you visualize how the content is displayed in' }).isVisible() ).toBeTruthy();
7070
});
71+
72+
test( 'change tab header content', async({ editor, page }) => {
73+
await editor.insertBlock({
74+
name: 'themeisle-blocks/tabs'
75+
});
76+
77+
await page.getByRole( 'textbox', { name: 'Add title…' }).first().fill( 'Tab 1000' );
78+
79+
await expect( page.locator( 'div' ).filter({ hasText: /^Tab 1000$/ }).first() ).toBeVisible();
80+
});
7181
});

0 commit comments

Comments
 (0)