[Lens] remove test warnings about improper HTML structure (#79251)

* [Lens] remove test warnings about improper HTML structure
This commit is contained in:
Marta Bondyra 2020-10-02 17:18:20 +02:00 committed by GitHub
parent f398b49200
commit fccfad24cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,27 +208,22 @@ export function InnerWorkspacePanel({
>
<h2>
<strong>
{expression === null ? (
<FormattedMessage
id="xpack.lens.editorFrame.emptyWorkspace"
defaultMessage="Drop some fields here to start"
/>
) : (
<FormattedMessage
id="xpack.lens.editorFrame.emptyWorkspaceSimple"
defaultMessage="Drop field here"
/>
)}
{expression === null
? i18n.translate('xpack.lens.editorFrame.emptyWorkspace', {
defaultMessage: 'Drop some fields here to start',
})
: i18n.translate('xpack.lens.editorFrame.emptyWorkspaceSimple', {
defaultMessage: 'Drop field here',
})}
</strong>
</h2>
<DropIllustration aria-hidden={true} className="lnsWorkspacePanel__dropIllustration" />
{expression === null && (
<>
<p>
<FormattedMessage
id="xpack.lens.editorFrame.emptyWorkspaceHeading"
defaultMessage="Lens is a new tool for creating visualizations"
/>
{i18n.translate('xpack.lens.editorFrame.emptyWorkspaceHeading', {
defaultMessage: 'Lens is a new tool for creating visualization',
})}
</p>
<p>
<small>
@ -237,10 +232,9 @@ export function InnerWorkspacePanel({
target="_blank"
external
>
<FormattedMessage
id="xpack.lens.editorFrame.goToForums"
defaultMessage="Make requests and give feedback"
/>
{i18n.translate('xpack.lens.editorFrame.goToForums', {
defaultMessage: 'Make requests and give feedback',
})}
</EuiLink>
</small>
</p>