mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
test(native-filters): Filter config modal test (#14245)
* test: add tests for filter bar * test: merge filter bar tests with master * test: add test for filter set * test: filter set tests * test: merge with master * test: fix tests for filter bar * test: filter config modal * test: add select filter * feat: filter config modal * lint: fix lint * lint: fix TS * test: test testWithId
This commit is contained in:
@@ -125,15 +125,3 @@ export const detectOS = () => {
|
||||
|
||||
return 'Unknown OS';
|
||||
};
|
||||
|
||||
// Using bem standard
|
||||
export const testWithId = (prefix, idOnly = false) => id => {
|
||||
if (!id) {
|
||||
return idOnly ? prefix : { 'data-test': prefix };
|
||||
}
|
||||
if (!prefix) {
|
||||
return idOnly ? id : { 'data-test': id };
|
||||
}
|
||||
const newId = `${prefix}__${id}`;
|
||||
return idOnly ? newId : { 'data-test': newId };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user