Adaptation for some tests where use add label functionality.

main
Kruchinin 5 years ago
parent 69e4de04e0
commit e0c0a402be

@ -1,8 +1,6 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
@ -90,17 +88,11 @@ context('Actions on polygon', () => {
before(() => {
cy.openTask(taskName);
cy.addNewLabel(newLabelName);
cy.openJob();
});
describe(`Testing case "${caseId}"`, () => {
it('Add new label', () => {
cy.contains('button', 'Add label').click();
cy.get('[placeholder="Label name"]').type(newLabelName);
cy.contains('button', 'Done').click();
});
it('Open a job', () => {
cy.openJob();
});
it('Draw a polygon shape, track', () => {
cy.createPolygon(createPolygonShape);
cy.createPolygon(createPolygonTrack);

@ -1,9 +1,7 @@
/* eslint-disable no-undef */
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
@ -85,17 +83,11 @@ context('Actions on polylines', () => {
before(() => {
cy.openTask(taskName);
cy.addNewLabel(newLabelName);
cy.openJob();
});
describe(`Testing case "${caseId}"`, () => {
it('Add new label', () => {
cy.contains('button', 'Add label').click();
cy.get('[placeholder="Label name"]').type(newLabelName);
cy.contains('button', 'Done').click();
});
it('Open a job', () => {
cy.openJob();
});
it('Draw a polylines shape, track', () => {
cy.createPolyline(createPolylinesShape);
cy.createPolyline(createPolylinesTrack);

@ -1,8 +1,6 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
@ -84,17 +82,11 @@ context('Actions on points', () => {
before(() => {
cy.openTask(taskName);
cy.addNewLabel(newLabelName);
cy.openJob();
});
describe(`Testing case "${caseId}"`, () => {
it('Add new label', () => {
cy.contains('button', 'Add label').click();
cy.get('[placeholder="Label name"]').type(newLabelName);
cy.contains('button', 'Done').click();
});
it('Open a job', () => {
cy.openJob();
});
it('Draw a points shape, track', () => {
cy.createPoint(createPointsShape);
cy.createPoint(createPointsTrack);

@ -1,8 +1,6 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />

@ -1,8 +1,6 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
@ -82,17 +80,11 @@ context('Actions on rectangle', () => {
before(() => {
cy.openTask(taskName);
cy.addNewLabel(newLabelName);
cy.openJob();
});
describe(`Testing case "${caseId}"`, () => {
it('Add new label', () => {
cy.contains('button', 'Add label').click();
cy.get('[placeholder="Label name"]').type(newLabelName);
cy.contains('button', 'Done').click();
});
it('Open a job', () => {
cy.openJob();
});
it('Draw a rectangle shape in two ways (by 2 points, by 4 points)', () => {
cy.createRectangle(createRectangleShape2Points);
cy.createRectangle(createRectangleShape4Points);

@ -1,8 +1,6 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
@ -82,17 +80,11 @@ context('Actions on Cuboid', () => {
before(() => {
cy.openTask(taskName);
cy.addNewLabel(newLabelName);
cy.openJob();
});
describe(`Testing case "${caseId}"`, () => {
it('Add new label', () => {
cy.contains('button', 'Add label').click();
cy.get('[placeholder="Label name"]').type(newLabelName);
cy.contains('button', 'Done').click();
});
it('Open a job', () => {
cy.openJob();
});
it('Draw a Cuboid shape in two ways (From rectangle, by 4 points)', () => {
cy.createCuboid(createCuboidShape2Points);
cy.createCuboid(createCuboidShape4Points);

@ -1,8 +1,6 @@
/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
@ -32,9 +30,7 @@ context('Check if the new label reflects in the options', () => {
cy.url().should('include', '/tasks').and('not.contain', '/jobs');
});
it('Add new label', () => {
cy.contains('button', 'Add label').click();
cy.get('[placeholder="Label name"]').type(newLabelName);
cy.contains('button', 'Done').click();
cy.addNewLabel(newLabelName);
});
it('Open the job again', () => {
cy.openJob();

Loading…
Cancel
Save