♻️ Extract composite component wrapper

This commit is contained in:
Florian Schroedl
2025-10-01 14:15:34 +02:00
committed by Andrés Moya
parent 73222f22d0
commit d01df7738a
2 changed files with 145 additions and 105 deletions

View File

@@ -1006,10 +1006,17 @@ test.describe("Tokens: Themes modal", () => {
const referenceTabButton =
tokensUpdateCreateModal.getByTestId("reference-opt");
await referenceTabButton.click();
// Empty reference tab should be disabled
await expect(saveButton).toBeDisabled();
const compositeTabButton =
tokensUpdateCreateModal.getByTestId("composite-opt");
await compositeTabButton.click();
// Filled composite tab should be enabled
await expect(saveButton).toBeEnabled();
// Verify all values are preserved after switching tabs
await expect(fontSizeField).toHaveValue(originalValues.fontSize);
await expect(fontFamilyField).toHaveValue(originalValues.fontFamily);