Skip to content

Commit

Permalink
update another e2e selector
Browse files Browse the repository at this point in the history
  • Loading branch information
gwwar committed Feb 17, 2022
1 parent a478cf8 commit 5eb2efc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function getCustomFontSizeValue() {
async function getColorValue( colorType ) {
return page.evaluate( ( _colorType ) => {
return document.evaluate(
`substring-before(substring-after(//div[@aria-label="Settings"]//button[.//*[text()="${ _colorType }"]]//*[contains(@class,"component-color-indicator")]/@style, "background: "), ";")`,
`substring-before(substring-after(//div[contains(@class, "edit-site-global-styles-sidebar__panel")]//button[.//*[text()="${ _colorType }"]]//*[contains(@class,"component-color-indicator")]/@style, "background: "), ";")`,
document,
null,
XPathResult.ANY_TYPE,
Expand Down

0 comments on commit 5eb2efc

Please sign in to comment.