diff --git a/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap index 903e3aa2783a6b..299e0a961bd3fe 100644 --- a/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap +++ b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/elastic_agent_card.test.tsx.snap @@ -231,7 +231,13 @@ exports[`ElasticAgentCard renders 1`] = ` /> } paddingSize="l" - title="Add Elastic Agent" + title={ + + + Add Elastic Agent + + + } > - Add Elastic Agent + + + Add Elastic Agent + + diff --git a/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap index 47a4bf4687b38d..bb4849450e7bb2 100644 --- a/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap +++ b/packages/kbn-shared-ux-components/src/page_template/no_data_page/no_data_card/__snapshots__/no_data_card.test.tsx.snap @@ -11,7 +11,11 @@ exports[`NoDataCard props button 1`] = ` class="euiTitle euiTitle--small euiCard__title" id="generated-idTitle" > - Card title + + Card title +
- Card title + + Card title +
- Card title + + Card title +
- Card title + + Card title +
- Card title + + Card title +
= ({ - title, + title: titleProp, button, description, isDisabled, @@ -39,10 +39,18 @@ export const NoDataCard: FunctionComponent = ({ return button; } // Default footer action is a button with the provided or default string - return {button || title}; + return {button || titleProp}; }; + const cardDescription = description || defaultDescription; + // Fix the need for an a11y title even though the button exists by setting to screen reader only + const title = titleProp ? ( + + {titleProp} + + ) : null; + return ( { await security.testUser.restoreDefaults(); await esArchiver.unload('test/functional/fixtures/es_archiver/message_with_newline'); + await kibanaServer.savedObjects.cleanStandardList(); await kibanaServer.uiSettings.unset('defaultIndex'); await kibanaServer.uiSettings.unset('doc_table:legacy'); }); diff --git a/test/functional/fixtures/es_archiver/message_with_newline/data.json b/test/functional/fixtures/es_archiver/message_with_newline/data.json index 3611f2d3878a43..62a2b5bf66fa8c 100644 --- a/test/functional/fixtures/es_archiver/message_with_newline/data.json +++ b/test/functional/fixtures/es_archiver/message_with_newline/data.json @@ -1,18 +1,3 @@ -{ - "type": "doc", - "value": { - "id": "index-pattern:newline-test", - "index": ".kibana", - "source": { - "index-pattern": { - "fields": "[]", - "title": "newline-test" - }, - "type": "index-pattern" - } - } -} - { "type": "doc", "value": { diff --git a/test/functional/fixtures/kbn_archiver/message_with_newline.json b/test/functional/fixtures/kbn_archiver/message_with_newline.json new file mode 100644 index 00000000000000..44e9d41ebf93ed --- /dev/null +++ b/test/functional/fixtures/kbn_archiver/message_with_newline.json @@ -0,0 +1,14 @@ +{ + "attributes": { + "fields": "[]", + "title": "newline-test" + }, + "coreMigrationVersion": "8.4.0", + "id": "newline-test", + "migrationVersion": { + "index-pattern": "8.0.0" + }, + "references": [], + "type": "index-pattern", + "version": "WzEzLDJd" +} \ No newline at end of file