Skip to content

Commit

Permalink
Added persist image filters test (#6978)
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov authored Oct 12, 2023
1 parent a2d1c5f commit 97a079e
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ context('Canvas color settings feature', () => {
});
});
});
cy.get('.ant-tooltip').invoke('hide');
}

function checkSlidersValue(wrapper, slidersClassNames, expectedResult) {
Expand Down Expand Up @@ -113,5 +114,26 @@ context('Canvas color settings feature', () => {
'.cvat-image-setups-filters', filterSlidersClassNames, defaultValueInSettingFilters,
);
});

it('Check persisting image filters across jobs', () => {
const sliderAction = generateString(countActionMoveSlider, 'rightarrow');
const filterAction = generateString(countActionMoveFilterSlider, 'rightarrow');
applyStringAction(
'.cvat-canvas-image-setups-content', classNameSliders, sliderAction,
);
applyStringAction(
'.cvat-image-setups-filters', filterSlidersClassNames, filterAction,
);
cy.interactMenu('Open the task');
cy.openJob(1);
cy.get('.cvat-canvas-image-setups-trigger').click();
checkSlidersValue(
'.cvat-canvas-image-setups-content', classNameSliders, expectedResultInSetting,
);
checkSlidersValue(
'.cvat-image-setups-filters', filterSlidersClassNames, expectedResultInSettingFilters,
);
cy.get('.cvat-notification-notice-image-processing-error').should('not.exist');
});
});
});

0 comments on commit 97a079e

Please sign in to comment.