Skip to content

Commit

Permalink
chore: fix custom color test
Browse files Browse the repository at this point in the history
  • Loading branch information
preda-bogdan committed Nov 22, 2023
1 parent a0b5900 commit 2e1d2ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test.describe('Custom Global Color Control', () => {
await page.locator('.block-editor-rich-text__editable').first().click();
// use Background color control to open the color picker, available since WP 6.1
await page.getByRole('button', { name: 'Background' }).click();
await page.getByRole('button', { name: 'Color: Custom 1' }).click();
await page.getByRole('option', { name: 'Color: Custom 1' }).click();
await page
.locator('.block-editor-panel-color-gradient-settings__color-name')
.getByText('Text')
Expand Down Expand Up @@ -72,6 +72,6 @@ test.describe('Custom Global Color Control', () => {
await page.goto('/hello-world/?test_name=custom-global-colors');
await expect(
await page.locator('.nv-content-wrap p').first()
).toHaveClass(/has-custom-1-color/);
).toHaveClass(/has-custom-1-background-color/);
});
});

0 comments on commit 2e1d2ce

Please sign in to comment.