diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/empty_prompt/empty_prompt.tsx b/x-pack/plugins/security/public/management/api_keys/api_keys_grid/empty_prompt/empty_prompt.tsx index 9b2ccfcb99ef30..17e2ed1406c67e 100644 --- a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/empty_prompt/empty_prompt.tsx +++ b/x-pack/plugins/security/public/management/api_keys/api_keys_grid/empty_prompt/empty_prompt.tsx @@ -44,17 +44,7 @@ export const EmptyPrompt: React.FunctionComponent = ({

- - - ), - }} + defaultMessage="You can create an API key from your account." />

@@ -62,12 +52,12 @@ export const EmptyPrompt: React.FunctionComponent = ({ actions={ navigateToApp('dev_tools')} - data-test-subj="goToConsoleButton" + onClick={() => navigateToApp('security_account', { path: 'api-keys' })} + data-test-subj="goToAccountButton" > } diff --git a/x-pack/test/functional/apps/api_keys/home_page.ts b/x-pack/test/functional/apps/api_keys/home_page.ts index 39d8449218ffad..52355aba3a5c7b 100644 --- a/x-pack/test/functional/apps/api_keys/home_page.ts +++ b/x-pack/test/functional/apps/api_keys/home_page.ts @@ -34,8 +34,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { const headers = await testSubjects.findAll('noApiKeysHeader'); if (headers.length > 0) { expect(await headers[0].getVisibleText()).to.be('No API keys'); - const goToConsoleButton = await pageObjects.apiKeys.getGoToConsoleButton(); - expect(await goToConsoleButton.isDisplayed()).to.be(true); + const goToAccountButton = await pageObjects.apiKeys.getGoToAccountButton(); + expect(await goToAccountButton.isDisplayed()).to.be(true); } else { // page may already contain EiTable with data, then check API Key Admin text const description = await pageObjects.apiKeys.getApiKeyAdminDesc(); diff --git a/x-pack/test/functional/page_objects/api_keys_page.ts b/x-pack/test/functional/page_objects/api_keys_page.ts index fa10c5a574c095..d1aeda653f8a0b 100644 --- a/x-pack/test/functional/page_objects/api_keys_page.ts +++ b/x-pack/test/functional/page_objects/api_keys_page.ts @@ -18,8 +18,8 @@ export function ApiKeysPageProvider({ getService }: FtrProviderContext) { return await testSubjects.getVisibleText('apiKeyAdminDescriptionCallOut'); }, - async getGoToConsoleButton() { - return await testSubjects.find('goToConsoleButton'); + async getGoToAccountButton() { + return await testSubjects.find('goToAccountButton'); }, async apiKeysPermissionDeniedMessage() {