Skip to content

Commit

Permalink
chore: add e2e for editable tabs header
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Sep 15, 2023
1 parent 5c430ab commit d287a24
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/blocks/test/e2e/blocks/tabs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@ test.describe( 'Tabs Block', () => {

expect( await page.getByRole( 'paragraph' ).filter({ hasText: 'This is just a placeholder to help you visualize how the content is displayed in' }).isVisible() ).toBeTruthy();
});

test( 'change tab header content', async({ editor, page }) => {
await editor.insertBlock({
name: 'themeisle-blocks/tabs'
});

await page.getByRole( 'textbox', { name: 'Add title…' }).first().fill( 'Tab 1000' );

await expect( page.locator( 'div' ).filter({ hasText: /^Tab 1000$/ }).first() ).toBeVisible();
});
});

0 comments on commit d287a24

Please sign in to comment.