Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gally47 committed Oct 22, 2024
1 parent 7111303 commit 9d3a0d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,33 +376,4 @@ describe('<Widget />', () => {

expect(updateWidget).not.toHaveBeenCalledWith('widgetId', { config: { foo: 42 }, id: 'widgetId', type: 'dummy' });
});

it('shows an info when the widget accesses the Warm Tier', async () => {
render(<DummyWidget searchedIndices={
[
{
index_name: 'aloho_warm_1016',
begin: 1709715731270,
end: 1709716042255,
is_warm_tiered: true,
stream_names: ['aloho', 'mora'],
},
{
index_name: 'aloho_1017',
begin: 1709716042283,
end: 1709716342274,
is_warm_tiered: false,
stream_names: ['lumos'],
},
{
index_name: 'aloho_1018',
begin: 0,
end: 0,
is_warm_tiered: false,
stream_names: [],
}]
} />);

await screen.findByText('This widget is retrieving data from the Warm Tier and may take longer to load.');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const WidgetHeader = ({
<TitleInputWrapper>
<TitleInput type="text"
id="widget-title"
onChange={(e) => onRename(e.target.value)}
onChange={(e) => onRename && onRename(e.target.value)}
value={title}
required />
</TitleInputWrapper>
Expand Down

0 comments on commit 9d3a0d2

Please sign in to comment.