mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
2b6cbf2590
* rename * save patch * fix everything * format * rm file * fix stuff * tweaks * tweaks * tweaks * tweaks * tweaks * asd * asd * asd * asd * asd * asd * asd * fix * Fix scripts/run_lite.sh and scripts/build_lite.sh (#9170) * fixes * fixes * asd * asd * asd * review comments * fiux types * fiux types * make fileexpolorer public * format * lint * lint --------- Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
23 lines
945 B
TypeScript
23 lines
945 B
TypeScript
import { test, expect } from "@self/tootils";
|
|
|
|
test("test theme builder changes are applied", async ({ page }) => {
|
|
await page.getByLabel("Theme", { exact: true }).click();
|
|
await page.getByLabel("Soft", { exact: true }).click();
|
|
await page.getByRole("button", { name: "Load Theme" }).click();
|
|
await page.getByRole("tab", { name: "Core Colors" }).click();
|
|
await page.getByLabel("Primary Hue").click();
|
|
await page.getByLabel("emerald").click();
|
|
|
|
const go_btn = page.getByRole("button", { name: "Go", exact: true });
|
|
await expect(go_btn).toHaveCSS(
|
|
"font-family",
|
|
'Montserrat, ui-sans-serif, "system-ui", sans-serif'
|
|
);
|
|
await expect(go_btn).toHaveCSS("background-color", "rgb(16, 185, 129)");
|
|
|
|
await page.getByRole("button", { name: "View Code ▼" }).click();
|
|
const code = page.getByLabel("Code input container");
|
|
await expect(code).toContainText("gr.themes.Soft");
|
|
await expect(code).toContainText('primary_hue="emerald"');
|
|
});
|