From e375c70f36ba40c5712496b6676ad920ac35240e Mon Sep 17 00:00:00 2001 From: Dmitry Kruchinin Date: Fri, 10 Dec 2021 13:16:54 +0300 Subject: [PATCH] Adding test to check "Smooth image" option (#4015) Co-authored-by: dvkruchinin --- .../case_110_settings_smooth_image_option.js | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/cypress/integration/actions_tasks/case_110_settings_smooth_image_option.js diff --git a/tests/cypress/integration/actions_tasks/case_110_settings_smooth_image_option.js b/tests/cypress/integration/actions_tasks/case_110_settings_smooth_image_option.js new file mode 100644 index 000000000000..1fcfdd28fb45 --- /dev/null +++ b/tests/cypress/integration/actions_tasks/case_110_settings_smooth_image_option.js @@ -0,0 +1,28 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +/// + +import { taskName } from '../../support/const'; + +context('Settings. "Smooth image" option.', () => { + const caseId = '110'; + + before(() => { + cy.openTaskJob(taskName); + }); + + describe(`Testing case "${caseId}"`, () => { + it('Check "Smooth image" option.', () => { + cy.get('#cvat_canvas_background').should('not.have.class', 'cvat_canvas_pixelized'); + cy.openSettings(); + cy.get('.cvat-player-settings-smooth-image-checkbox') + .find('[type="checkbox"]') + .should('be.checked') + .click() + .should('not.be.checked'); + cy.get('#cvat_canvas_background').should('have.class', 'cvat_canvas_pixelized'); + }); + }); +});