Skip to content

Commit

Permalink
Adjust more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Jan 13, 2025
1 parent ecdd4cd commit faf4d90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/blocks/buttons.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,11 @@ test.describe( 'Buttons', () => {
await page.click(
'role=region[name="Editor settings"i] >> role=button[name="Text"i]'
);
await page.click( 'role=option[name="Color: Cyan bluish gray"i]' );
await page.click( 'role=option[name="Cyan bluish gray"i]' );
await page.click(
'role=region[name="Editor settings"i] >> role=button[name="Background"i]'
);
await page.click( 'role=option[name="Color: Vivid red"i]' );
await page.click( 'role=option[name="Vivid red"i]' );

// Check the content.
const content = await editor.getEditedPostContent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test.describe( 'Keep styles on block transforms', () => {
.click();
await page.keyboard.type( '## Heading' );
await page.click( 'role=button[name="Text"i]' );
await page.click( 'role=option[name="Color: Luminous vivid orange"i]' );
await page.click( 'role=option[name="Luminous vivid orange"i]' );

await page.click( 'role=button[name="Heading"i]' );
await page.click( 'role=menuitem[name="Paragraph"i]' );
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/specs/site-editor/style-variations.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ test.describe( 'Global styles variations', () => {
await page.click( 'role=button[name="Edit palette"i]' );

await expect(
page.locator( 'role=option[name="Color: Foreground"i]' )
page.locator( 'role=option[name="Foreground"i]' )
).toHaveCSS( 'background-color', 'rgb(74, 7, 74)' );

await expect(
page.locator( 'role=option[name="Color: Background"i]' )
page.locator( 'role=option[name="Background"i]' )
).toHaveCSS( 'background-color', 'rgb(202, 105, 211)' );

await expect(
page.locator( 'role=option[name="Color: Awesome pink"i]' )
page.locator( 'role=option[name="Awesome pink"i]' )
).toHaveCSS( 'background-color', 'rgba(204, 0, 255, 0.77)' );
} );

Expand Down

0 comments on commit faf4d90

Please sign in to comment.