@@ -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 : / B a s s \+ b a c k i n g / } ) ,
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 : / F o u r s t e m s / } ) . 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 : / F o u r s t e m s / } ) ) . toBeChecked ( ) ;
45+ await expect ( page . locator ( "#method" ) ) . toHaveValue ( "minus" ) ;
46+ await expect ( page . locator ( "#method" ) ) . toBeDisabled ( ) ;
47+ } ) ;
0 commit comments