Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tweak query in test
  • Loading branch information
Paul Von Schrottky committed Jul 8, 2021
commit 344a354d81d9e42d09daced8ce093331767681a8
5 changes: 2 additions & 3 deletions packages/block-library/src/buttons/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe( 'Test case', () => {
<div class="wp-block-button"><a class="wp-block-button__link">Hello</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->`;
const { getByA11yLabel, getByText } = await initializeEditor( {
const { getByA11yLabel } = await initializeEditor( {
initialHtml,
} );

Expand Down Expand Up @@ -77,9 +77,8 @@ describe( 'Test case', () => {
getByA11yLabel( 'Open Settings' )
);
fireEvent.press( settingsButton );

const radiusSlider = await waitFor( () =>
getByText( 'Border Radius' )
getByA11yLabel( /Border Radius/ )
);
// Adjust the Button block border radius slider
fireEvent( radiusSlider, 'valueChange', '31' );
Expand Down