fix(editor): Make inputs in the filter component regular inputs by default (#8980)

This commit is contained in:
Elias Meire
2024-03-27 09:52:58 +01:00
committed by GitHub
parent ddc0f57116
commit 295b650fb8
3 changed files with 5 additions and 21 deletions

View File

@@ -24,16 +24,8 @@ describe('If Node (filter component)', () => {
// Add
ndv.actions.addFilterCondition(FILTER_PARAM_NAME);
ndv.getters
.filterConditionLeft(FILTER_PARAM_NAME, 0)
.find('.cm-content')
.first()
.type('first left');
ndv.getters
.filterConditionLeft(FILTER_PARAM_NAME, 1)
.find('.cm-content')
.first()
.type('second left');
ndv.getters.filterConditionLeft(FILTER_PARAM_NAME, 0).find('input').type('first left');
ndv.getters.filterConditionLeft(FILTER_PARAM_NAME, 1).find('input').type('second left');
ndv.actions.addFilterCondition(FILTER_PARAM_NAME);
ndv.getters.filterConditions(FILTER_PARAM_NAME).should('have.length', 3);
@@ -42,9 +34,8 @@ describe('If Node (filter component)', () => {
ndv.getters.filterConditions(FILTER_PARAM_NAME).should('have.length', 2);
ndv.getters
.filterConditionLeft(FILTER_PARAM_NAME, 0)
.find('.cm-content')
.first()
.should('have.text', 'second left');
.find('input')
.should('have.value', 'second left');
ndv.actions.removeFilterCondition(FILTER_PARAM_NAME, 1);
ndv.getters.filterConditions(FILTER_PARAM_NAME).should('have.length', 1);
});