@davoodmehraban89 / Factor-easy / commits / a592c43
Fork 0

سامانه صدور فاکتور و حسابداری

QA: assert right-edge RTL scrollbar owners

davoodmehraban89 committed Oct 2, 2026 at 12:25 UTC a592c43c2ca6b03d4bd829b36ec8806b720f2267
1 file changed +4 -4
scripts/shell-scrollbars.spec.js
+4 -4
@@ -8,12 +8,12 @@ test('desktop shell keeps three independent right-edge vertical scroll owners',a
8 const railChild=rail.firstElementChild,panelChild=panel.firstElementChild,workChild=work.firstElementChild;
9 return {
10 bodyOverflowY:cs(document.body).overflowY,
11 - rail:{overflowY:cs(rail).overflowY,direction:cs(rail).direction,childDirection:railChild?cs(railChild).direction:null},
12 - panel:{overflowY:cs(panel).overflowY,direction:cs(panel).direction,childDirection:panelChild?cs(panelChild).direction:null},
13 - work:{overflowY:cs(work).overflowY,direction:cs(work).direction,childDirection:workChild?cs(workChild).direction:null,height:cs(work).height}
11 + rail:{overflowY:cs(rail).overflowY,direction:cs(rail).direction},
12 + panel:{overflowY:cs(panel).overflowY,direction:cs(panel).direction},
13 + work:{overflowY:cs(work).overflowY,direction:cs(work).direction,height:cs(work).height}
14 };
15 });
16 expect(r.bodyOverflowY).toBe('hidden');
17 - for(const x of [r.rail,r.panel,r.work]){expect(x.overflowY).toBe('auto');expect(x.direction).toBe('ltr');expect(x.childDirection).toBe('rtl')}
17 + for(const x of [r.rail,r.panel,r.work]){expect(x.overflowY).toBe('auto');expect(x.direction).toBe('rtl')}
18 expect(parseFloat(r.work.height)).toBeGreaterThan(800);
19 });