Skip to content

Commit

Permalink
tests: fix failing snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Feb 5, 2024
1 parent 9336bbf commit 1d3e59d
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ exports[`InvoiceDetails should render correct structure for Approved invoice 1`]
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 5;"
>
<div
aria-labelledby="accordion-toggle-button-information"
Expand Down Expand Up @@ -269,7 +269,7 @@ exports[`InvoiceDetails should render correct structure for Approved invoice 1`]
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 4;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceLines"
Expand Down Expand Up @@ -327,7 +327,7 @@ exports[`InvoiceDetails should render correct structure for Approved invoice 1`]
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-vendorDetails"
Expand Down Expand Up @@ -385,7 +385,7 @@ exports[`InvoiceDetails should render correct structure for Approved invoice 1`]
</div>
<div
class="content-wrap"
style="z-index: 1;"
style="z-index: 2;"
>
<div
aria-labelledby="accordion-toggle-button-extendedInformation"
Expand Down Expand Up @@ -670,7 +670,7 @@ exports[`InvoiceDetails should render correct structure for Cancelled invoice 1`
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 5;"
>
<div
aria-labelledby="accordion-toggle-button-information"
Expand Down Expand Up @@ -733,7 +733,7 @@ exports[`InvoiceDetails should render correct structure for Cancelled invoice 1`
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 4;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceLines"
Expand Down Expand Up @@ -791,7 +791,7 @@ exports[`InvoiceDetails should render correct structure for Cancelled invoice 1`
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-vendorDetails"
Expand Down Expand Up @@ -849,7 +849,7 @@ exports[`InvoiceDetails should render correct structure for Cancelled invoice 1`
</div>
<div
class="content-wrap"
style="z-index: 1;"
style="z-index: 2;"
>
<div
aria-labelledby="accordion-toggle-button-extendedInformation"
Expand Down Expand Up @@ -1134,7 +1134,7 @@ exports[`InvoiceDetails should render correct structure for Open invoice 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 5;"
>
<div
aria-labelledby="accordion-toggle-button-information"
Expand Down Expand Up @@ -1197,7 +1197,7 @@ exports[`InvoiceDetails should render correct structure for Open invoice 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 4;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceLines"
Expand Down Expand Up @@ -1255,7 +1255,7 @@ exports[`InvoiceDetails should render correct structure for Open invoice 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-vendorDetails"
Expand Down Expand Up @@ -1313,7 +1313,7 @@ exports[`InvoiceDetails should render correct structure for Open invoice 1`] = `
</div>
<div
class="content-wrap"
style="z-index: 1;"
style="z-index: 2;"
>
<div
aria-labelledby="accordion-toggle-button-extendedInformation"
Expand Down Expand Up @@ -1597,7 +1597,7 @@ exports[`InvoiceDetails should render correct structure for Paid invoice 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 5;"
>
<div
aria-labelledby="accordion-toggle-button-information"
Expand Down Expand Up @@ -1660,7 +1660,7 @@ exports[`InvoiceDetails should render correct structure for Paid invoice 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 4;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceLines"
Expand Down Expand Up @@ -1718,7 +1718,7 @@ exports[`InvoiceDetails should render correct structure for Paid invoice 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-vendorDetails"
Expand Down Expand Up @@ -1776,7 +1776,7 @@ exports[`InvoiceDetails should render correct structure for Paid invoice 1`] = `
</div>
<div
class="content-wrap"
style="z-index: 1;"
style="z-index: 2;"
>
<div
aria-labelledby="accordion-toggle-button-extendedInformation"
Expand Down Expand Up @@ -2061,7 +2061,7 @@ exports[`InvoiceDetails should render correct structure for Reviewed invoice 1`]
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 5;"
>
<div
aria-labelledby="accordion-toggle-button-information"
Expand Down Expand Up @@ -2124,7 +2124,7 @@ exports[`InvoiceDetails should render correct structure for Reviewed invoice 1`]
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 4;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceLines"
Expand Down Expand Up @@ -2182,7 +2182,7 @@ exports[`InvoiceDetails should render correct structure for Reviewed invoice 1`]
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-vendorDetails"
Expand Down Expand Up @@ -2240,7 +2240,7 @@ exports[`InvoiceDetails should render correct structure for Reviewed invoice 1`]
</div>
<div
class="content-wrap"
style="z-index: 1;"
style="z-index: 2;"
>
<div
aria-labelledby="accordion-toggle-button-extendedInformation"
Expand Down Expand Up @@ -2524,7 +2524,7 @@ exports[`InvoiceDetails should render correct structure for invoice with batch v
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 6;"
>
<div
aria-labelledby="accordion-toggle-button-information"
Expand Down Expand Up @@ -2587,7 +2587,7 @@ exports[`InvoiceDetails should render correct structure for invoice with batch v
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 5;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceLines"
Expand Down Expand Up @@ -2645,7 +2645,7 @@ exports[`InvoiceDetails should render correct structure for invoice with batch v
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 4;"
>
<div
aria-labelledby="accordion-toggle-button-vendorDetails"
Expand Down Expand Up @@ -2703,7 +2703,7 @@ exports[`InvoiceDetails should render correct structure for invoice with batch v
</div>
<div
class="content-wrap"
style="z-index: 1;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-extendedInformation"
Expand Down Expand Up @@ -2761,7 +2761,7 @@ exports[`InvoiceDetails should render correct structure for invoice with batch v
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 2;"
>
<div
aria-labelledby="accordion-toggle-button-batchVoucherExport"
Expand Down
30 changes: 17 additions & 13 deletions src/invoices/InvoiceForm/__snapshots__/InvoiceForm.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exports[`InvoiceForm component should render correct structure 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 2;"
style="z-index: 5;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceForm-information"
Expand Down Expand Up @@ -1117,24 +1117,28 @@ exports[`InvoiceForm component should render correct structure 1`] = `
data-test-col-note="true"
>
<div
class="textArea inputGroup"
class="textArea"
>
<label
class="label"
for="note"
>
ui-invoice.invoice.note
</label>
<textarea
aria-invalid="false"
class="formControl"
id="note"
name="note"
type="text"
/>
<div
role="alert"
/>
class="inputGroup"
>
<textarea
aria-invalid="false"
class="formControl"
id="note"
name="note"
type="text"
/>
<div
role="alert"
/>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -1186,7 +1190,7 @@ exports[`InvoiceForm component should render correct structure 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 4;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceForm-invoiceAdjustments"
Expand Down Expand Up @@ -1246,7 +1250,7 @@ exports[`InvoiceForm component should render correct structure 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 2;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceForm-vendorDetails"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exports[`InvoiceLineForm component should render correct structure 1`] = `
</div>
<div
class="content-wrap expanded"
style="z-index: 1;"
style="z-index: 3;"
>
<div
aria-labelledby="accordion-toggle-button-invoiceLineForm-information"
Expand Down
Loading

0 comments on commit 1d3e59d

Please sign in to comment.