mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-06 14:26:28 +00:00
Fix (ui): Flaky Advance Search test case (#21681)
* fixed flaky advance search * fixed advance search json searching
This commit is contained in:
parent
febd195bfd
commit
1e9d229301
@ -257,6 +257,9 @@ export const fillRule = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
await dropdownInput.click();
|
await dropdownInput.click();
|
||||||
|
if (aggregateRes) {
|
||||||
|
await aggregateRes;
|
||||||
|
}
|
||||||
await dropdownInput.fill(searchData);
|
await dropdownInput.fill(searchData);
|
||||||
|
|
||||||
if (aggregateRes) {
|
if (aggregateRes) {
|
||||||
@ -534,9 +537,10 @@ export const checkAddRuleOrGroupWithOperator = async (
|
|||||||
if (field.id !== 'Column' && operator === 'AND') {
|
if (field.id !== 'Column' && operator === 'AND') {
|
||||||
const res = await searchRes;
|
const res = await searchRes;
|
||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
|
const hits = json.hits.hits;
|
||||||
|
|
||||||
expect(JSON.stringify(json)).toContain(searchCriteria1);
|
expect(JSON.stringify(hits)).toContain(searchCriteria1);
|
||||||
expect(JSON.stringify(json)).not.toContain(searchCriteria2);
|
expect(JSON.stringify(hits)).not.toContain(searchCriteria2);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user