💄 Fix tests nesting

This commit is contained in:
Andrés Moya
2025-10-31 17:01:59 +01:00
committed by Andrey Antukh
parent 5f22220a8b
commit a5e9f7229b

View File

@@ -972,8 +972,9 @@ test.describe("Tokens: Themes modal", () => {
tokenThemeUpdateCreateModal.getByText("Changed Group name"),
).toBeVisible();
});
});
test.describe("Tokens: Apply token", () => {
test.describe("Tokens: Apply token", () => {
// When deleting the "enable-token-color" flag, permanently remove this test.
test("User applies color token to a shape without tokens on design-tab", async ({
page,
@@ -1243,12 +1244,11 @@ test.describe("Tokens: Themes modal", () => {
const newToken = tokensSidebar.getByRole("button", {
name: newTokenTitle,
});
await expect(newToken).toBeVisible();
});
test("User adds shadow token with multiple shadows and applies it to shape", async ({
page,
}) => {
test("User adds shadow token with multiple shadows and applies it to shape", async ({ page, }) => {
const { tokensUpdateCreateModal, tokensSidebar, workspacePage, tokenContextMenuForToken } =
await setupTokensFile(page, { flags: ["enable-token-shadow"] });
@@ -1467,5 +1467,4 @@ test.describe("Tokens: Themes modal", () => {
await expect(shadowSection).toHaveCount(2);
});
});
});
});