Skip to content

Commit

Permalink
fix change detection test
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Dec 9, 2023
1 parent 10507a2 commit 5d20c8b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,11 @@ describe( 'Change detection', () => {
it( 'consecutive edits to the same attribute should mark the post as dirty after a save', async () => {
// Open the sidebar block settings.
await openDocumentSettingsSidebar();
await page.click( '.edit-post-sidebar__panel-tab[data-label="Block"]' );

const blockInspectorTab = await page.waitForXPath(
'//button[@role="tab"][contains(text(), "Block")]'
);
await blockInspectorTab.click();

// Insert a paragraph.
await clickBlockAppender();
Expand Down

0 comments on commit 5d20c8b

Please sign in to comment.