Skip to content

Commit 7711a65

Browse files
test: preserve full separation scenario
1 parent a92706b commit 7711a65

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

packages/app/e2e/separate.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ test("separates a clip fully client-side", async ({ page }) => {
1919
).toHaveCount(2);
2020
await page.setInputFiles("#file", FIXTURE);
2121
await expect(page.locator("#audio-status")).toContainText("Decoded: 2.00s");
22-
await page.selectOption("#twoStems", "bass");
2322

2423
const downloadPromise = page.waitForEvent("download");
2524
await page.click("#run");
@@ -37,11 +36,12 @@ test("separates a clip fully client-side", async ({ page }) => {
3736
expect(download.suggestedFilename()).toBe("sine-2s_wav.stems.zip");
3837

3938
const stems = page.locator("#stems > div");
40-
await expect(stems).toHaveCount(2);
41-
await expect(stems.nth(0)).toContainText("no_bass");
42-
await expect(stems.nth(1)).toContainText("bass");
43-
await expect(page.locator("#stems audio")).toHaveCount(2);
44-
await expect(page.locator("#stems a")).toHaveCount(2);
39+
await expect(stems).toHaveCount(4);
40+
for (const name of ["drums", "bass", "other", "vocals"]) {
41+
await expect(page.locator("#stems")).toContainText(name);
42+
}
43+
await expect(page.locator("#stems audio")).toHaveCount(4);
44+
await expect(page.locator("#stems a")).toHaveCount(4);
4545
await expect(
4646
page.getByRole("link", { name: "Download ZIP" }),
4747
).toHaveAttribute("download", "sine-2s_wav.stems.zip");

0 commit comments

Comments
 (0)