Skip to content

Commit

Permalink
tests: generate snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Oct 13, 2023
1 parent ad8846c commit ceec461
Show file tree
Hide file tree
Showing 3 changed files with 1,639 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`OrganizationContactPeopleForm should render correct structure 1`] = `
<DocumentFragment>
<form>
<div
class="row"
>
<div
class="col-xs-12"
>
<div
aria-live="assertive"
aria-relevant="additions"
class="sr-only"
tabindex="-1"
/>
<div
aria-rowcount="2"
class="mclContainer"
data-total-count="0"
id="contact-list"
role="grid"
style="position: relative; overflow: hidden; height: auto; width: 100%;"
tabindex="0"
>
<div
class="mclHeaderContainer"
>
<div
aria-rowindex="1"
class="mclHeaderRow"
role="row"
style="display: flex; width: 17px;"
>
<div
aria-sort="none"
class="mclHeader"
id="list-column-contactname"
role="columnheader"
style="flex: 0 0 auto;"
>
ui-organizations.contactPeople.name
</div>
<div
aria-sort="none"
class="mclHeader"
id="list-column-contactcategories"
role="columnheader"
style="flex: 0 0 auto;"
>
ui-organizations.contactPeople.categories
</div>
<div
aria-sort="none"
class="mclHeader"
id="list-column-contactemails"
role="columnheader"
style="flex: 0 0 auto;"
>
ui-organizations.contactPeople.emails
</div>
<div
aria-sort="none"
class="mclHeader"
id="list-column-notes"
role="columnheader"
style="flex: 0 0 auto;"
>
ui-organizations.contactPeople.note
</div>
<div
aria-sort="none"
class="mclHeader"
id="list-column-unassigncontact"
role="columnheader"
style="flex: 0 0 auto;"
/>
</div>
</div>
<div
class="mclScrollable"
style="position: static; width: 100%;"
>
<div
class="mclRowContainer"
role="rowgroup"
style="position: static;"
>
<div
aria-rowindex="2"
class="mclRowFormatterContainer"
data-row-index="row-0"
role="row"
style="position: static;"
>
<a
aria-label=""
class="mclRow mclIsOdd mclIsInteractive alignLastColToEnd"
data-row-inner="0"
href="/organizations/contacts/e0fb5df2-cdf1-11e8-a8d5-f2801f1b9fd1/view"
style="min-width: 0px;"
tabindex="0"
>
<div
class="mclCell mclCellStyle"
role="gridcell"
>
Brownstein, Carrie
</div>
<div
class="mclCell mclCellStyle"
role="gridcell"
/>
<div
class="mclCell mclCellStyle"
role="gridcell"
>
[email protected]
</div>
<div
class="mclCell mclCellStyle"
role="gridcell"
>
<span
class="text"
title="notes"
>
notes
</span>
</div>
<div
class="mclCell mclCellStyle"
role="gridcell"
>
<button
aria-label="ui-organizations.contacts.button.unassign"
class="button fieldControl align-end"
data-test-unassign-contact="true"
type="button"
>
<span
class="inner"
>
<span>
Icon
</span>
</span>
</button>
</div>
</a>
</div>
<div
class="mclEndOfListContainer"
data-end-of-list="1"
>
<div
class="mclCenteredContainer"
style="visibility: hidden; height: 0px; padding: 0px; width: 0px;"
>
<div
class="textCentered"
data-test-layout="true"
>
<div
class="mclEndOfList"
data-test-layout="true"
>
<span>
Icon
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<span
data-test-add-contact="true"
>
ui-organizations.contactPeople.noFindContactPlugin
</span>
</div>
</div>
</form>
<div />
</DocumentFragment>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`OrganizationInterfacesForm should render correct structure 1`] = `
<DocumentFragment>
<form>
<div
class="row"
>
<div
class="col-xs-12"
>
<div
aria-live="assertive"
aria-relevant="additions"
class="sr-only"
tabindex="-1"
/>
<div
aria-rowcount="2"
class="mclContainer"
data-total-count="0"
id="interface-list"
role="grid"
style="position: relative; overflow: hidden; height: auto; width: 100%;"
tabindex="0"
>
<div
class="mclHeaderContainer"
>
<div
aria-rowindex="1"
class="mclHeaderRow"
role="row"
style="display: flex; width: 17px;"
>
<div
aria-sort="none"
class="mclHeader"
id="list-column-interfacename"
role="columnheader"
style="flex: 0 0 auto;"
>
ui-organizations.interface.name
</div>
<div
aria-sort="none"
class="mclHeader"
id="list-column-interfaceurl"
role="columnheader"
style="flex: 0 0 auto;"
>
ui-organizations.interface.url
</div>
<div
aria-sort="none"
class="mclHeader"
id="list-column-unassigninterface"
role="columnheader"
style="flex: 0 0 auto;"
/>
</div>
</div>
<div
class="mclScrollable"
style="position: static; width: 100%;"
>
<div
class="mclRowContainer"
role="rowgroup"
style="position: static;"
>
<div
aria-rowindex="2"
class="mclRowFormatterContainer"
data-row-index="row-0"
role="row"
style="position: static;"
>
<a
aria-label=""
class="mclRow mclIsOdd mclIsInteractive alignLastColToEnd"
data-row-inner="0"
href="/organizations/interface/793b9d42-ae12-41d7-a36a-f33e5b9e82c5/view"
style="min-width: 0px;"
tabindex="0"
>
<div
class="mclCell mclCellStyle"
role="gridcell"
>
GOBI
</div>
</a>
<div
class="mclCell mclCellStyle"
role="gridcell"
>
<a
aria-label=""
class="mclRow mclIsOdd mclIsInteractive alignLastColToEnd"
data-row-inner="0"
href="/organizations/interface/793b9d42-ae12-41d7-a36a-f33e5b9e82c5/view"
style="min-width: 0px;"
tabindex="0"
/>
<a
class="root"
data-test-text-link="true"
href="www.gobi3.com"
rel="noopener noreferrer"
target="_blank"
>
www.gobi3.com
</a>
</div>
<div
class="mclCell mclCellStyle"
role="gridcell"
>
<button
aria-label="ui-organizations.interface.button.unassign"
class="button fieldControl align-end"
data-test-unassign-interface="true"
type="button"
>
<span
class="inner"
>
<span>
Icon
</span>
</span>
</button>
</div>
</div>
<div
class="mclEndOfListContainer"
data-end-of-list="1"
>
<div
class="mclCenteredContainer"
style="visibility: hidden; height: 0px; padding: 0px; width: 0px;"
>
<div
class="textCentered"
data-test-layout="true"
>
<div
class="mclEndOfList"
data-test-layout="true"
>
<span>
Icon
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<span
data-test-add-interface="true"
>
ui-organizations.interface.noFindInterfacePlugin
</span>
</div>
</div>
</form>
<div />
</DocumentFragment>
`;
Loading

0 comments on commit ceec461

Please sign in to comment.