From bad632d96dece03a3be1552a8091a0ddb9dad04e Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 11:30:34 -0700 Subject: [PATCH] Placeholder change related test fixes (#1124) (#1126) * remove unused files * missing snapshots * fix one test * update snapshots --------- (cherry picked from commit 0eea820fa921583c4a49465e34561e0db9283ba6) Signed-off-by: Eric Wei Signed-off-by: Eric Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .../__snapshots__/create.test.tsx.snap | 32 +++++++++---------- .../__snapshots__/log_config.test.tsx.snap | 8 ++--- .../common/search/autocomplete.test.tsx | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap index 48a65f4ac6..375a076cd0 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap @@ -308,7 +308,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -1562,7 +1562,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -2757,7 +2757,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -3925,7 +3925,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -5152,7 +5152,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -6320,7 +6320,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -7540,7 +7540,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -8645,7 +8645,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -9812,7 +9812,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -10946,7 +10946,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -12139,7 +12139,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -13307,7 +13307,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -14534,7 +14534,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -15702,7 +15702,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -16931,7 +16931,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" @@ -18181,7 +18181,7 @@ Object { enterkeyhint="search" id="autocomplete-textarea" maxlength="512" - placeholder="Enter PPL query" + placeholder="Enter query" rows="6" spellcheck="false" style="margin-top: 0px; height: 18px; padding: 8px;" diff --git a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap index 7a96c78913..70ce722efd 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap @@ -514,7 +514,7 @@ exports[`Log Config component renders empty log config 1`] = ` onClick={[Function]} onFocus={[Function]} onKeyDown={[Function]} - placeholder="Enter PPL query" + placeholder="Enter query" spellCheck="false" style={ Object { @@ -545,7 +545,7 @@ exports[`Log Config component renders empty log config 1`] = ` onClick={[Function]} onFocus={[Function]} onKeyDown={[Function]} - placeholder="Enter PPL query" + placeholder="Enter query" rows={6} spellCheck="false" style={ @@ -1138,7 +1138,7 @@ exports[`Log Config component renders with query 1`] = ` onClick={[Function]} onFocus={[Function]} onKeyDown={[Function]} - placeholder="Enter PPL query" + placeholder="Enter query" spellCheck="false" style={ Object { @@ -1169,7 +1169,7 @@ exports[`Log Config component renders with query 1`] = ` onClick={[Function]} onFocus={[Function]} onKeyDown={[Function]} - placeholder="Enter PPL query" + placeholder="Enter query" rows={6} spellCheck="false" style={ diff --git a/public/components/common/search/autocomplete.test.tsx b/public/components/common/search/autocomplete.test.tsx index fd50171010..766e5b80c3 100644 --- a/public/components/common/search/autocomplete.test.tsx +++ b/public/components/common/search/autocomplete.test.tsx @@ -47,7 +47,7 @@ describe('renders autocomplete', function () { /> ); - const searchBar = utils.getByPlaceholderText('Enter PPL query'); + const searchBar = utils.getByPlaceholderText('Enter query'); it('handles query change', () => { act(() => {