From 01b80cabcfb8fc6155139e2d243abdaf5010cd99 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Mon, 7 Dec 2020 20:42:27 +0100 Subject: [PATCH] [MM-30969] Drop aria-label from Marketplace item description (#7133) * Drop aria-label from Marketplace item description * Add general aria-label --- .../marketplace_item.test.js.snap | 102 ++++++++++++++++-- .../marketplace_item/marketplace_item.js | 6 +- .../marketplace_item/marketplace_item.test.js | 11 ++ 3 files changed, 105 insertions(+), 14 deletions(-) diff --git a/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap b/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap index 7d28856d626e..6d9c88793346 100644 --- a/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap +++ b/components/plugin_marketplace/marketplace_item/__snapshots__/marketplace_item.test.js.snap @@ -32,7 +32,7 @@ exports[`components/MarketplaceItem MarketplaceItem should render 1`] = ` `; +exports[`components/MarketplaceItem MarketplaceItem should render with no plugin description 1`] = ` + +
+
+ +
+
+ + name + + (1.0.0) + + + +

+ + +

+
+ +
+ +
+ +`; + exports[`components/MarketplaceItem MarketplaceItem should render with no plugin icon 1`] = `

{labels} {labels} {description} diff --git a/components/plugin_marketplace/marketplace_item/marketplace_item.test.js b/components/plugin_marketplace/marketplace_item/marketplace_item.test.js index 1fe60658d6d9..9cc9e392f003 100644 --- a/components/plugin_marketplace/marketplace_item/marketplace_item.test.js +++ b/components/plugin_marketplace/marketplace_item/marketplace_item.test.js @@ -223,6 +223,17 @@ describe('components/MarketplaceItem', () => { expect(wrapper).toMatchSnapshot(); }); + test('should render with no plugin description', () => { + const props = {...baseProps}; + delete props.description; + + const wrapper = shallow( + , + ); + + expect(wrapper).toMatchSnapshot(); + }); + test('should render with no plugin icon', () => { const props = {...baseProps}; delete props.iconData;