test(FN-4240): complete Step 4 — update workflow toggle styling tests
Fusion-Task-Id: FN-4240 Fusion-Task-Lineage: 16d72dbb-a601-476a-be5c-fc132193e1a6
This commit is contained in:
@@ -941,6 +941,16 @@ describe("WorkflowResultsTab", () => {
|
||||
});
|
||||
|
||||
|
||||
it("keeps the workflow edit toggle on button primitives instead of fixed icon-button sizing", () => {
|
||||
const baseCss = loadAllAppCssBaseOnly();
|
||||
const editToggleRule = baseCss.match(/\.workflow-results-edit-toggle\s*\{([^}]*)\}/)?.[1] ?? "";
|
||||
const buttonSmallRule = baseCss.match(/\.btn-sm\s*\{([^}]*)\}/)?.[1] ?? "";
|
||||
|
||||
expect(editToggleRule).not.toMatch(/\bwidth\s*:\s*28px\s*;/);
|
||||
expect(editToggleRule).not.toMatch(/\bheight\s*:\s*28px\s*;/);
|
||||
expect(buttonSmallRule).toMatch(/padding\s*:\s*(?!0(?:\s+0){0,3})[^;]+;/);
|
||||
});
|
||||
|
||||
it("allows workflow modal controls to wrap on mobile so the close button stays visible", () => {
|
||||
const css = loadAllAppCss();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user