update sanpshort test case

This commit is contained in:
hardiknai-techm
2021-04-16 15:59:48 +05:30
parent e17fe25292
commit ba25eea41e
5 changed files with 1579 additions and 1622 deletions

View File

@@ -15,7 +15,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
} }
} }
> >
<GenericRightPaneComponent <RightPaneForm
container={ container={
Object { Object {
"findSelectedCollection": [Function], "findSelectedCollection": [Function],
@@ -69,6 +69,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
<CustomizedIconButton <CustomizedIconButton
ariaLabel="Close pane" ariaLabel="Close pane"
className="closePaneBtn" className="closePaneBtn"
data-testid="closePaneBtn"
iconProps={ iconProps={
Object { Object {
"iconName": "Cancel", "iconName": "Cancel",
@@ -81,6 +82,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
<IconButton <IconButton
ariaLabel="Close pane" ariaLabel="Close pane"
className="closePaneBtn" className="closePaneBtn"
data-testid="closePaneBtn"
iconProps={ iconProps={
Object { Object {
"iconName": "Cancel", "iconName": "Cancel",
@@ -367,6 +369,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
ariaLabel="Close pane" ariaLabel="Close pane"
baseClassName="ms-Button" baseClassName="ms-Button"
className="closePaneBtn" className="closePaneBtn"
data-testid="closePaneBtn"
iconProps={ iconProps={
Object { Object {
"iconName": "Cancel", "iconName": "Cancel",
@@ -1082,6 +1085,7 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
aria-label="Close pane" aria-label="Close pane"
className="ms-Button ms-Button--icon closePaneBtn root-140" className="ms-Button ms-Button--icon closePaneBtn root-140"
data-is-focusable={true} data-is-focusable={true}
data-testid="closePaneBtn"
onClick={[Function]} onClick={[Function]}
onKeyDown={[Function]} onKeyDown={[Function]}
onKeyPress={[Function]} onKeyPress={[Function]}
@@ -1121,39 +1125,17 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
</IconButton> </IconButton>
</CustomizedIconButton> </CustomizedIconButton>
</div> </div>
<div <PanelInfoErrorComponent
aria-live="assertive" formError={false}
className="warningErrorContainer" message=""
hidden={true} messageType="error"
> openNotificationConsole={[Function]}
<div showErrorDetails={false}
className="warningErrorContent"
>
<span>
<img
alt="Error"
className="paneErrorIcon"
src=""
/> />
</span> <form
<span className="panelFormWrapper"
className="warningErrorDetailsLinkContainer" onSubmit={[Function]}
> >
<span
className="formErrors"
title=""
/>
<a
className="errorLink"
hidden={true}
onClick={[Function]}
role="link"
>
More details
</a>
</span>
</div>
</div>
<div <div
className="panelFormWrapper" className="panelFormWrapper"
> >
@@ -1855,35 +1837,23 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
</div> </div>
</div> </div>
</div> </div>
<div <PanelFooterComponent
className="paneFooter" buttonLabel="OK"
> >
<div <div
className="leftpanel-okbut" className="panelFooter"
> >
<CustomizedPrimaryButton <CustomizedPrimaryButton
ariaLabel="Submit" ariaLabel="OK"
className="genericPaneSubmitBtn" data-testid="submit"
onClick={[Function]} id="sidePanelOkButton"
style={
Object {
"visibility": "visible",
}
}
tabIndex={0}
text="OK" text="OK"
title="Submit" type="submit"
> >
<PrimaryButton <PrimaryButton
ariaLabel="Submit" ariaLabel="OK"
className="genericPaneSubmitBtn" data-testid="submit"
onClick={[Function]} id="sidePanelOkButton"
style={
Object {
"visibility": "visible",
}
}
tabIndex={0}
text="OK" text="OK"
theme={ theme={
Object { Object {
@@ -2158,20 +2128,14 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
}, },
} }
} }
title="Submit" type="submit"
> >
<CustomizedDefaultButton <CustomizedDefaultButton
ariaLabel="Submit" ariaLabel="OK"
className="genericPaneSubmitBtn" data-testid="submit"
onClick={[Function]} id="sidePanelOkButton"
onRenderDescription={[Function]} onRenderDescription={[Function]}
primary={true} primary={true}
style={
Object {
"visibility": "visible",
}
}
tabIndex={0}
text="OK" text="OK"
theme={ theme={
Object { Object {
@@ -2446,20 +2410,14 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
}, },
} }
} }
title="Submit" type="submit"
> >
<DefaultButton <DefaultButton
ariaLabel="Submit" ariaLabel="OK"
className="genericPaneSubmitBtn" data-testid="submit"
onClick={[Function]} id="sidePanelOkButton"
onRenderDescription={[Function]} onRenderDescription={[Function]}
primary={true} primary={true}
style={
Object {
"visibility": "visible",
}
}
tabIndex={0}
text="OK" text="OK"
theme={ theme={
Object { Object {
@@ -2734,21 +2692,16 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
}, },
} }
} }
title="Submit" type="submit"
> >
<BaseButton <BaseButton
ariaLabel="Submit" ariaLabel="OK"
baseClassName="ms-Button" baseClassName="ms-Button"
className="genericPaneSubmitBtn" data-testid="submit"
onClick={[Function]} id="sidePanelOkButton"
onRenderDescription={[Function]} onRenderDescription={[Function]}
primary={true} primary={true}
split={false} split={false}
style={
Object {
"visibility": "visible",
}
}
styles={ styles={
Object { Object {
"description": Object { "description": Object {
@@ -3292,7 +3245,6 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
}, },
} }
} }
tabIndex={0}
text="OK" text="OK"
theme={ theme={
Object { Object {
@@ -3567,27 +3519,22 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
}, },
} }
} }
title="Submit" type="submit"
variantClassName="ms-Button--primary" variantClassName="ms-Button--primary"
> >
<button <button
aria-label="Submit" aria-label="OK"
className="ms-Button ms-Button--primary genericPaneSubmitBtn root-166" className="ms-Button ms-Button--primary root-166"
data-is-focusable={true} data-is-focusable={true}
data-testid="submit"
id="sidePanelOkButton"
onClick={[Function]} onClick={[Function]}
onKeyDown={[Function]} onKeyDown={[Function]}
onKeyPress={[Function]} onKeyPress={[Function]}
onKeyUp={[Function]} onKeyUp={[Function]}
onMouseDown={[Function]} onMouseDown={[Function]}
onMouseUp={[Function]} onMouseUp={[Function]}
style={ type="submit"
Object {
"visibility": "visible",
}
}
tabIndex={0}
title="Submit"
type="button"
> >
<span <span
className="ms-Button-flexContainer flexContainer-141" className="ms-Button-flexContainer flexContainer-141"
@@ -3613,19 +3560,11 @@ exports[`Delete Collection Confirmation Pane submit() should call delete collect
</PrimaryButton> </PrimaryButton>
</CustomizedPrimaryButton> </CustomizedPrimaryButton>
</div> </div>
</div> </PanelFooterComponent>
</div> </form>
<div
className="dataExplorerLoaderContainer dataExplorerPaneLoaderContainer"
hidden={true}
>
<img
className="dataExplorerLoader"
src=""
/>
</div> </div>
</div> </div>
</div> </div>
</GenericRightPaneComponent> </RightPaneForm>
</DeleteCollectionConfirmationPanel> </DeleteCollectionConfirmationPanel>
`; `;

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Load Query Pane should render Default properly 1`] = ` exports[`Load Query Pane should render Default properly 1`] = `
<RightPaneWrapper <RightPaneForm
closePanel={[Function]} closePanel={[Function]}
container={ container={
Explorer { Explorer {
@@ -3588,5 +3588,5 @@ exports[`Load Query Pane should render Default properly 1`] = `
</div> </div>
</div> </div>
</div> </div>
</RightPaneWrapper> </RightPaneForm>
`; `;

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Settings Pane should render Default properly 1`] = ` exports[`Settings Pane should render Default properly 1`] = `
<GenericRightPaneComponent <RightPaneForm
container={ container={
Explorer { Explorer {
"_closeModalDialog": [Function], "_closeModalDialog": [Function],
@@ -884,11 +884,11 @@ exports[`Settings Pane should render Default properly 1`] = `
</div> </div>
</div> </div>
</div> </div>
</GenericRightPaneComponent> </RightPaneForm>
`; `;
exports[`Settings Pane should render Gremlin properly 1`] = ` exports[`Settings Pane should render Gremlin properly 1`] = `
<GenericRightPaneComponent <RightPaneForm
container={ container={
Explorer { Explorer {
"_closeModalDialog": [Function], "_closeModalDialog": [Function],
@@ -1696,5 +1696,5 @@ exports[`Settings Pane should render Gremlin properly 1`] = `
</div> </div>
</div> </div>
</div> </div>
</GenericRightPaneComponent> </RightPaneForm>
`; `;

View File

@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Upload Items Pane should render Default properly 1`] = ` exports[`Upload Items Pane should render Default properly 1`] = `
<GenericRightPaneComponent <RightPaneForm
container={ container={
Explorer { Explorer {
"_closeModalDialog": [Function], "_closeModalDialog": [Function],
@@ -766,8 +766,10 @@ exports[`Upload Items Pane should render Default properly 1`] = `
multiple={true} multiple={true}
onUpload={[Function]} onUpload={[Function]}
tabIndex={0} 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> </div>
</GenericRightPaneComponent> </RightPaneForm>
`; `;

View File

@@ -781,11 +781,13 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
> >
<StyledIconBase <StyledIconBase
className="panelWarningIcon" className="panelWarningIcon"
data-testid="warningIcon"
iconName="WarningSolid" iconName="WarningSolid"
key=".0:$.0" key=".0:$.0"
> >
<IconBase <IconBase
className="panelWarningIcon" className="panelWarningIcon"
data-testid="warningIcon"
iconName="WarningSolid" iconName="WarningSolid"
styles={[Function]} styles={[Function]}
theme={ theme={
@@ -1066,6 +1068,7 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
aria-hidden={true} aria-hidden={true}
className="panelWarningIcon root-142" className="panelWarningIcon root-142"
data-icon-name="WarningSolid" data-icon-name="WarningSolid"
data-testid="warningIcon"
> >
</i> </i>
@@ -1077,13 +1080,14 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
> >
<Text <Text
className="panelWarningErrorMessage" className="panelWarningErrorMessage"
data-testid="panelmessage"
variant="small" variant="small"
> >
<span <span
className="panelWarningErrorMessage css-143" 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. Warning! The action you are about to take cannot be undone. Continuing will permanently delete this resource and all of its children resources.
</span> </span>
</Text> </Text>
</span> </span>
@@ -1786,11 +1790,15 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
className="panelFooter" className="panelFooter"
> >
<CustomizedPrimaryButton <CustomizedPrimaryButton
ariaLabel="OK"
data-testid="submit"
id="sidePanelOkButton" id="sidePanelOkButton"
text="OK" text="OK"
type="submit" type="submit"
> >
<PrimaryButton <PrimaryButton
ariaLabel="OK"
data-testid="submit"
id="sidePanelOkButton" id="sidePanelOkButton"
text="OK" text="OK"
theme={ theme={
@@ -2069,6 +2077,8 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
type="submit" type="submit"
> >
<CustomizedDefaultButton <CustomizedDefaultButton
ariaLabel="OK"
data-testid="submit"
id="sidePanelOkButton" id="sidePanelOkButton"
onRenderDescription={[Function]} onRenderDescription={[Function]}
primary={true} primary={true}
@@ -2349,6 +2359,8 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
type="submit" type="submit"
> >
<DefaultButton <DefaultButton
ariaLabel="OK"
data-testid="submit"
id="sidePanelOkButton" id="sidePanelOkButton"
onRenderDescription={[Function]} onRenderDescription={[Function]}
primary={true} primary={true}
@@ -2629,7 +2641,9 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
type="submit" type="submit"
> >
<BaseButton <BaseButton
ariaLabel="OK"
baseClassName="ms-Button" baseClassName="ms-Button"
data-testid="submit"
id="sidePanelOkButton" id="sidePanelOkButton"
onRenderDescription={[Function]} onRenderDescription={[Function]}
primary={true} primary={true}
@@ -3455,8 +3469,10 @@ exports[`Delete Database Confirmation Pane submit() Should call delete database
variantClassName="ms-Button--primary" variantClassName="ms-Button--primary"
> >
<button <button
aria-label="OK"
className="ms-Button ms-Button--primary root-156" className="ms-Button ms-Button--primary root-156"
data-is-focusable={true} data-is-focusable={true}
data-testid="submit"
id="sidePanelOkButton" id="sidePanelOkButton"
onClick={[Function]} onClick={[Function]}
onKeyDown={[Function]} onKeyDown={[Function]}