chore(ci): fix numpy type errors and revert #22610 (#22782)

This commit is contained in:
Ville Brofeldt
2023-01-19 14:53:48 +02:00
committed by GitHub
parent 39c96d0568
commit 577ac81686
29 changed files with 373 additions and 196 deletions

View File

@@ -186,6 +186,27 @@ test('should render a create dataset infobox', async () => {
expect(infoboxText).toBeVisible();
});
test('should render a save dataset modal when "Create a dataset" is clicked', async () => {
const newProps = {
...props,
datasource: {
...datasource,
type: DatasourceType.Query,
},
};
render(<DatasourcePanel {...newProps} />, { useRedux: true, useDnd: true });
const createButton = await screen.findByRole('button', {
name: /create a dataset/i,
});
userEvent.click(createButton);
const saveDatasetModalTitle = screen.getByText(/save or overwrite dataset/i);
expect(saveDatasetModalTitle).toBeVisible();
});
test('should not render a save dataset modal when datasource is not query or dataset', async () => {
const newProps = {
...props,