Cypress test. "Open the task" button. (#2717)

* Cypress test. "Open the task" button.

* Fix context value.

* Apply comments.
main
Dmitry Kruchinin 5 years ago committed by GitHub
parent 2f0d492880
commit 7807824131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,25 @@
// Copyright (C) 2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
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/');
});
});
});
Loading…
Cancel
Save