-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test to check "Smooth image" option (#4015)
Co-authored-by: dvkruchinin <[email protected]>
- Loading branch information
1 parent
e45d57b
commit e375c70
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
tests/cypress/integration/actions_tasks/case_110_settings_smooth_image_option.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
}); | ||
}); | ||
}); |