Cypress test for issue 2603.

main
Kruchinin 5 years ago
parent d70796db03
commit 0f6e42ec64

@ -0,0 +1,33 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
import { taskName } from '../../support/const';
context('Draw a point shape, specify one point', () => {
const issueId = '2306';
const createPointsShape = {
type: 'Shape',
switchLabel: false,
pointsMap: [
{ x: 500, y: 200 },
],
numberOfPoints: 1,
};
before(() => {
cy.openTaskJob(taskName);
});
describe(`Testing case "${issueId}"`, () => {
it('Draw a point shape, specify one point. Drag cursor.', () => {
cy.createPoint(createPointsShape);
cy.get('.cvat-canvas-container').trigger('mousemove');
// Test fail before fix with error:
// The following error originated from your application code, not from Cypress.
// > Cannot read property 'each' of undefined.
});
});
});
Loading…
Cancel
Save