Skip to content

Commit

Permalink
Adding test to check "Smooth image" option (#4015)
Browse files Browse the repository at this point in the history
Co-authored-by: dvkruchinin <[email protected]>
  • Loading branch information
Dmitry Kruchinin and dvkruchinin authored Dec 10, 2021
1 parent e45d57b commit e375c70
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright (C) 2021 Intel Corporation
//
// SPDX-License-Identifier: MIT

/// <reference types="cypress" />

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');
});
});
});

0 comments on commit e375c70

Please sign in to comment.