mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 03:59:12 +00:00
Minor: fixed test case and mysql query bug (#17205)
This commit is contained in:
parent
10040a2e8d
commit
b9e57c71e8
@ -119,7 +119,7 @@ test('Table difference test case', async ({ page }) => {
|
||||
await test.step('Delete', async () => {
|
||||
await deleteTestCase(page, testCase.name);
|
||||
});
|
||||
} catch (error) {
|
||||
} finally {
|
||||
await table1.delete(apiContext);
|
||||
await table2.delete(apiContext);
|
||||
|
||||
@ -212,7 +212,7 @@ test('Custom SQL Query', async ({ page }) => {
|
||||
await test.step('Delete', async () => {
|
||||
await deleteTestCase(page, testCase.name);
|
||||
});
|
||||
} catch (error) {
|
||||
} finally {
|
||||
await table.delete(apiContext);
|
||||
await afterAction();
|
||||
}
|
||||
|
||||
@ -44,6 +44,7 @@ import {
|
||||
} from '../../../utils/EntityUtils';
|
||||
import { getEntityFQN } from '../../../utils/FeedUtils';
|
||||
import { generateFormFields } from '../../../utils/formUtils';
|
||||
import { isValidJSONString } from '../../../utils/StringsUtils';
|
||||
import { showErrorToast, showSuccessToast } from '../../../utils/ToastUtils';
|
||||
import Loader from '../../common/Loader/Loader';
|
||||
import RichTextEditor from '../../common/RichTextEditor/RichTextEditor';
|
||||
@ -144,7 +145,10 @@ const EditTestCaseModal: React.FC<EditTestCaseModalProps> = ({
|
||||
(definition) => definition.name === curr.name
|
||||
);
|
||||
|
||||
if (param?.dataType === TestDataType.Array) {
|
||||
if (
|
||||
param?.dataType === TestDataType.Array &&
|
||||
isValidJSONString(curr.value)
|
||||
) {
|
||||
const value = JSON.parse(curr.value || '[]');
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user