Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Nov 22, 2024
1 parent 6f786e5 commit 2f95613
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,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('tab', { name: 'Style' }).click();
await page.getByRole('button', { name: 'Background' }).click();
await page.getByRole('option', { name: 'Color: Custom 1' }).click();
await page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ test.describe('Single Post Check', function () {
});

await page.goto('/template-comments/?test_name=metaOrder');
await page.screenshot({ path: 'metaOrder.png' });
const metaOrder = ['category', 'date', 'comments', 'author'];
await checkElementsOrder(page, '.nv-meta-list', metaOrder);

Expand Down
6 changes: 5 additions & 1 deletion inc/customizer/options/layout_sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ private function sidebar_layout_choices( $control_id ) {

return $options;
}

/**
* Retrieve the advanced controls for the sidebar layout.
*
* @return array The array of advanced controls.
*/
public function get_advanced_controls() {
if ( empty( $this->advanced_controls ) ) {
$this->advanced_controls = [
Expand Down

0 comments on commit 2f95613

Please sign in to comment.