adding missing data-test-subj and renaming one (#20238)

This commit is contained in:
Bill McConaghy 2018-06-26 20:05:32 -04:00 committed by GitHub
parent b03243f5d8
commit 61aa89cb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 13 deletions

View file

@ -1,5 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AddLicense component when license is active should display correct verbiage 1`] = `"<div class=\\"euiCard euiCard--centerAligned\\"><span class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--medium euiCard__title\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\"><p>If you already have a new license, upload it now.</p></div></span><span class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"#/management/elasticsearch/license_management/upload_license\\" style=\\"margin-top: auto;\\"><span class=\\"euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></span></div>"`;
exports[`AddLicense component when license is active should display correct verbiage 1`] = `"<div class=\\"euiCard euiCard--centerAligned\\"><span class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--medium euiCard__title\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\"><p>If you already have a new license, upload it now.</p></div></span><span class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"#/management/elasticsearch/license_management/upload_license\\" data-test-subj=\\"updateLicenseButton\\" style=\\"margin-top: auto;\\"><span class=\\"euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></span></div>"`;
exports[`AddLicense component when license is expired should display with correct verbiage 1`] = `"<div class=\\"euiCard euiCard--centerAligned\\"><span class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--medium euiCard__title\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\"><p>If you already have a new license, upload it now.</p></div></span><span class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"#/management/elasticsearch/license_management/upload_license\\" style=\\"margin-top: auto;\\"><span class=\\"euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></span></div>"`;
exports[`AddLicense component when license is expired should display with correct verbiage 1`] = `"<div class=\\"euiCard euiCard--centerAligned\\"><span class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--medium euiCard__title\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\"><p>If you already have a new license, upload it now.</p></div></span><span class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"#/management/elasticsearch/license_management/upload_license\\" data-test-subj=\\"updateLicenseButton\\" style=\\"margin-top: auto;\\"><span class=\\"euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></span></div>"`;

View file

@ -467,7 +467,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
>
<EuiButton
color="primary"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
fill={true}
iconSide="left"
isLoading={false}
@ -476,7 +476,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
>
<button
className="euiButton euiButton--primary euiButton--fill"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
onClick={[Function]}
type="button"
>
@ -791,7 +791,7 @@ exports[`UploadLicense should display an error when ES says license is expired 1
>
<EuiButton
color="primary"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
fill={true}
iconSide="left"
isLoading={false}
@ -800,7 +800,7 @@ exports[`UploadLicense should display an error when ES says license is expired 1
>
<button
className="euiButton euiButton--primary euiButton--fill"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
onClick={[Function]}
type="button"
>
@ -1115,7 +1115,7 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
>
<EuiButton
color="primary"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
fill={true}
iconSide="left"
isLoading={false}
@ -1124,7 +1124,7 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
>
<button
className="euiButton euiButton--primary euiButton--fill"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
onClick={[Function]}
type="button"
>
@ -1439,7 +1439,7 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
>
<EuiButton
color="primary"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
fill={true}
iconSide="left"
isLoading={false}
@ -1448,7 +1448,7 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
>
<button
className="euiButton euiButton--primary euiButton--fill"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
onClick={[Function]}
type="button"
>
@ -1763,7 +1763,7 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
>
<EuiButton
color="primary"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
fill={true}
iconSide="left"
isLoading={false}
@ -1772,7 +1772,7 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
>
<button
className="euiButton euiButton--primary euiButton--fill"
data-test-subj="updateLicenseButton"
data-test-subj="uploadLicenseButton"
onClick={[Function]}
type="button"
>

View file

@ -16,6 +16,7 @@ export const AddLicense = ({ uploadPath = `#${BASE_PATH}upload_license` }) => {
description="If you already have a new license, upload it now."
footer={
<EuiButton
data-test-subj="updateLicenseButton"
style={{ marginTop: 'auto' }}
href={uploadPath}
>

View file

@ -132,7 +132,7 @@ export class UploadLicense extends React.PureComponent {
</EuiButtonEmpty>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButton data-test-subj="updateLicenseButton" fill isLoading={applying} onClick={this.submit}>
<EuiButton data-test-subj="uploadLicenseButton" fill isLoading={applying} onClick={this.submit}>
{applying ? 'Uploading...' : 'Upload'}
</EuiButton>
</EuiFlexItem>