-
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.
Cypress test. Maintenance of popups visibility. (#2838)
* Cypress test. Issue 2230. * Typo fix * rename the file
- Loading branch information
1 parent
105999b
commit 5bd61a4
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_objects/issue_2230_maintenance_popover_visibility.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('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'); | ||
}); | ||
}); | ||
}); |