Skip to content

Commit

Permalink
Adjust more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 3, 2025
1 parent 6c57b66 commit 013af9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions test/e2e/specs/editor/blocks/cover.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test.describe( 'Cover', () => {
} );

// Locate the Black color swatch.
const blackColorSwatch = coverBlock.getByRole( 'option', {
const blackColorSwatch = coverBlock.getByRole( 'button', {
name: 'Black',
} );
await expect( blackColorSwatch ).toBeVisible();
Expand Down Expand Up @@ -105,7 +105,7 @@ test.describe( 'Cover', () => {
// Choose a color swatch to transform the placeholder block into
// a functioning block.
await coverBlock
.getByRole( 'option', {
.getByRole( 'button', {
name: 'Black',
} )
.click();
Expand All @@ -128,7 +128,7 @@ test.describe( 'Cover', () => {
name: 'Block: Cover',
} );
await coverBlock
.getByRole( 'option', {
.getByRole( 'button', {
name: 'Black',
} )
.click();
Expand Down Expand Up @@ -240,7 +240,7 @@ test.describe( 'Cover', () => {
// Choose a color swatch to transform the placeholder block into
// a functioning block.
await coverBlock
.getByRole( 'option', {
.getByRole( 'button', {
name: 'Black',
} )
.click();
Expand All @@ -266,7 +266,7 @@ test.describe( 'Cover', () => {
// Choose a color swatch to transform the placeholder block into
// a functioning block.
await secondCoverBlock
.getByRole( 'option', {
.getByRole( 'button', {
name: 'Black',
} )
.click();
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/specs/editor/various/list-view.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ test.describe( 'List View', () => {
// make the inner blocks appear.
await editor.canvas
.getByRole( 'document', { name: 'Block: Cover' } )
.getByRole( 'listbox', {
name: 'Custom color picker.',
.getByRole( 'group', {
name: 'Background color',
} )
.getByRole( 'option' )
.getByRole( 'button' )
.first()
.click();

Expand Down

0 comments on commit 013af9c

Please sign in to comment.