mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
chore(deps-dev): bump fetch-mock from 11.1.5 to 12.6.0 in /superset-frontend/packages/superset-ui-core (#36662)
Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: hainenber <dotronghai96@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Evan Rusackas <evan@rusackas.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -181,7 +181,7 @@ test('fetches Superset annotation layer options', async () => {
|
||||
screen.getByRole('combobox', { name: 'Annotation layer value' }),
|
||||
);
|
||||
expect(await screen.findByText('Chart A')).toBeInTheDocument();
|
||||
expect(fetchMock.calls(nativeLayerApiRoute).length).toBe(1);
|
||||
expect(fetchMock.callHistory.calls(nativeLayerApiRoute).length).toBe(1);
|
||||
});
|
||||
|
||||
test('fetches chart options', async () => {
|
||||
@@ -197,7 +197,7 @@ test('fetches chart options', async () => {
|
||||
screen.getByRole('combobox', { name: 'Annotation layer value' }),
|
||||
);
|
||||
expect(await screen.findByText('Chart A')).toBeInTheDocument();
|
||||
expect(fetchMock.calls(chartApiRoute).length).toBe(1);
|
||||
expect(fetchMock.callHistory.calls(chartApiRoute).length).toBe(1);
|
||||
});
|
||||
|
||||
test('fetches chart on mount if value present', async () => {
|
||||
@@ -207,7 +207,7 @@ test('fetches chart on mount if value present', async () => {
|
||||
annotationType: ANNOTATION_TYPES_METADATA.EVENT.value,
|
||||
sourceType: 'Table',
|
||||
});
|
||||
expect(fetchMock.calls(chartApiWithIdRoute).length).toBe(1);
|
||||
expect(fetchMock.callHistory.calls(chartApiWithIdRoute).length).toBe(1);
|
||||
});
|
||||
|
||||
test('keeps apply disabled when missing required fields', async () => {
|
||||
|
||||
Reference in New Issue
Block a user