mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make global mock for MonacoEditor textarea to make linebreaks appear correctly
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
bc51b453b5
commit
27684ade67
@ -2644,10 +2644,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -3651,10 +3652,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
class="Spinner singleColor center"
|
class="Spinner singleColor center"
|
||||||
data-testid="install-chart-configuration-spinner"
|
data-testid="install-chart-configuration-spinner"
|
||||||
/>
|
/>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -4624,10 +4626,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration-for-other-version"
|
>
|
||||||
/>
|
some-default-configuration-for-other-version
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -5597,10 +5600,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -6590,10 +6594,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="@some-invalid-configuration@"
|
>
|
||||||
/>
|
@some-invalid-configuration@
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -7565,10 +7570,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -8567,10 +8573,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -9548,10 +9555,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -13030,10 +13038,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -15102,10 +15111,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-second-tab-id"
|
data-testid="monaco-editor-for-some-second-tab-id"
|
||||||
value="some-other-default-configuration"
|
>
|
||||||
/>
|
some-other-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -16122,10 +16132,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -17095,10 +17106,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-valid-configuration"
|
>
|
||||||
/>
|
some-valid-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -18068,10 +18080,11 @@ exports[`installing helm chart from new tab given tab for installing chart was n
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-default-configuration"
|
>
|
||||||
/>
|
some-default-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1243,10 +1243,11 @@ exports[`installing helm chart from previously opened tab given tab for installi
|
|||||||
Install
|
Install
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-some-first-tab-id"
|
data-testid="monaco-editor-for-some-first-tab-id"
|
||||||
value="some-stored-configuration"
|
>
|
||||||
/>
|
some-stored-configuration
|
||||||
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -7336,10 +7336,11 @@ exports[`showing details for helm release given application is started when navi
|
|||||||
User-supplied values only
|
User-supplied values only
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-helm-release-configuration"
|
data-testid="monaco-editor-for-helm-release-configuration"
|
||||||
value="some-configuration"
|
>
|
||||||
/>
|
some-configuration
|
||||||
|
</textarea>
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="helm-release-configuration-save-button"
|
data-testid="helm-release-configuration-save-button"
|
||||||
@ -8555,10 +8556,11 @@ exports[`showing details for helm release given application is started when navi
|
|||||||
User-supplied values only
|
User-supplied values only
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-helm-release-configuration"
|
data-testid="monaco-editor-for-helm-release-configuration"
|
||||||
value="some-new-configuration"
|
>
|
||||||
/>
|
some-new-configuration
|
||||||
|
</textarea>
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="helm-release-configuration-save-button"
|
data-testid="helm-release-configuration-save-button"
|
||||||
@ -9774,10 +9776,11 @@ exports[`showing details for helm release given application is started when navi
|
|||||||
User-supplied values only
|
User-supplied values only
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-helm-release-configuration"
|
data-testid="monaco-editor-for-helm-release-configuration"
|
||||||
value="some-new-configuration"
|
>
|
||||||
/>
|
some-new-configuration
|
||||||
|
</textarea>
|
||||||
<button
|
<button
|
||||||
class="Button waiting primary"
|
class="Button waiting primary"
|
||||||
data-testid="helm-release-configuration-save-button"
|
data-testid="helm-release-configuration-save-button"
|
||||||
@ -10820,10 +10823,11 @@ exports[`showing details for helm release given application is started when navi
|
|||||||
User-supplied values only
|
User-supplied values only
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-helm-release-configuration"
|
data-testid="monaco-editor-for-helm-release-configuration"
|
||||||
value="some-new-configuration"
|
>
|
||||||
/>
|
some-new-configuration
|
||||||
|
</textarea>
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="helm-release-configuration-save-button"
|
data-testid="helm-release-configuration-save-button"
|
||||||
@ -11867,10 +11871,11 @@ exports[`showing details for helm release given application is started when navi
|
|||||||
User-supplied values only
|
User-supplied values only
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-helm-release-configuration"
|
data-testid="monaco-editor-for-helm-release-configuration"
|
||||||
value="some-new-configuration"
|
>
|
||||||
/>
|
some-new-configuration
|
||||||
|
</textarea>
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="helm-release-configuration-save-button"
|
data-testid="helm-release-configuration-save-button"
|
||||||
@ -13087,10 +13092,11 @@ exports[`showing details for helm release given application is started when navi
|
|||||||
User-supplied values only
|
User-supplied values only
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<textarea
|
||||||
data-testid="monaco-editor-for-helm-release-configuration"
|
data-testid="monaco-editor-for-helm-release-configuration"
|
||||||
value="some-other-configuration"
|
>
|
||||||
/>
|
some-other-configuration
|
||||||
|
</textarea>
|
||||||
<button
|
<button
|
||||||
class="Button primary"
|
class="Button primary"
|
||||||
data-testid="helm-release-configuration-save-button"
|
data-testid="helm-release-configuration-save-button"
|
||||||
|
|||||||
@ -12,7 +12,7 @@ class FakeMonacoEditor extends React.Component<MonacoEditorProps> {
|
|||||||
const { id, value, onChange, onError, language = "yaml" } = this.props;
|
const { id, value, onChange, onError, language = "yaml" } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<input
|
<textarea
|
||||||
data-testid={`monaco-editor-for-${id}`}
|
data-testid={`monaco-editor-for-${id}`}
|
||||||
|
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user