GeezerVison is showing github.com — test(web): specify the initial model in each setup case · pingdotgg/t3code@380f6df
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/web/src/speech/useEnvironmentSpeechInput.browser.test.tsx +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -650,6 +650,7 @@ it.each([ | 650 | 650 | ["german"], | 651 | 651 | null, | 652 | 652 | false, | | 653 | + "english", | 653 | 654 | ], | 654 | 655 | [ | 655 | 656 | "selects the downloaded model after another client changed the selection", | @@ -665,27 +666,30 @@ it.each([ | 665 | 666 | [], | 666 | 667 | "The model is not ready. Try downloading it again.", | 667 | 668 | true, | | 669 | + "english", | 668 | 670 | ], | 669 | 671 | [ | 670 | 672 | "keeps setup open when an external cancellation leaves the weights installed", | 671 | 673 | "installed", | 672 | 674 | [], | 673 | 675 | "The model is not ready. Try downloading it again.", | 674 | 676 | true, | | 677 | + "english", | 675 | 678 | ], | 676 | 679 | [ | 677 | 680 | "reports a failed selection apart from the download", | 678 | 681 | "installed", | 679 | 682 | ["german"], | 680 | 683 | "The model downloaded, but this environment could not select it. Try again.", | 681 | 684 | false, | | 685 | + "english", | 682 | 686 | ], | 683 | 687 | ] as const)("%s", async (_, landedState, selected, error, cancelled, initialModelId) => { | 684 | 688 | setup({ destination: "env-a" }); | 685 | 689 | using _languages = vi.spyOn(navigator, "languages", "get").mockReturnValue(["de-DE"]); | 686 | 690 | mocks.selectionFails = error !== null && !cancelled; | 687 | 691 | mocks.modelState = "missing-model"; | 688 | | - mocks.statusModelId = initialModelId ?? "english"; | | 692 | + mocks.statusModelId = initialModelId; | 689 | 693 | mocks.models = [catalogModel("english", ["en"], true), catalogModel("german", ["de"], true)]; | 690 | 694 | mocks.download.mockImplementation(async () => { | 691 | 695 | mocks.models = [ | |
|