diff --git a/tests/cypress/integration/actions_tasks_objects/issue_2230_maintenance_popover_visibility.js b/tests/cypress/integration/actions_tasks_objects/issue_2230_maintenance_popover_visibility.js new file mode 100644 index 00000000..176b9087 --- /dev/null +++ b/tests/cypress/integration/actions_tasks_objects/issue_2230_maintenance_popover_visibility.js @@ -0,0 +1,28 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +/// + +import { taskName } from '../../support/const'; + +context('Check maintenance of popups visibility.', () => { + const issueId = '2230'; + + before(() => { + cy.openTaskJob(taskName); + }); + + describe(`Testing issue "${issueId}"`, () => { + it('Open a popover for draw an object and apply the "mouseout" event to it. The popover be visible.', () => { + cy.interactControlButton('draw-rectangle'); + cy.get('.cvat-draw-rectangle-popover-visible').trigger('mouseout').wait(500); + cy.get('.cvat-draw-rectangle-popover-visible').should('exist'); + }); + + it('Click to another element. The popover hidden.', () => { + cy.get('.cvat-canvas-container').click(); + cy.get('.cvat-draw-rectangle-popover-visible').should('not.exist'); + }); + }); +});