Skip to content

Commit 3afff0c

Browse files
committed
test(e2e): make the drawer fixture overflow by a column's edge with the inline button
Claude-Session: https://claude.ai/code/session_01FEkQ5osPMA12JX9fGcBzR3 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cc391be commit 3afff0c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎ui/e2e/related-list-pinned-actions-width.spec.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const FIELDS = {
135135
};
136136
const ROWS = [1, 2, 3].map((i) => ({
137137
id: 'p' + i, name: 'Allocation ' + i, plan_date: '2026-11-0' + i, quantity: 10 * i, amount: 1250.5 * i,
138-
warehouse: 'Main warehouse', owner: 'Dana Smith', note: 'Ship with the next batch',
138+
warehouse: 'Main warehouse east', owner: 'Dana Smith', note: 'Ship with the next batch',
139139
status: i === 1 ? 'confirmed' : 'draft',
140140
}));
141141
const dataSource = {
@@ -349,12 +349,12 @@ test.describe('enlarged related list in a record drawer — the pinned Actions c
349349
await mount(page, c, 'th[data-column-key="status"]');
350350
const r = await readAtRest(page);
351351
report(testInfo, c, r);
352-
expect(r.folded, 'the inline button was not folded although the table overflows with it').toBe(true);
353-
expect(r.inlineButtons).toBe(0);
354-
expect(r.box.scrollWidth - r.box.clientWidth, 'the table still overflows the drawer').toBeLessThanOrEqual(1);
352+
expect(r.statusRight, 'the pinned Actions column covers part of Status at rest').toBeLessThanOrEqual(r.actions.left);
355353
expect(r.statusCellHit, `the Status cell is covered at rest by ${r.statusHitBy}`).toBe(true);
356354
expect(r.statusHeaderHit, 'the Status header is covered at rest').toBe(true);
357-
expect(r.statusRight).toBeLessThanOrEqual(r.actions.left);
355+
expect(r.box.scrollWidth - r.box.clientWidth, 'the table still overflows the drawer').toBeLessThanOrEqual(1);
356+
expect(r.folded, 'the inline button was not folded although the table overflows with it').toBe(true);
357+
expect(r.inlineButtons).toBe(0);
358358
await allocateFromMenu(page);
359359
});
360360
}

0 commit comments

Comments
 (0)