|
70 | 70 | <div class="testcase-container"> |
71 | 71 | <TestcaseToolbar {testcase} {onprerun} /> |
72 | 72 | {#if showDetails} |
73 | | - {#if testcase.mode === "interactive"} |
74 | | - <AutoresizeTextarea |
75 | | - bind:value={testcase.interactorSecret} |
76 | | - bind:editing={interactorSecretEditing} |
77 | | - placeholder="Interactor secret..." |
78 | | - variant="interactor-secret" |
79 | | - onexpand={() => handleExpandStdio("INTERACTOR_SECRET")} |
80 | | - onpreedit={() => { |
81 | | - postProviderMessage({ |
82 | | - type: "REQUEST_FULL_DATA", |
83 | | - uuid: testcase.uuid, |
84 | | - stdio: "INTERACTOR_SECRET", |
85 | | - }); |
86 | | - }} |
87 | | - onsave={handleSaveInteractorSecret} |
88 | | - oncancel={() => { |
89 | | - postProviderMessage({ |
90 | | - type: "REQUEST_TRIMMED_DATA", |
91 | | - uuid: testcase.uuid, |
92 | | - stdio: "INTERACTOR_SECRET", |
93 | | - }); |
94 | | - }} |
95 | | - /> |
96 | | - {/if} |
97 | 73 | {#if status !== "CE"} |
| 74 | + {#if testcase.mode === "interactive"} |
| 75 | + <AutoresizeTextarea |
| 76 | + bind:value={testcase.interactorSecret} |
| 77 | + bind:editing={interactorSecretEditing} |
| 78 | + placeholder="Interactor secret..." |
| 79 | + variant="interactor-secret" |
| 80 | + onexpand={() => handleExpandStdio("INTERACTOR_SECRET")} |
| 81 | + onpreedit={() => { |
| 82 | + postProviderMessage({ |
| 83 | + type: "REQUEST_FULL_DATA", |
| 84 | + uuid: testcase.uuid, |
| 85 | + stdio: "INTERACTOR_SECRET", |
| 86 | + }); |
| 87 | + }} |
| 88 | + onsave={handleSaveInteractorSecret} |
| 89 | + oncancel={() => { |
| 90 | + postProviderMessage({ |
| 91 | + type: "REQUEST_TRIMMED_DATA", |
| 92 | + uuid: testcase.uuid, |
| 93 | + stdio: "INTERACTOR_SECRET", |
| 94 | + }); |
| 95 | + }} |
| 96 | + /> |
| 97 | + {/if} |
98 | 98 | <AutoresizeTextarea |
99 | 99 | bind:value={testcase.stdin} |
100 | 100 | bind:editing={stdinEditing} |
|
0 commit comments