You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
961 B
JavaScript
37 lines
961 B
JavaScript
// Copyright (C) 2020-2021 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
/// <reference types="cypress" />
|
|
|
|
import { taskName, labelName } from '../../support/const';
|
|
|
|
context('Check hide functionality (H)', () => {
|
|
const issueId = '1433';
|
|
const createRectangleShape2Points = {
|
|
points: 'By 2 Points',
|
|
type: 'Shape',
|
|
labelName,
|
|
firstX: 250,
|
|
firstY: 350,
|
|
secondX: 350,
|
|
secondY: 450,
|
|
};
|
|
|
|
before(() => {
|
|
cy.openTaskJob(taskName);
|
|
});
|
|
|
|
describe(`Testing issue "${issueId}"`, () => {
|
|
it('Object is hidden', () => {
|
|
const keyCodeH = 72;
|
|
cy.createRectangle(createRectangleShape2Points);
|
|
cy.get('#cvat_canvas_shape_1')
|
|
.trigger('mousemove')
|
|
.trigger('mouseover')
|
|
.trigger('keydown', { keyCode: keyCodeH, code: 'KeyH' })
|
|
.should('be.hidden');
|
|
});
|
|
});
|
|
});
|