mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
adding missing data-test-subj and renaming one (#20238)
This commit is contained in:
parent
b03243f5d8
commit
61aa89cb64
4 changed files with 14 additions and 13 deletions
|
@ -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>"`;
|
||||
|
|
|
@ -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"
|
||||
>
|
||||
|
|
|
@ -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}
|
||||
>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue