Skip to content

Commit b1134d7

Browse files
committed
test(web): update workspace-tabs-chrome assertion for logical margin (#5549)
The chrome-mirroring fix migrates .workspace-tabs-traffic from physical margin-right to logical margin-inline-end so the traffic/window-controls region mirrors under dir=rtl. Update the style-guard assertion to match the new property name; the value (var(--app-chrome-traffic-margin)) is unchanged.
1 parent 5948d55 commit b1134d7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/web/tests/styles/workspace-tabs-chrome.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ describe('workspace tabs chrome styles', () => {
3737
const projectStrip = cssDeclarations(routinesCss, '.workspace-shell .workspace-tabs-strip');
3838

3939
expect(ruleValue(chrome, 'padding')).toBe('0 10px 0 8px');
40-
expect(ruleValue(traffic, 'margin-right')).toBe('var(--app-chrome-traffic-margin)');
40+
// Logical property (margin-inline-end) so the traffic/window-controls
41+
// region mirrors under dir=rtl. See #5549.
42+
expect(ruleValue(traffic, 'margin-inline-end')).toBe('var(--app-chrome-traffic-margin)');
4143
expect(ruleValue(projectChrome, 'padding')).toBe('0 8px 0 0');
4244
expect(ruleValue(projectStrip, 'align-items')).toBe('center');
4345
});

0 commit comments

Comments
 (0)