Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Sep 17, 2021
1 parent fb6c067 commit b88c6fe
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ async function tabToColumnsControl() {
isColumnsControl = await page.evaluate( () => {
const activeElement = document.activeElement;
return (
activeElement.tagName === 'INPUT' &&
activeElement.attributes.getNamedItem( 'aria-label' ).value ===
activeElement.tagName === 'BUTTON' &&
activeElement.parentNode.getAttribute( 'aria-label' ) ===
'Quantity'
);
} );
Expand Down Expand Up @@ -59,12 +59,9 @@ describe( 'Navigating the block hierarchy', () => {
// Tweak the columns count.
await openDocumentSettingsSidebar();
await page.focus(
'.block-editor-block-inspector [aria-label="Quantity"][type="number"]'
'.block-editor-block-inspector [aria-label="Quantity"] [aria-checked="true"]'
);
await page.keyboard.down( 'Shift' );
await page.keyboard.press( 'ArrowLeft' );
await page.keyboard.up( 'Shift' );
await page.keyboard.type( '3' );
await page.keyboard.press( 'ArrowRight' );

// Wait for the new column block to appear in the list view
// 5 = Columns, Column, Paragraph, Column, *Column*
Expand Down

0 comments on commit b88c6fe

Please sign in to comment.