|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
3 | 3 | exports[`CreateIndexPatternWizard defaults to the loading state 1`] = ` |
4 | | -<div> |
5 | | - <Header |
6 | | - indexPatternName="name" |
7 | | - isBeta={false} |
8 | | - isIncludingSystemIndices={false} |
9 | | - onChangeIncludingSystemIndices={[Function]} |
10 | | - showSystemIndices={false} |
| 4 | +<React.Fragment> |
| 5 | + <div> |
| 6 | + <Header |
| 7 | + indexPatternName="name" |
| 8 | + isBeta={false} |
| 9 | + isIncludingSystemIndices={false} |
| 10 | + onChangeIncludingSystemIndices={[Function]} |
| 11 | + showSystemIndices={false} |
| 12 | + /> |
| 13 | + <LoadingState /> |
| 14 | + </div> |
| 15 | + <EuiGlobalToastList |
| 16 | + dismissToast={[Function]} |
| 17 | + toastLifeTimeMs={6000} |
| 18 | + toasts={Array []} |
11 | 19 | /> |
12 | | - <LoadingState /> |
13 | | -</div> |
| 20 | +</React.Fragment> |
14 | 21 | `; |
15 | 22 |
|
16 | 23 | exports[`CreateIndexPatternWizard renders index pattern step when there are indices 1`] = ` |
17 | | -<div> |
18 | | - <Header |
19 | | - indexPatternName="name" |
20 | | - isBeta={false} |
21 | | - isIncludingSystemIndices={false} |
22 | | - onChangeIncludingSystemIndices={[Function]} |
23 | | - showSystemIndices={false} |
24 | | - /> |
25 | | - <StepIndexPattern |
26 | | - allIndices={ |
27 | | - Array [ |
| 24 | +<React.Fragment> |
| 25 | + <div> |
| 26 | + <Header |
| 27 | + indexPatternName="name" |
| 28 | + isBeta={false} |
| 29 | + isIncludingSystemIndices={false} |
| 30 | + onChangeIncludingSystemIndices={[Function]} |
| 31 | + showSystemIndices={false} |
| 32 | + /> |
| 33 | + <StepIndexPattern |
| 34 | + allIndices={ |
| 35 | + Array [ |
| 36 | + Object { |
| 37 | + "name": "myIndexPattern", |
| 38 | + }, |
| 39 | + ] |
| 40 | + } |
| 41 | + esService={Object {}} |
| 42 | + goToNextStep={[Function]} |
| 43 | + indexPatternCreationType={ |
28 | 44 | Object { |
29 | | - "name": "myIndexPattern", |
30 | | - }, |
31 | | - ] |
32 | | - } |
33 | | - esService={Object {}} |
34 | | - goToNextStep={[Function]} |
35 | | - indexPatternCreationType={ |
36 | | - Object { |
37 | | - "checkIndicesForErrors": [Function], |
38 | | - "getIndexPatternMappings": [Function], |
39 | | - "getIndexPatternName": [Function], |
40 | | - "getIndexPatternType": [Function], |
41 | | - "getIsBeta": [Function], |
42 | | - "getShowSystemIndices": [Function], |
43 | | - "renderPrompt": [Function], |
| 45 | + "checkIndicesForErrors": [Function], |
| 46 | + "getIndexPatternMappings": [Function], |
| 47 | + "getIndexPatternName": [Function], |
| 48 | + "getIndexPatternType": [Function], |
| 49 | + "getIsBeta": [Function], |
| 50 | + "getShowSystemIndices": [Function], |
| 51 | + "renderPrompt": [Function], |
| 52 | + } |
44 | 53 | } |
45 | | - } |
46 | | - initialQuery="" |
47 | | - isIncludingSystemIndices={false} |
48 | | - savedObjectsClient={Object {}} |
| 54 | + initialQuery="" |
| 55 | + isIncludingSystemIndices={false} |
| 56 | + savedObjectsClient={Object {}} |
| 57 | + /> |
| 58 | + </div> |
| 59 | + <EuiGlobalToastList |
| 60 | + dismissToast={[Function]} |
| 61 | + toastLifeTimeMs={6000} |
| 62 | + toasts={Array []} |
49 | 63 | /> |
50 | | -</div> |
| 64 | +</React.Fragment> |
51 | 65 | `; |
52 | 66 |
|
53 | 67 | exports[`CreateIndexPatternWizard renders the empty state when there are no indices 1`] = ` |
54 | | -<div> |
55 | | - <Header |
56 | | - indexPatternName="name" |
57 | | - isBeta={false} |
58 | | - isIncludingSystemIndices={false} |
59 | | - onChangeIncludingSystemIndices={[Function]} |
60 | | - showSystemIndices={false} |
61 | | - /> |
62 | | - <EmptyState |
63 | | - onRefresh={[Function]} |
| 68 | +<React.Fragment> |
| 69 | + <div> |
| 70 | + <Header |
| 71 | + indexPatternName="name" |
| 72 | + isBeta={false} |
| 73 | + isIncludingSystemIndices={false} |
| 74 | + onChangeIncludingSystemIndices={[Function]} |
| 75 | + showSystemIndices={false} |
| 76 | + /> |
| 77 | + <EmptyState |
| 78 | + onRefresh={[Function]} |
| 79 | + /> |
| 80 | + </div> |
| 81 | + <EuiGlobalToastList |
| 82 | + dismissToast={[Function]} |
| 83 | + toastLifeTimeMs={6000} |
| 84 | + toasts={Array []} |
64 | 85 | /> |
65 | | -</div> |
| 86 | +</React.Fragment> |
66 | 87 | `; |
67 | 88 |
|
68 | 89 | exports[`CreateIndexPatternWizard renders time field step when step is set to 2 1`] = ` |
69 | | -<div> |
70 | | - <Header |
71 | | - indexPatternName="name" |
72 | | - isBeta={false} |
73 | | - isIncludingSystemIndices={false} |
74 | | - onChangeIncludingSystemIndices={[Function]} |
75 | | - showSystemIndices={false} |
| 90 | +<React.Fragment> |
| 91 | + <div> |
| 92 | + <Header |
| 93 | + indexPatternName="name" |
| 94 | + isBeta={false} |
| 95 | + isIncludingSystemIndices={false} |
| 96 | + onChangeIncludingSystemIndices={[Function]} |
| 97 | + showSystemIndices={false} |
| 98 | + /> |
| 99 | + <StepTimeField |
| 100 | + createIndexPattern={[Function]} |
| 101 | + goToPreviousStep={[Function]} |
| 102 | + indexPattern="" |
| 103 | + indexPatternCreationType={ |
| 104 | + Object { |
| 105 | + "checkIndicesForErrors": [Function], |
| 106 | + "getIndexPatternMappings": [Function], |
| 107 | + "getIndexPatternName": [Function], |
| 108 | + "getIndexPatternType": [Function], |
| 109 | + "getIsBeta": [Function], |
| 110 | + "getShowSystemIndices": [Function], |
| 111 | + "renderPrompt": [Function], |
| 112 | + } |
| 113 | + } |
| 114 | + indexPatternsService={Object {}} |
| 115 | + /> |
| 116 | + </div> |
| 117 | + <EuiGlobalToastList |
| 118 | + dismissToast={[Function]} |
| 119 | + toastLifeTimeMs={6000} |
| 120 | + toasts={Array []} |
76 | 121 | /> |
77 | | - <StepTimeField |
78 | | - createIndexPattern={[Function]} |
79 | | - goToPreviousStep={[Function]} |
80 | | - indexPattern="" |
81 | | - indexPatternCreationType={ |
82 | | - Object { |
83 | | - "checkIndicesForErrors": [Function], |
84 | | - "getIndexPatternMappings": [Function], |
85 | | - "getIndexPatternName": [Function], |
86 | | - "getIndexPatternType": [Function], |
87 | | - "getIsBeta": [Function], |
88 | | - "getShowSystemIndices": [Function], |
89 | | - "renderPrompt": [Function], |
| 122 | +</React.Fragment> |
| 123 | +`; |
| 124 | + |
| 125 | +exports[`CreateIndexPatternWizard renders when there are no indices but there are remote clusters 1`] = ` |
| 126 | +<React.Fragment> |
| 127 | + <div> |
| 128 | + <Header |
| 129 | + indexPatternName="name" |
| 130 | + isBeta={false} |
| 131 | + isIncludingSystemIndices={false} |
| 132 | + onChangeIncludingSystemIndices={[Function]} |
| 133 | + showSystemIndices={false} |
| 134 | + /> |
| 135 | + <StepIndexPattern |
| 136 | + allIndices={Array []} |
| 137 | + esService={Object {}} |
| 138 | + goToNextStep={[Function]} |
| 139 | + indexPatternCreationType={ |
| 140 | + Object { |
| 141 | + "checkIndicesForErrors": [Function], |
| 142 | + "getIndexPatternMappings": [Function], |
| 143 | + "getIndexPatternName": [Function], |
| 144 | + "getIndexPatternType": [Function], |
| 145 | + "getIsBeta": [Function], |
| 146 | + "getShowSystemIndices": [Function], |
| 147 | + "renderPrompt": [Function], |
| 148 | + } |
90 | 149 | } |
91 | | - } |
92 | | - indexPatternsService={Object {}} |
| 150 | + initialQuery="" |
| 151 | + isIncludingSystemIndices={false} |
| 152 | + savedObjectsClient={Object {}} |
| 153 | + /> |
| 154 | + </div> |
| 155 | + <EuiGlobalToastList |
| 156 | + dismissToast={[Function]} |
| 157 | + toastLifeTimeMs={6000} |
| 158 | + toasts={Array []} |
93 | 159 | /> |
94 | | -</div> |
| 160 | +</React.Fragment> |
95 | 161 | `; |
96 | 162 |
|
97 | 163 | exports[`CreateIndexPatternWizard shows system indices even if there are no other indices if the include system indices is toggled 1`] = ` |
98 | | -<div> |
99 | | - <Header |
100 | | - indexPatternName="name" |
101 | | - isBeta={false} |
102 | | - isIncludingSystemIndices={true} |
103 | | - onChangeIncludingSystemIndices={[Function]} |
104 | | - showSystemIndices={false} |
105 | | - /> |
106 | | - <StepIndexPattern |
107 | | - allIndices={ |
108 | | - Array [ |
| 164 | +<React.Fragment> |
| 165 | + <div> |
| 166 | + <Header |
| 167 | + indexPatternName="name" |
| 168 | + isBeta={false} |
| 169 | + isIncludingSystemIndices={true} |
| 170 | + onChangeIncludingSystemIndices={[Function]} |
| 171 | + showSystemIndices={false} |
| 172 | + /> |
| 173 | + <StepIndexPattern |
| 174 | + allIndices={ |
| 175 | + Array [ |
| 176 | + Object { |
| 177 | + "name": ".kibana ", |
| 178 | + }, |
| 179 | + ] |
| 180 | + } |
| 181 | + esService={Object {}} |
| 182 | + goToNextStep={[Function]} |
| 183 | + indexPatternCreationType={ |
109 | 184 | Object { |
110 | | - "name": ".kibana ", |
111 | | - }, |
112 | | - ] |
113 | | - } |
114 | | - esService={Object {}} |
115 | | - goToNextStep={[Function]} |
116 | | - indexPatternCreationType={ |
117 | | - Object { |
118 | | - "checkIndicesForErrors": [Function], |
119 | | - "getIndexPatternMappings": [Function], |
120 | | - "getIndexPatternName": [Function], |
121 | | - "getIndexPatternType": [Function], |
122 | | - "getIsBeta": [Function], |
123 | | - "getShowSystemIndices": [Function], |
124 | | - "renderPrompt": [Function], |
| 185 | + "checkIndicesForErrors": [Function], |
| 186 | + "getIndexPatternMappings": [Function], |
| 187 | + "getIndexPatternName": [Function], |
| 188 | + "getIndexPatternType": [Function], |
| 189 | + "getIsBeta": [Function], |
| 190 | + "getShowSystemIndices": [Function], |
| 191 | + "renderPrompt": [Function], |
| 192 | + } |
125 | 193 | } |
126 | | - } |
127 | | - initialQuery="" |
128 | | - isIncludingSystemIndices={true} |
129 | | - savedObjectsClient={Object {}} |
| 194 | + initialQuery="" |
| 195 | + isIncludingSystemIndices={true} |
| 196 | + savedObjectsClient={Object {}} |
| 197 | + /> |
| 198 | + </div> |
| 199 | + <EuiGlobalToastList |
| 200 | + dismissToast={[Function]} |
| 201 | + toastLifeTimeMs={6000} |
| 202 | + toasts={Array []} |
130 | 203 | /> |
131 | | -</div> |
| 204 | +</React.Fragment> |
132 | 205 | `; |
0 commit comments