未验证 提交 5bd61a43 编写于 作者: D Dmitry Kruchinin 提交者: GitHub

Cypress test. Maintenance of popups visibility. (#2838)

* Cypress test. Issue 2230.

* Typo fix

* rename the file
上级 105999b5
// 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');
});
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册