diff --git a/routes/ai-home/stage.tsx b/routes/ai-home/stage.tsx index c300a367..223b8200 100644 --- a/routes/ai-home/stage.tsx +++ b/routes/ai-home/stage.tsx @@ -1025,7 +1025,7 @@ function AISettingsPage() { > { ! PAGE_DATA.hasValidCredentials && ( - + { ! PAGE_DATA.hasCredentials ? __( diff --git a/tests/e2e/specs/admin/settings.spec.js b/tests/e2e/specs/admin/settings.spec.js index 90f4e2dc..16889b10 100644 --- a/tests/e2e/specs/admin/settings.spec.js +++ b/tests/e2e/specs/admin/settings.spec.js @@ -37,7 +37,7 @@ test.describe( 'Plugin settings', () => { await seedCredentials( requestUtils ); } ); - test( 'Can visit the settings page and see error message', async ( { + test( 'Can visit the settings page and see warning message', async ( { admin, page, requestUtils, @@ -58,7 +58,7 @@ test.describe( 'Plugin settings', () => { ) ).toBeVisible(); - // Ensure the no AI Connectors error message is displayed. + // Ensure the no AI Connectors warning message is displayed. await expect( page .locator( '#ai-wp-admin-app' )