diff --git a/tests/cypress/integration/actions_tasks_objects/case_45_open_the_task_button.js b/tests/cypress/integration/actions_tasks_objects/case_45_open_the_task_button.js new file mode 100644 index 00000000..c5e14884 --- /dev/null +++ b/tests/cypress/integration/actions_tasks_objects/case_45_open_the_task_button.js @@ -0,0 +1,25 @@ +// Copyright (C) 2021 Intel Corporation +// +// SPDX-License-Identifier: MIT + +/// + +import { taskName } from '../../support/const'; + +context('Check "Open the task" button.', () => { + const caseId = '45'; + + before(() => { + cy.openTaskJob(taskName); + }); + + describe(`Testing case "${caseId}"`, () => { + it('Open a menu. Press "Open the task". CVAT navigate to the task page.', () => { + cy.interactMenu('Open the task'); + cy.get('.cvat-task-details').should('exist'); + cy.get('.cvat-task-job-list').should('exist'); + cy.contains('.cvat-task-details-task-name', taskName).should('exist'); + cy.url().should('include', '/tasks/'); + }); + }); +});