@@ -855,27 +855,27 @@ describe("cron view", () => {
|
855 | 855 | container, |
856 | 856 | ); |
857 | 857 | |
858 | | -expect(Array.from(container.querySelectorAll("datalist")).map((node) => node.id)).toEqual([ |
| 858 | +const suggestionListIds = [ |
859 | 859 | "cron-agent-suggestions", |
860 | 860 | "cron-model-suggestions", |
861 | 861 | "cron-thinking-suggestions", |
862 | 862 | "cron-tz-suggestions", |
863 | 863 | "cron-delivery-to-suggestions", |
864 | 864 | "cron-delivery-account-suggestions", |
865 | | -]); |
| 865 | +]; |
| 866 | +expect(Array.from(container.querySelectorAll("datalist")).map((node) => node.id)).toEqual( |
| 867 | +suggestionListIds, |
| 868 | +); |
866 | 869 | const inputLists = Array.from(container.querySelectorAll("input[list]")).map((node) => |
867 | 870 | node.getAttribute("list"), |
868 | 871 | ); |
869 | | -for (const expectedList of [ |
| 872 | +expect(inputLists).toEqual([ |
870 | 873 | "cron-agent-suggestions", |
871 | | -"cron-model-suggestions", |
872 | | -"cron-thinking-suggestions", |
873 | 874 | "cron-tz-suggestions", |
874 | 875 | "cron-delivery-to-suggestions", |
875 | 876 | "cron-delivery-account-suggestions", |
876 | | -]) { |
877 | | -expect(inputLists).toContain(expectedList); |
878 | | -} |
879 | | -expect(container.querySelectorAll("input[list]")).toHaveLength(6); |
| 877 | +"cron-model-suggestions", |
| 878 | +"cron-thinking-suggestions", |
| 879 | +]); |
880 | 880 | }); |
881 | 881 | }); |