mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 18:01:39 +00:00
update sanpshort test case
This commit is contained in:
@@ -15,7 +15,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
}
|
||||
}
|
||||
>
|
||||
<GenericRightPaneComponent
|
||||
<RightPaneForm
|
||||
container={
|
||||
Object {
|
||||
"findSelectedCollection": [Function],
|
||||
@@ -69,6 +69,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
<CustomizedIconButton
|
||||
ariaLabel="Close pane"
|
||||
className="closePaneBtn"
|
||||
data-testid="closePaneBtn"
|
||||
iconProps={
|
||||
Object {
|
||||
"iconName": "Cancel",
|
||||
@@ -81,6 +82,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
<IconButton
|
||||
ariaLabel="Close pane"
|
||||
className="closePaneBtn"
|
||||
data-testid="closePaneBtn"
|
||||
iconProps={
|
||||
Object {
|
||||
"iconName": "Cancel",
|
||||
@@ -367,6 +369,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
ariaLabel="Close pane"
|
||||
baseClassName="ms-Button"
|
||||
className="closePaneBtn"
|
||||
data-testid="closePaneBtn"
|
||||
iconProps={
|
||||
Object {
|
||||
"iconName": "Cancel",
|
||||
@@ -1082,6 +1085,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
aria-label="Close pane"
|
||||
className="ms-Button ms-Button--icon closePaneBtn root-140"
|
||||
data-is-focusable={true}
|
||||
data-testid="closePaneBtn"
|
||||
onClick={[Function]}
|
||||
onKeyDown={[Function]}
|
||||
onKeyPress={[Function]}
|
||||
@@ -1121,39 +1125,17 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
</IconButton>
|
||||
</CustomizedIconButton>
|
||||
</div>
|
||||
<div
|
||||
aria-live="assertive"
|
||||
className="warningErrorContainer"
|
||||
hidden={true}
|
||||
>
|
||||
<div
|
||||
className="warningErrorContent"
|
||||
>
|
||||
<span>
|
||||
<img
|
||||
alt="Error"
|
||||
className="paneErrorIcon"
|
||||
src=""
|
||||
<PanelInfoErrorComponent
|
||||
formError={false}
|
||||
message=""
|
||||
messageType="error"
|
||||
openNotificationConsole={[Function]}
|
||||
showErrorDetails={false}
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
className="warningErrorDetailsLinkContainer"
|
||||
<form
|
||||
className="panelFormWrapper"
|
||||
onSubmit={[Function]}
|
||||
>
|
||||
<span
|
||||
className="formErrors"
|
||||
title=""
|
||||
/>
|
||||
<a
|
||||
className="errorLink"
|
||||
hidden={true}
|
||||
onClick={[Function]}
|
||||
role="link"
|
||||
>
|
||||
More details
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className="panelFormWrapper"
|
||||
>
|
||||
@@ -1855,35 +1837,23 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className="paneFooter"
|
||||
<PanelFooterComponent
|
||||
buttonLabel="OK"
|
||||
>
|
||||
<div
|
||||
className="leftpanel-okbut"
|
||||
className="panelFooter"
|
||||
>
|
||||
<CustomizedPrimaryButton
|
||||
ariaLabel="Submit"
|
||||
className="genericPaneSubmitBtn"
|
||||
onClick={[Function]}
|
||||
style={
|
||||
Object {
|
||||
"visibility": "visible",
|
||||
}
|
||||
}
|
||||
tabIndex={0}
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
text="OK"
|
||||
title="Submit"
|
||||
type="submit"
|
||||
>
|
||||
<PrimaryButton
|
||||
ariaLabel="Submit"
|
||||
className="genericPaneSubmitBtn"
|
||||
onClick={[Function]}
|
||||
style={
|
||||
Object {
|
||||
"visibility": "visible",
|
||||
}
|
||||
}
|
||||
tabIndex={0}
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
text="OK"
|
||||
theme={
|
||||
Object {
|
||||
@@ -2158,20 +2128,14 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
},
|
||||
}
|
||||
}
|
||||
title="Submit"
|
||||
type="submit"
|
||||
>
|
||||
<CustomizedDefaultButton
|
||||
ariaLabel="Submit"
|
||||
className="genericPaneSubmitBtn"
|
||||
onClick={[Function]}
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onRenderDescription={[Function]}
|
||||
primary={true}
|
||||
style={
|
||||
Object {
|
||||
"visibility": "visible",
|
||||
}
|
||||
}
|
||||
tabIndex={0}
|
||||
text="OK"
|
||||
theme={
|
||||
Object {
|
||||
@@ -2446,20 +2410,14 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
},
|
||||
}
|
||||
}
|
||||
title="Submit"
|
||||
type="submit"
|
||||
>
|
||||
<DefaultButton
|
||||
ariaLabel="Submit"
|
||||
className="genericPaneSubmitBtn"
|
||||
onClick={[Function]}
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onRenderDescription={[Function]}
|
||||
primary={true}
|
||||
style={
|
||||
Object {
|
||||
"visibility": "visible",
|
||||
}
|
||||
}
|
||||
tabIndex={0}
|
||||
text="OK"
|
||||
theme={
|
||||
Object {
|
||||
@@ -2734,21 +2692,16 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
},
|
||||
}
|
||||
}
|
||||
title="Submit"
|
||||
type="submit"
|
||||
>
|
||||
<BaseButton
|
||||
ariaLabel="Submit"
|
||||
ariaLabel="OK"
|
||||
baseClassName="ms-Button"
|
||||
className="genericPaneSubmitBtn"
|
||||
onClick={[Function]}
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onRenderDescription={[Function]}
|
||||
primary={true}
|
||||
split={false}
|
||||
style={
|
||||
Object {
|
||||
"visibility": "visible",
|
||||
}
|
||||
}
|
||||
styles={
|
||||
Object {
|
||||
"description": Object {
|
||||
@@ -3292,7 +3245,6 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
},
|
||||
}
|
||||
}
|
||||
tabIndex={0}
|
||||
text="OK"
|
||||
theme={
|
||||
Object {
|
||||
@@ -3567,27 +3519,22 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
},
|
||||
}
|
||||
}
|
||||
title="Submit"
|
||||
type="submit"
|
||||
variantClassName="ms-Button--primary"
|
||||
>
|
||||
<button
|
||||
aria-label="Submit"
|
||||
className="ms-Button ms-Button--primary genericPaneSubmitBtn root-166"
|
||||
aria-label="OK"
|
||||
className="ms-Button ms-Button--primary root-166"
|
||||
data-is-focusable={true}
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onClick={[Function]}
|
||||
onKeyDown={[Function]}
|
||||
onKeyPress={[Function]}
|
||||
onKeyUp={[Function]}
|
||||
onMouseDown={[Function]}
|
||||
onMouseUp={[Function]}
|
||||
style={
|
||||
Object {
|
||||
"visibility": "visible",
|
||||
}
|
||||
}
|
||||
tabIndex={0}
|
||||
title="Submit"
|
||||
type="button"
|
||||
type="submit"
|
||||
>
|
||||
<span
|
||||
className="ms-Button-flexContainer flexContainer-141"
|
||||
@@ -3613,19 +3560,11 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
|
||||
</PrimaryButton>
|
||||
</CustomizedPrimaryButton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className="dataExplorerLoaderContainer dataExplorerPaneLoaderContainer"
|
||||
hidden={true}
|
||||
>
|
||||
<img
|
||||
className="dataExplorerLoader"
|
||||
src=""
|
||||
/>
|
||||
</PanelFooterComponent>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</GenericRightPaneComponent>
|
||||
</RightPaneForm>
|
||||
</DeleteCollectionConfirmationPanel>
|
||||
`;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Load Query Pane should render Default properly 1`] = `
|
||||
<RightPaneWrapper
|
||||
<RightPaneForm
|
||||
closePanel={[Function]}
|
||||
container={
|
||||
Explorer {
|
||||
@@ -3588,5 +3588,5 @@ exports[`Load Query Pane should render Default properly 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</RightPaneWrapper>
|
||||
</RightPaneForm>
|
||||
`;
|
||||
@@ -1,7 +1,7 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Settings Pane should render Default properly 1`] = `
|
||||
<GenericRightPaneComponent
|
||||
<RightPaneForm
|
||||
container={
|
||||
Explorer {
|
||||
"_closeModalDialog": [Function],
|
||||
@@ -884,11 +884,11 @@ exports[`Settings Pane should render Default properly 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</GenericRightPaneComponent>
|
||||
</RightPaneForm>
|
||||
`;
|
||||
|
||||
exports[`Settings Pane should render Gremlin properly 1`] = `
|
||||
<GenericRightPaneComponent
|
||||
<RightPaneForm
|
||||
container={
|
||||
Explorer {
|
||||
"_closeModalDialog": [Function],
|
||||
@@ -1696,5 +1696,5 @@ exports[`Settings Pane should render Gremlin properly 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</GenericRightPaneComponent>
|
||||
</RightPaneForm>
|
||||
`;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Upload Items Pane should render Default properly 1`] = `
|
||||
<GenericRightPaneComponent
|
||||
<RightPaneForm
|
||||
container={
|
||||
Explorer {
|
||||
"_closeModalDialog": [Function],
|
||||
@@ -766,8 +766,10 @@ exports[`Upload Items Pane should render Default properly 1`] = `
|
||||
multiple={true}
|
||||
onUpload={[Function]}
|
||||
tabIndex={0}
|
||||
tooltip="Select one or more JSON files to upload. Each file can contain a single JSON document or an array of JSON documents. The combined size of all files in an individual upload operation must be less than 2 MB. You can perform multiple upload operations for larger data sets."
|
||||
tooltip="Select one or more JSON files to upload. Each file can contain a single JSON document or an array of JSON
|
||||
documents. The combined size of all files in an individual upload operation must be less than 2 MB. You
|
||||
can perform multiple upload operations for larger data sets."
|
||||
/>
|
||||
</div>
|
||||
</GenericRightPaneComponent>
|
||||
</RightPaneForm>
|
||||
`;
|
||||
|
||||
@@ -781,11 +781,13 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
>
|
||||
<StyledIconBase
|
||||
className="panelWarningIcon"
|
||||
data-testid="warningIcon"
|
||||
iconName="WarningSolid"
|
||||
key=".0:$.0"
|
||||
>
|
||||
<IconBase
|
||||
className="panelWarningIcon"
|
||||
data-testid="warningIcon"
|
||||
iconName="WarningSolid"
|
||||
styles={[Function]}
|
||||
theme={
|
||||
@@ -1066,6 +1068,7 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
aria-hidden={true}
|
||||
className="panelWarningIcon root-142"
|
||||
data-icon-name="WarningSolid"
|
||||
data-testid="warningIcon"
|
||||
>
|
||||
|
||||
</i>
|
||||
@@ -1077,13 +1080,14 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
>
|
||||
<Text
|
||||
className="panelWarningErrorMessage"
|
||||
data-testid="panelmessage"
|
||||
variant="small"
|
||||
>
|
||||
<span
|
||||
className="panelWarningErrorMessage css-143"
|
||||
data-testid="panelmessage"
|
||||
>
|
||||
Warning! The action you are about to take cannot be undone. Continuing will permanently delete this resource and all of its children resources.
|
||||
|
||||
</span>
|
||||
</Text>
|
||||
</span>
|
||||
@@ -1786,11 +1790,15 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
className="panelFooter"
|
||||
>
|
||||
<CustomizedPrimaryButton
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
text="OK"
|
||||
type="submit"
|
||||
>
|
||||
<PrimaryButton
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
text="OK"
|
||||
theme={
|
||||
@@ -2069,6 +2077,8 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
type="submit"
|
||||
>
|
||||
<CustomizedDefaultButton
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onRenderDescription={[Function]}
|
||||
primary={true}
|
||||
@@ -2349,6 +2359,8 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
type="submit"
|
||||
>
|
||||
<DefaultButton
|
||||
ariaLabel="OK"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onRenderDescription={[Function]}
|
||||
primary={true}
|
||||
@@ -2629,7 +2641,9 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
type="submit"
|
||||
>
|
||||
<BaseButton
|
||||
ariaLabel="OK"
|
||||
baseClassName="ms-Button"
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onRenderDescription={[Function]}
|
||||
primary={true}
|
||||
@@ -3455,8 +3469,10 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
|
||||
variantClassName="ms-Button--primary"
|
||||
>
|
||||
<button
|
||||
aria-label="OK"
|
||||
className="ms-Button ms-Button--primary root-156"
|
||||
data-is-focusable={true}
|
||||
data-testid="submit"
|
||||
id="sidePanelOkButton"
|
||||
onClick={[Function]}
|
||||
onKeyDown={[Function]}
|
||||
|
||||
Reference in New Issue
Block a user