Cypress test. "Open the task" button. (#2717)
* Cypress test. "Open the task" button. * Fix context value. * Apply comments.main
parent
2f0d492880
commit
7807824131
@ -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…
Reference in New Issue