You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcustomMenuText=screen.queryByText('Click Me! I am a button for custom menu');
79
-
expect(customMenuText).not.toBeInTheDocument();
76
+
awaitwaitForLoadingDisappear();
77
+
awaitwaitFor(()=>{
78
+
constcustomMenuText=screen.queryByText('Click Me! I am a button for custom menu');
79
+
expect(customMenuText).not.toBeInTheDocument();
80
+
});
81
+
});
82
+
83
+
it('should render loading text correctly (constantly)',async()=>{
84
+
consterrorHandler=vi.fn();
85
+
consoleError.mockImplementation(errorHandler);
86
+
doCustomMenuUnMock();
87
+
setup();
88
+
constloading=screen.getByText('Loading...');
89
+
expect(loading).toBeInTheDocument();
90
+
awaitwaitFor(()=>{
91
+
expect(errorHandler).toHaveBeenCalledWith(
92
+
`[Custom Menu] Error loading custom menu Failed to load url /custom/customMenuFileName.js (resolved id: /custom/customMenuFileName.js). Does the file exist?`
0 commit comments