diff --git a/modules/admin-home/rest/admin-config.php b/modules/admin-home/rest/admin-config.php index 482a710a..52055518 100644 --- a/modules/admin-home/rest/admin-config.php +++ b/modules/admin-home/rest/admin-config.php @@ -86,7 +86,6 @@ private function get_elementor_editor_url( ?int $page_id, string $active_tab ): 'post' => $page_id, 'action' => 'elementor', 'active-tab' => $active_tab, - 'active-document' => $active_kit_id, ], admin_url( 'post.php' ) ); @@ -285,18 +284,18 @@ public function get_quicklinks( $config, ?int $elementor_page_id = null ): array $config['quickLinks'] = [ 'site_name' => [ 'title' => __( 'Site Name', 'hello-elementor' ), - 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity' ), + 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity', null, [ 'autofocus[section]' => 'title_tagline' ] ), 'icon' => 'TextIcon', ], 'site_logo' => [ 'title' => __( 'Site Logo', 'hello-elementor' ), - 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity' ), + 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity', null, [ 'autofocus[section]' => 'title_tagline' ] ), 'icon' => 'PhotoIcon', ], 'site_favicon' => [ 'title' => __( 'Site Favicon', 'hello-elementor' ), - 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity' ), + 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity', null, [ 'autofocus[section]' => 'title_tagline' ] ), 'icon' => 'AppsIcon', ], ]; diff --git a/tests/playwright/tests/admin/hello-theme-admin-home.test.ts b/tests/playwright/tests/admin/hello-theme-admin-home.test.ts index 97c54ba8..de0bb079 100644 --- a/tests/playwright/tests/admin/hello-theme-admin-home.test.ts +++ b/tests/playwright/tests/admin/hello-theme-admin-home.test.ts @@ -63,11 +63,6 @@ test.describe( 'Hello Theme Admin Home Page', () => { const linkElement = page.locator( `h6:has-text("${ linkTest.linkText }") a` ); await expect( linkElement ).toBeVisible(); - if ( !! process.env.DAILY_MATRIX_WORKFLOW ) { - // Skip this test in Daily Matrix workflow due to artifact deployment timing issues - continue; - } - await Promise.all( [ page.waitForURL( linkTest.expectedUrlPattern ), linkElement.click(),