Skip to content

Commit 8bd4d29

Browse files
hi-ogawa-agentOpenCode
andcommitted
feat: make stem output the primary app choice
Co-authored-by: OpenCode <noreply@opencode.ai>
1 parent fb17a3c commit 8bd4d29

4 files changed

Lines changed: 234 additions & 124 deletions

File tree

packages/app/e2e/model-files.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ test("coordinates individual model file slots", async ({ page }) => {
3131
page.getByTestId("model-file-slot").getByText("Ready"),
3232
).toHaveCount(2);
3333

34+
await page.getByText("Advanced settings", { exact: true }).click();
3435
await page.locator("#model").selectOption("htdemucs_ft");
3536
await expect(page.getByTestId("model-file-slot")).toHaveCount(5);
3637
await expect(page.getByLabel("Select dft.bin").locator("..")).toContainText(

packages/app/e2e/preferences.spec.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ test("restores and updates configuration preferences", async ({ page }) => {
1515
await page.goto("/");
1616

1717
await expect(page.locator("#model")).toHaveValue("htdemucs_ft");
18-
await expect(page.locator("#twoStems")).toHaveValue("bass");
18+
await expect(
19+
page.getByRole("radio", { name: /Bass \+ backing/ }),
20+
).toBeChecked();
1921
await expect(page.locator("#method")).toHaveValue("minus");
2022
await expect(page.locator("#method")).toBeEnabled();
2123
await expect(page.locator("#outputSummary")).toContainText(
@@ -24,7 +26,7 @@ test("restores and updates configuration preferences", async ({ page }) => {
2426
await expect(page.locator("#shifts")).toHaveValue("3");
2527
await expect(page.getByLabel("Select htdemucs_ft_bass.onnx")).toBeAttached();
2628

27-
await page.locator("#twoStems").selectOption("");
29+
await page.getByRole("radio", { name: /Four stems/ }).check();
2830
await expect(page.locator("#method")).toBeDisabled();
2931
await expect(page.locator("#outputSummary")).toContainText(
3032
"Creates vocals.wav, drums.wav, bass.wav, and other.wav.",
@@ -35,3 +37,11 @@ test("restores and updates configuration preferences", async ({ page }) => {
3537
)
3638
.toContain('"twoStems":null');
3739
});
40+
41+
test("uses the default output configuration", async ({ page }) => {
42+
await page.goto("/");
43+
44+
await expect(page.getByRole("radio", { name: /Four stems/ })).toBeChecked();
45+
await expect(page.locator("#method")).toHaveValue("minus");
46+
await expect(page.locator("#method")).toBeDisabled();
47+
});

0 commit comments

Comments
 (0)