Skip to content

Commit bd6b6e0

Browse files
committed
test: align visible elements component spec
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> (cherry picked from commit a30c774)
1 parent 1bf1f8b commit bd6b6e0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/tests/components/Request/VisibleElements.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ describe('VisibleElements Component - Business Rules', () => {
431431
id: 10,
432432
metadata: {
433433
d: [
434-
{ h: 841.89 },
435-
{ h: 600.0 },
436-
{ h: 792.0 },
434+
{ w: 595.28, h: 841.89 },
435+
{ w: 600.0, h: 600.0 },
436+
{ w: 612.0, h: 792.0 },
437437
],
438438
},
439439
},
@@ -446,15 +446,15 @@ describe('VisibleElements Component - Business Rules', () => {
446446

447447
it('returns undefined for non-existent file', () => {
448448
filesStore.files[1].files = [
449-
{ id: 10, metadata: { d: [{ h: 841.89 }] } },
449+
{ id: 10, metadata: { d: [{ w: 595.28, h: 841.89 }] } },
450450
]
451451

452452
expect(wrapper.vm.getPageHeightForFile(999, 1)).toBeUndefined()
453453
})
454454

455455
it('returns undefined for non-existent page', () => {
456456
filesStore.files[1].files = [
457-
{ id: 10, metadata: { d: [{ h: 841.89 }] } },
457+
{ id: 10, metadata: { d: [{ w: 595.28, h: 841.89 }] } },
458458
]
459459

460460
expect(wrapper.vm.getPageHeightForFile(10, 5)).toBeUndefined()
@@ -728,15 +728,15 @@ describe('VisibleElements Component - Business Rules', () => {
728728
{
729729
id: 10,
730730
name: 'doc1',
731-
metadata: { p: 2, d: [{ h: 100 }, { h: 100 }] },
731+
metadata: { p: 2, d: [{ w: 80, h: 100 }, { w: 80, h: 100 }] },
732732
signers: [
733733
{ signRequestId: 101, identifyMethods: [{ method: 'email', value: 'a', mandatory: 0 }] },
734734
],
735735
},
736736
{
737737
id: 20,
738738
name: 'doc2',
739-
metadata: { p: 1, d: [{ h: 200 }] },
739+
metadata: { p: 1, d: [{ w: 160, h: 200 }] },
740740
signers: [
741741
{ signRequestId: 202, identifyMethods: [{ method: 'email', value: 'b', mandatory: 0 }] },
742742
],

0 commit comments

Comments
 (0)