From 7807824131c18d95dcdfb4d0a9401c5ed0980246 Mon Sep 17 00:00:00 2001 From: Dmitry Kruchinin <33020454+dvkruchinin@users.noreply.github.com> Date: Tue, 26 Jan 2021 12:01:16 +0300 Subject: [PATCH] Cypress test. "Open the task" button. (#2717) * Cypress test. "Open the task" button. * Fix context value. * Apply comments. --- .../case_45_open_the_task_button.js | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/cypress/integration/actions_tasks_objects/case_45_open_the_task_button.js 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/'); + }); + }); +});